toInstanceFleetState method

InstanceFleetState toInstanceFleetState()

Implementation

InstanceFleetState toInstanceFleetState() {
  switch (this) {
    case 'PROVISIONING':
      return InstanceFleetState.provisioning;
    case 'BOOTSTRAPPING':
      return InstanceFleetState.bootstrapping;
    case 'RUNNING':
      return InstanceFleetState.running;
    case 'RESIZING':
      return InstanceFleetState.resizing;
    case 'SUSPENDED':
      return InstanceFleetState.suspended;
    case 'TERMINATING':
      return InstanceFleetState.terminating;
    case 'TERMINATED':
      return InstanceFleetState.terminated;
  }
  throw Exception('$this is not known in enum InstanceFleetState');
}