Class S3ControlBucketResource
- java.lang.Object
-
- software.amazon.awssdk.services.s3control.S3ControlBucketResource
-
- All Implemented Interfaces:
AwsResource,S3Resource
public final class S3ControlBucketResource extends Object implements S3Resource
AnS3Resourcethat represents an bucket.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classS3ControlBucketResource.BuilderA builder forS3ControlBucketResourceobjects.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<String>accountId()Gets the AWS account ID associated with this bucket.StringbucketName()Gets the name of the bucket.static S3ControlBucketResource.Builderbuilder()Get a new builder for this class.booleanequals(Object o)inthashCode()Optional<S3Resource>parentS3Resource()Gets the optional parent s3 resourceOptional<String>partition()Gets the AWS partition name associated with this bucket (e.g.: 'aws').Optional<String>region()Gets the AWS region name associated with this bucket (e.g.: 'us-east-1').Stringtype()Gets the resource type for this bucket.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.services.s3.internal.resource.S3Resource
overrideSigner
-
-
-
-
Method Detail
-
builder
public static S3ControlBucketResource.Builder builder()
Get a new builder for this class.- Returns:
- A newly initialized instance of a builder.
-
type
public String type()
Gets the resource type for this bucket.- Specified by:
typein interfaceS3Resource- Returns:
- This will always return "bucket_name".
-
partition
public Optional<String> partition()
Gets the AWS partition name associated with this bucket (e.g.: 'aws').- Specified by:
partitionin interfaceAwsResource- Returns:
- the name of the partition.
-
region
public Optional<String> region()
Gets the AWS region name associated with this bucket (e.g.: 'us-east-1').- Specified by:
regionin interfaceAwsResource- Returns:
- the name of the region or null if the region has not been specified (e.g. the resource is in the global namespace).
-
accountId
public Optional<String> accountId()
Gets the AWS account ID associated with this bucket.- Specified by:
accountIdin interfaceAwsResource- Returns:
- the AWS account ID or null if the account ID has not been specified.
-
bucketName
public String bucketName()
Gets the name of the bucket.- Returns:
- the name of the bucket.
-
parentS3Resource
public Optional<S3Resource> parentS3Resource()
Gets the optional parent s3 resource- Specified by:
parentS3Resourcein interfaceS3Resource- Returns:
- the parent s3 resource if exists, otherwise null
-
-