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