toInstanceGroupState method
Implementation
InstanceGroupState toInstanceGroupState() {
switch (this) {
case 'PROVISIONING':
return InstanceGroupState.provisioning;
case 'BOOTSTRAPPING':
return InstanceGroupState.bootstrapping;
case 'RUNNING':
return InstanceGroupState.running;
case 'RECONFIGURING':
return InstanceGroupState.reconfiguring;
case 'RESIZING':
return InstanceGroupState.resizing;
case 'SUSPENDED':
return InstanceGroupState.suspended;
case 'TERMINATING':
return InstanceGroupState.terminating;
case 'TERMINATED':
return InstanceGroupState.terminated;
case 'ARRESTED':
return InstanceGroupState.arrested;
case 'SHUTTING_DOWN':
return InstanceGroupState.shuttingDown;
case 'ENDED':
return InstanceGroupState.ended;
}
throw Exception('$this is not known in enum InstanceGroupState');
}