toScalingActivityStatusCode method
Implementation
ScalingActivityStatusCode toScalingActivityStatusCode() {
switch (this) {
case 'PendingSpotBidPlacement':
return ScalingActivityStatusCode.pendingSpotBidPlacement;
case 'WaitingForSpotInstanceRequestId':
return ScalingActivityStatusCode.waitingForSpotInstanceRequestId;
case 'WaitingForSpotInstanceId':
return ScalingActivityStatusCode.waitingForSpotInstanceId;
case 'WaitingForInstanceId':
return ScalingActivityStatusCode.waitingForInstanceId;
case 'PreInService':
return ScalingActivityStatusCode.preInService;
case 'InProgress':
return ScalingActivityStatusCode.inProgress;
case 'WaitingForELBConnectionDraining':
return ScalingActivityStatusCode.waitingForELBConnectionDraining;
case 'MidLifecycleAction':
return ScalingActivityStatusCode.midLifecycleAction;
case 'WaitingForInstanceWarmup':
return ScalingActivityStatusCode.waitingForInstanceWarmup;
case 'Successful':
return ScalingActivityStatusCode.successful;
case 'Failed':
return ScalingActivityStatusCode.failed;
case 'Cancelled':
return ScalingActivityStatusCode.cancelled;
}
throw Exception('$this is not known in enum ScalingActivityStatusCode');
}