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