toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case InstanceGroupState.provisioning:
      return 'PROVISIONING';
    case InstanceGroupState.bootstrapping:
      return 'BOOTSTRAPPING';
    case InstanceGroupState.running:
      return 'RUNNING';
    case InstanceGroupState.reconfiguring:
      return 'RECONFIGURING';
    case InstanceGroupState.resizing:
      return 'RESIZING';
    case InstanceGroupState.suspended:
      return 'SUSPENDED';
    case InstanceGroupState.terminating:
      return 'TERMINATING';
    case InstanceGroupState.terminated:
      return 'TERMINATED';
    case InstanceGroupState.arrested:
      return 'ARRESTED';
    case InstanceGroupState.shuttingDown:
      return 'SHUTTING_DOWN';
    case InstanceGroupState.ended:
      return 'ENDED';
  }
}