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 S3Resource
public S3Resource getParentS3Resource()
S3Resource
getParentS3Resource
in interface S3Resource
public String getPartition()
getPartition
in interface AwsResource
public String getRegion()
getRegion
in interface AwsResource
public String getAccountId()
getAccountId
in interface AwsResource
public String getBucketName()