toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case BucketLocationConstraint.eu:
      return 'EU';
    case BucketLocationConstraint.euWest_1:
      return 'eu-west-1';
    case BucketLocationConstraint.usWest_1:
      return 'us-west-1';
    case BucketLocationConstraint.usWest_2:
      return 'us-west-2';
    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.apNortheast_1:
      return 'ap-northeast-1';
    case BucketLocationConstraint.saEast_1:
      return 'sa-east-1';
    case BucketLocationConstraint.cnNorth_1:
      return 'cn-north-1';
    case BucketLocationConstraint.euCentral_1:
      return 'eu-central-1';
  }
}