toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case ResourceRecordSetRegion.usEast_1:
      return 'us-east-1';
    case ResourceRecordSetRegion.usEast_2:
      return 'us-east-2';
    case ResourceRecordSetRegion.usWest_1:
      return 'us-west-1';
    case ResourceRecordSetRegion.usWest_2:
      return 'us-west-2';
    case ResourceRecordSetRegion.caCentral_1:
      return 'ca-central-1';
    case ResourceRecordSetRegion.euWest_1:
      return 'eu-west-1';
    case ResourceRecordSetRegion.euWest_2:
      return 'eu-west-2';
    case ResourceRecordSetRegion.euWest_3:
      return 'eu-west-3';
    case ResourceRecordSetRegion.euCentral_1:
      return 'eu-central-1';
    case ResourceRecordSetRegion.apSoutheast_1:
      return 'ap-southeast-1';
    case ResourceRecordSetRegion.apSoutheast_2:
      return 'ap-southeast-2';
    case ResourceRecordSetRegion.apNortheast_1:
      return 'ap-northeast-1';
    case ResourceRecordSetRegion.apNortheast_2:
      return 'ap-northeast-2';
    case ResourceRecordSetRegion.apNortheast_3:
      return 'ap-northeast-3';
    case ResourceRecordSetRegion.euNorth_1:
      return 'eu-north-1';
    case ResourceRecordSetRegion.saEast_1:
      return 'sa-east-1';
    case ResourceRecordSetRegion.cnNorth_1:
      return 'cn-north-1';
    case ResourceRecordSetRegion.cnNorthwest_1:
      return 'cn-northwest-1';
    case ResourceRecordSetRegion.apEast_1:
      return 'ap-east-1';
    case ResourceRecordSetRegion.meSouth_1:
      return 'me-south-1';
    case ResourceRecordSetRegion.apSouth_1:
      return 'ap-south-1';
    case ResourceRecordSetRegion.afSouth_1:
      return 'af-south-1';
    case ResourceRecordSetRegion.euSouth_1:
      return 'eu-south-1';
  }
}