toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case MaintenanceWindowExecutionStatus.pending:
      return 'PENDING';
    case MaintenanceWindowExecutionStatus.inProgress:
      return 'IN_PROGRESS';
    case MaintenanceWindowExecutionStatus.success:
      return 'SUCCESS';
    case MaintenanceWindowExecutionStatus.failed:
      return 'FAILED';
    case MaintenanceWindowExecutionStatus.timedOut:
      return 'TIMED_OUT';
    case MaintenanceWindowExecutionStatus.cancelling:
      return 'CANCELLING';
    case MaintenanceWindowExecutionStatus.cancelled:
      return 'CANCELLED';
    case MaintenanceWindowExecutionStatus.skippedOverlapping:
      return 'SKIPPED_OVERLAPPING';
  }
}