@Generated(value="software.amazon.awssdk:codegen") public final class CreateBucketConfiguration extends Object implements SdkPojo, Serializable, ToCopyableBuilder<CreateBucketConfiguration.Builder,CreateBucketConfiguration>
The container for the bucket configuration.
This is not supported by Amazon S3 on Outposts buckets.
| Modifier and Type | Class and Description |
|---|---|
static interface |
CreateBucketConfiguration.Builder |
| Modifier and Type | Method and Description |
|---|---|
static CreateBucketConfiguration.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
BucketLocationConstraint |
locationConstraint()
Specifies the Region where the bucket will be created.
|
String |
locationConstraintAsString()
Specifies the Region where the bucket will be created.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends CreateBucketConfiguration.Builder> |
serializableBuilderClass() |
CreateBucketConfiguration.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final 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.
If the service returns an enum value that is not available in the current SDK version,
locationConstraint will return BucketLocationConstraint.UNKNOWN_TO_SDK_VERSION. The raw value
returned by the service is available from locationConstraintAsString().
This is not supported by Amazon S3 on Outposts buckets.
BucketLocationConstraintpublic final String locationConstraintAsString()
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.
If the service returns an enum value that is not available in the current SDK version,
locationConstraint will return BucketLocationConstraint.UNKNOWN_TO_SDK_VERSION. The raw value
returned by the service is available from locationConstraintAsString().
This is not supported by Amazon S3 on Outposts buckets.
BucketLocationConstraintpublic CreateBucketConfiguration.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<CreateBucketConfiguration.Builder,CreateBucketConfiguration>public static CreateBucketConfiguration.Builder builder()
public static Class<? extends CreateBucketConfiguration.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.