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 forS3BucketResourceobjects.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description S3BucketResource.BuilderaccountId(String accountId)The AWS account ID associated with the bucket.S3BucketResource.BuilderbucketName(String bucketName)The name of the S3 bucket.S3BucketResourcebuild()Builds an instance ofS3BucketResource.S3BucketResource.Builderpartition(String partition)The AWS partition associated with the bucket.S3BucketResource.Builderregion(String region)The AWS region associated with the bucket.voidsetAccountId(String accountId)voidsetBucketName(String bucketName)voidsetPartition(String partition)voidsetRegion(String region)-
Methods inherited from class java.lang.Object
clone, equals, finalize, 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 Detail
-
setPartition
public void setPartition(String partition)
-
partition
public S3BucketResource.Builder partition(String partition)
The AWS partition associated with the bucket.
-
setRegion
public void setRegion(String region)
-
region
public S3BucketResource.Builder region(String region)
The AWS region associated with the bucket. This property is optional.
-
setAccountId
public void setAccountId(String accountId)
-
accountId
public S3BucketResource.Builder accountId(String accountId)
The AWS account ID associated with the bucket. This property is optional.
-
setBucketName
public void setBucketName(String bucketName)
-
bucketName
public S3BucketResource.Builder bucketName(String bucketName)
The name of the S3 bucket.
-
build
public S3BucketResource build()
Builds an instance ofS3BucketResource.- Specified by:
buildin interfaceBuildable- Specified by:
buildin interfaceSdkBuilder<S3BucketResource.Builder,S3BucketResource>
-
-