Class S3ControlBucketResource
java.lang.Object
software.amazon.awssdk.services.s3control.S3ControlBucketResource
- All Implemented Interfaces:
 AwsResource,S3Resource
An 
S3Resource that represents an bucket.- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA builder forS3ControlBucketResourceobjects. - 
Method Summary
Modifier and TypeMethodDescriptionGets the AWS account ID associated with this bucket.Gets the name of the bucket.builder()Get a new builder for this class.booleaninthashCode()Gets the optional parent s3 resourceGets the AWS partition name associated with this bucket (e.g.: 'aws').region()Gets the AWS region name associated with this bucket (e.g.: 'us-east-1').type()Gets the resource type for this bucket.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.awssdk.services.s3.internal.resource.S3Resource
overrideSigner 
- 
Method Details
- 
builder
Get a new builder for this class.- Returns:
 - A newly initialized instance of a builder.
 
 - 
type
Gets the resource type for this bucket.- Specified by:
 typein interfaceS3Resource- Returns:
 - This will always return "bucket_name".
 
 - 
partition
Gets the AWS partition name associated with this bucket (e.g.: 'aws').- Specified by:
 partitionin interfaceAwsResource- Returns:
 - the name of the partition.
 
 - 
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
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
Gets the name of the bucket.- Returns:
 - the name of the bucket.
 
 - 
parentS3Resource
Gets the optional parent s3 resource- Specified by:
 parentS3Resourcein interfaceS3Resource- Returns:
 - the parent s3 resource if exists, otherwise null
 
 - 
equals
 - 
hashCode
public int hashCode() 
 -