@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateBucketConfiguration extends Object implements Serializable, Cloneable
The container for the bucket configuration.
This is not supported by Amazon S3 on Outposts buckets.
Constructor and Description |
---|
CreateBucketConfiguration() |
Modifier and Type | Method and Description |
---|---|
CreateBucketConfiguration |
clone() |
boolean |
equals(Object obj) |
String |
getLocationConstraint()
Specifies the Region where the bucket will be created.
|
int |
hashCode() |
void |
setLocationConstraint(String locationConstraint)
Specifies the Region where the bucket will be created.
|
String |
toString()
Returns a string representation of this object.
|
CreateBucketConfiguration |
withLocationConstraint(BucketLocationConstraint locationConstraint)
Specifies the Region where the bucket will be created.
|
CreateBucketConfiguration |
withLocationConstraint(String locationConstraint)
Specifies the Region where the bucket will be created.
|
public void setLocationConstraint(String locationConstraint)
Specifies the Region where the bucket will be created. If you are creating a bucket on the US East (N. Virginia) Region (us-east-1), you do not need to specify the location.
This is not supported by Amazon S3 on Outposts buckets.
locationConstraint
- Specifies the Region where the bucket will be created. If you are creating a bucket on the US East (N.
Virginia) Region (us-east-1), you do not need to specify the location. This is not supported by Amazon S3 on Outposts buckets.
BucketLocationConstraint
public String getLocationConstraint()
Specifies the Region where the bucket will be created. If you are creating a bucket on the US East (N. Virginia) Region (us-east-1), you do not need to specify the location.
This is not supported by Amazon S3 on Outposts buckets.
This is not supported by Amazon S3 on Outposts buckets.
BucketLocationConstraint
public CreateBucketConfiguration withLocationConstraint(String locationConstraint)
Specifies the Region where the bucket will be created. If you are creating a bucket on the US East (N. Virginia) Region (us-east-1), you do not need to specify the location.
This is not supported by Amazon S3 on Outposts buckets.
locationConstraint
- Specifies the Region where the bucket will be created. If you are creating a bucket on the US East (N.
Virginia) Region (us-east-1), you do not need to specify the location. This is not supported by Amazon S3 on Outposts buckets.
BucketLocationConstraint
public CreateBucketConfiguration withLocationConstraint(BucketLocationConstraint locationConstraint)
Specifies the Region where the bucket will be created. If you are creating a bucket on the US East (N. Virginia) Region (us-east-1), you do not need to specify the location.
This is not supported by Amazon S3 on Outposts buckets.
locationConstraint
- Specifies the Region where the bucket will be created. If you are creating a bucket on the US East (N.
Virginia) Region (us-east-1), you do not need to specify the location. This is not supported by Amazon S3 on Outposts buckets.
BucketLocationConstraint
public String toString()
toString
in class Object
Object.toString()
public CreateBucketConfiguration clone()