public final class S3ObjectResource extends Object implements S3Resource
S3Resource
that represents an S3 object.Modifier and Type | Class and Description |
---|---|
static class |
S3ObjectResource.Builder
A builder for
S3ObjectResource objects. |
Modifier and Type | Method and Description |
---|---|
static S3ObjectResource.Builder |
builder()
Get a new builder for this class.
|
boolean |
equals(Object o) |
String |
getAccountId()
Gets the Amazon Web Services account ID associated with the S3 object.
|
String |
getKey()
Gets the key of the S3 object.
|
S3Resource |
getParentS3Resource()
Gets the parent S3 resource of this object.
|
String |
getPartition()
Gets the Amazon Web Services partition name associated with the S3 object (e.g.: 'aws').
|
String |
getRegion()
Gets the Amazon Web Services region name associated with the S3 object (e.g.: 'us-east-1').
|
String |
getType()
Gets the resource type for this S3 object.
|
int |
hashCode() |
public static S3ObjectResource.Builder builder()
public String getType()
getType
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 getKey()
public S3Resource getParentS3Resource()
S3BucketResource
or a S3AccessPointResource
.getParentS3Resource
in interface S3Resource