Class S3BucketResource.Builder
java.lang.Object
software.amazon.awssdk.services.s3.internal.resource.S3BucketResource.Builder
- All Implemented Interfaces:
Buildable,CopyableBuilder<S3BucketResource.Builder,,S3BucketResource> SdkBuilder<S3BucketResource.Builder,S3BucketResource>
- Enclosing class:
S3BucketResource
public static final class S3BucketResource.Builder
extends Object
implements CopyableBuilder<S3BucketResource.Builder,S3BucketResource>
A builder for
S3BucketResource objects.-
Method Summary
Modifier and TypeMethodDescriptionThe AWS account ID associated with the bucket.bucketName(String bucketName) The name of the S3 bucket.build()Builds an instance ofS3BucketResource.The AWS partition associated with the bucket.The AWS region associated with the bucket.voidsetAccountId(String accountId) voidsetBucketName(String bucketName) voidsetPartition(String partition) voidMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation
-
Method Details
-
setPartition
-
partition
The AWS partition associated with the bucket. -
setRegion
-
region
The AWS region associated with the bucket. This property is optional. -
setAccountId
-
accountId
The AWS account ID associated with the bucket. This property is optional. -
setBucketName
-
bucketName
The name of the S3 bucket. -
build
Builds an instance ofS3BucketResource.- Specified by:
buildin interfaceBuildable- Specified by:
buildin interfaceSdkBuilder<S3BucketResource.Builder,S3BucketResource> - Returns:
- an instance of T
-