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