toContainerInstanceStatus method

ContainerInstanceStatus toContainerInstanceStatus()

Implementation

ContainerInstanceStatus toContainerInstanceStatus() {
  switch (this) {
    case 'ACTIVE':
      return ContainerInstanceStatus.active;
    case 'DRAINING':
      return ContainerInstanceStatus.draining;
    case 'REGISTERING':
      return ContainerInstanceStatus.registering;
    case 'DEREGISTERING':
      return ContainerInstanceStatus.deregistering;
    case 'REGISTRATION_FAILED':
      return ContainerInstanceStatus.registrationFailed;
  }
  throw Exception('$this is not known in enum ContainerInstanceStatus');
}