Class S3ObjectResource
java.lang.Object
software.amazon.awssdk.services.s3.internal.resource.S3ObjectResource
- All Implemented Interfaces:
AwsResource
,S3Resource
An
S3Resource
that represents an S3 object.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionGets the AWS account ID associated with the S3 object if it has been specified.static S3ObjectResource.Builder
builder()
Get a new builder for this class.boolean
int
hashCode()
key()
Gets the key of the S3 object.Gets the optional parent resource.Gets the AWS partition name associated with the S3 object (e.g.: 'aws').region()
Gets the AWS region name associated with the S3 object (e.g.: 'us-east-1').type()
Gets the resource type for this S3 object.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
-
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 S3 object.- Specified by:
type
in interfaceS3Resource
- Returns:
- This will always return "object".
-
partition
Gets the AWS partition name associated with the S3 object (e.g.: 'aws').- Specified by:
partition
in interfaceAwsResource
- Returns:
- the name of the partition.
-
region
Gets the AWS region name associated with the S3 object (e.g.: 'us-east-1').- Specified by:
region
in interfaceAwsResource
- Returns:
- the name of the region or null if the region has not been specified (e.g. the resource is in the global namespace).
-
accountId
Gets the AWS account ID associated with the S3 object if it has been specified.- Specified by:
accountId
in interfaceAwsResource
- Returns:
- the optional AWS account ID or empty if the account ID has not been specified.
-
key
Gets the key of the S3 object.- Returns:
- the key of the S3 object.
-
parentS3Resource
Description copied from interface:S3Resource
Gets the optional parent resource.- Specified by:
parentS3Resource
in interfaceS3Resource
- Returns:
- the optional parent resource.
-
equals
-
hashCode
public int hashCode()
-