toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case InstanceStatus.pending:
      return 'PENDING';
    case InstanceStatus.active:
      return 'ACTIVE';
    case InstanceStatus.terminating:
      return 'TERMINATING';
  }
}