toClusterStateChangeReasonCode method
Implementation
ClusterStateChangeReasonCode toClusterStateChangeReasonCode() {
switch (this) {
case 'INTERNAL_ERROR':
return ClusterStateChangeReasonCode.internalError;
case 'VALIDATION_ERROR':
return ClusterStateChangeReasonCode.validationError;
case 'INSTANCE_FAILURE':
return ClusterStateChangeReasonCode.instanceFailure;
case 'INSTANCE_FLEET_TIMEOUT':
return ClusterStateChangeReasonCode.instanceFleetTimeout;
case 'BOOTSTRAP_FAILURE':
return ClusterStateChangeReasonCode.bootstrapFailure;
case 'USER_REQUEST':
return ClusterStateChangeReasonCode.userRequest;
case 'STEP_FAILURE':
return ClusterStateChangeReasonCode.stepFailure;
case 'ALL_STEPS_COMPLETED':
return ClusterStateChangeReasonCode.allStepsCompleted;
}
throw Exception('$this is not known in enum ClusterStateChangeReasonCode');
}