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.void
setAccountId
(String accountId) void
setBucketName
(String bucketName) void
setPartition
(String partition) void
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods 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:
build
in interfaceBuildable
- Specified by:
build
in interfaceSdkBuilder<S3BucketResource.Builder,
S3BucketResource> - Returns:
- an instance of T
-