toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case CapacityProviderUpdateStatus.deleteInProgress:
      return 'DELETE_IN_PROGRESS';
    case CapacityProviderUpdateStatus.deleteComplete:
      return 'DELETE_COMPLETE';
    case CapacityProviderUpdateStatus.deleteFailed:
      return 'DELETE_FAILED';
    case CapacityProviderUpdateStatus.updateInProgress:
      return 'UPDATE_IN_PROGRESS';
    case CapacityProviderUpdateStatus.updateComplete:
      return 'UPDATE_COMPLETE';
    case CapacityProviderUpdateStatus.updateFailed:
      return 'UPDATE_FAILED';
  }
}