toInstanceFleetStateChangeReasonCode method
Implementation
InstanceFleetStateChangeReasonCode toInstanceFleetStateChangeReasonCode() {
switch (this) {
case 'INTERNAL_ERROR':
return InstanceFleetStateChangeReasonCode.internalError;
case 'VALIDATION_ERROR':
return InstanceFleetStateChangeReasonCode.validationError;
case 'INSTANCE_FAILURE':
return InstanceFleetStateChangeReasonCode.instanceFailure;
case 'CLUSTER_TERMINATED':
return InstanceFleetStateChangeReasonCode.clusterTerminated;
}
throw Exception(
'$this is not known in enum InstanceFleetStateChangeReasonCode');
}