Class S3BucketResource
java.lang.Object
software.amazon.awssdk.services.s3.internal.resource.S3BucketResource
- All Implemented Interfaces:
AwsResource
,S3Resource
,ToCopyableBuilder<S3BucketResource.Builder,
S3BucketResource>
public final class S3BucketResource
extends Object
implements S3Resource, ToCopyableBuilder<S3BucketResource.Builder,S3BucketResource>
An
S3Resource
that represents an S3 bucket.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionGets the AWS account ID associated with this bucket if one has been specified.Gets the name of the bucket.static S3BucketResource.Builder
builder()
Get a new builder for this class.boolean
int
hashCode()
Gets the AWS partition name associated with this bucket (e.g.: 'aws') if one has been specified.region()
Gets the AWS region name associated with this bucket (e.g.: 'us-east-1') if one has been specified.Take this object and create a builder that contains all of the current property values of this object.type()
Gets the resource type for this bucket.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface software.amazon.awssdk.services.s3.internal.resource.S3Resource
overrideSigner, parentS3Resource
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
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:
type
in interfaceS3Resource
- Returns:
- This will always return "bucket_name".
-
partition
Gets the AWS partition name associated with this bucket (e.g.: 'aws') if one has been specified.- Specified by:
partition
in interfaceAwsResource
- Returns:
- the optional name of the partition or empty if it has not been specified.
-
region
Gets the AWS region name associated with this bucket (e.g.: 'us-east-1') if one has been specified.- Specified by:
region
in interfaceAwsResource
- Returns:
- the optional name of the region or empty 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 if one has been specified.- Specified by:
accountId
in interfaceAwsResource
- Returns:
- the optional AWS account ID or empty if the account ID has not been specified.
-
bucketName
-
equals
-
hashCode
-
toBuilder
Description copied from interface:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<S3BucketResource.Builder,
S3BucketResource> - Returns:
- a builder for type T
-