public final class S3BucketResource extends Object implements S3Resource
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 |
|---|---|
static S3BucketResource.Builder |
builder()
Get a new builder for this class.
|
boolean |
equals(Object o) |
String |
getAccountId()
Gets the Amazon Web Services account ID associated with this bucket.
|
String |
getBucketName()
Gets the name of the bucket.
|
S3Resource |
getParentS3Resource()
Gets the optional parent resource.
|
String |
getPartition()
Gets the Amazon Web Services partition name associated with this bucket (e.g.: 'aws').
|
String |
getRegion()
Gets the Amazon Web Services region name associated with this bucket (e.g.: 'us-east-1').
|
String |
getType()
Gets the resource type for this bucket.
|
int |
hashCode() |
public static S3BucketResource.Builder builder()
public String getType()
getType in interface S3Resourcepublic S3Resource getParentS3Resource()
S3ResourcegetParentS3Resource in interface S3Resourcepublic String getPartition()
getPartition in interface AwsResourcepublic String getRegion()
getRegion in interface AwsResourcepublic String getAccountId()
getAccountId in interface AwsResourcepublic String getBucketName()