toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case InstanceFleetState.provisioning:
      return 'PROVISIONING';
    case InstanceFleetState.bootstrapping:
      return 'BOOTSTRAPPING';
    case InstanceFleetState.running:
      return 'RUNNING';
    case InstanceFleetState.resizing:
      return 'RESIZING';
    case InstanceFleetState.suspended:
      return 'SUSPENDED';
    case InstanceFleetState.terminating:
      return 'TERMINATING';
    case InstanceFleetState.terminated:
      return 'TERMINATED';
  }
}