public final class S3BucketResource extends Object implements S3Resource, ToCopyableBuilder<S3BucketResource.Builder,S3BucketResource>
S3Resource that represents an S3 bucket.| Modifier and Type | Class and Description |
|---|---|
static class |
S3BucketResource.Builder
A builder for
S3BucketResource objects. |
| Modifier and Type | Method and Description |
|---|---|
Optional<String> |
accountId()
Gets the AWS account ID associated with this bucket if one has been specified.
|
String |
bucketName()
Gets the name of the bucket.
|
static S3BucketResource.Builder |
builder()
Get a new builder for this class.
|
boolean |
equals(Object o) |
int |
hashCode() |
Optional<String> |
partition()
Gets the AWS partition name associated with this bucket (e.g.: 'aws') if one has been specified.
|
Optional<String> |
region()
Gets the AWS region name associated with this bucket (e.g.: 'us-east-1') if one has been specified.
|
S3BucketResource.Builder |
toBuilder() |
String |
type()
Gets the resource type for this bucket.
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitparentS3Resourcecopypublic static S3BucketResource.Builder builder()
public String type()
type in interface S3Resourcepublic Optional<String> partition()
partition in interface AwsResourcepublic Optional<String> region()
region in interface AwsResourcepublic Optional<String> accountId()
accountId in interface AwsResourcepublic String bucketName()
public S3BucketResource.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<S3BucketResource.Builder,S3BucketResource>Copyright © 2020. All rights reserved.