toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case ScalingActivityStatusCode.pendingSpotBidPlacement:
      return 'PendingSpotBidPlacement';
    case ScalingActivityStatusCode.waitingForSpotInstanceRequestId:
      return 'WaitingForSpotInstanceRequestId';
    case ScalingActivityStatusCode.waitingForSpotInstanceId:
      return 'WaitingForSpotInstanceId';
    case ScalingActivityStatusCode.waitingForInstanceId:
      return 'WaitingForInstanceId';
    case ScalingActivityStatusCode.preInService:
      return 'PreInService';
    case ScalingActivityStatusCode.inProgress:
      return 'InProgress';
    case ScalingActivityStatusCode.waitingForELBConnectionDraining:
      return 'WaitingForELBConnectionDraining';
    case ScalingActivityStatusCode.midLifecycleAction:
      return 'MidLifecycleAction';
    case ScalingActivityStatusCode.waitingForInstanceWarmup:
      return 'WaitingForInstanceWarmup';
    case ScalingActivityStatusCode.successful:
      return 'Successful';
    case ScalingActivityStatusCode.failed:
      return 'Failed';
    case ScalingActivityStatusCode.cancelled:
      return 'Cancelled';
  }
}