toHealthCheckRegion method

HealthCheckRegion toHealthCheckRegion()

Implementation

HealthCheckRegion toHealthCheckRegion() {
  switch (this) {
    case 'us-east-1':
      return HealthCheckRegion.usEast_1;
    case 'us-west-1':
      return HealthCheckRegion.usWest_1;
    case 'us-west-2':
      return HealthCheckRegion.usWest_2;
    case 'eu-west-1':
      return HealthCheckRegion.euWest_1;
    case 'ap-southeast-1':
      return HealthCheckRegion.apSoutheast_1;
    case 'ap-southeast-2':
      return HealthCheckRegion.apSoutheast_2;
    case 'ap-northeast-1':
      return HealthCheckRegion.apNortheast_1;
    case 'sa-east-1':
      return HealthCheckRegion.saEast_1;
  }
  throw Exception('$this is not known in enum HealthCheckRegion');
}