Class S3ObjectResource
java.lang.Object
software.amazon.awssdk.services.s3.internal.resource.S3ObjectResource
-
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.Builderbuilder()Get a new builder for this class.booleaninthashCode()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, waitMethods 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:
typein interfaceS3Resource- Returns:
- This will always return "object".
-
partition
Gets the AWS partition name associated with the S3 object (e.g.: 'aws').- Specified by:
partitionin 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:
regionin 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:
accountIdin interfaceAwsResource- Returns:
- the optional AWS account ID or empty if the account ID has not been specified.
-
key
-
parentS3Resource
Description copied from interface:S3ResourceGets the optional parent resource.- Specified by:
parentS3Resourcein interfaceS3Resource- Returns:
- the optional parent resource.
-
equals
-
hashCode
-