toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case ContainerInstanceStatus.active:
      return 'ACTIVE';
    case ContainerInstanceStatus.draining:
      return 'DRAINING';
    case ContainerInstanceStatus.registering:
      return 'REGISTERING';
    case ContainerInstanceStatus.deregistering:
      return 'DEREGISTERING';
    case ContainerInstanceStatus.registrationFailed:
      return 'REGISTRATION_FAILED';
  }
}