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 |
|---|---|
Optional<String> |
accountId()
Gets 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 |
equals(Object o) |
int |
hashCode() |
String |
key()
Gets the key of the S3 object.
|
Optional<S3Resource> |
parentS3Resource()
Gets the optional parent resource.
|
Optional<String> |
partition()
Gets the AWS partition name associated with the S3 object (e.g.: 'aws').
|
Optional<String> |
region()
Gets the AWS region name associated with the S3 object (e.g.: 'us-east-1').
|
String |
type()
Gets the resource type for this S3 object.
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitoverrideSignerpublic static S3ObjectResource.Builder builder()
public String type()
type in interface S3Resourcepublic Optional<String> partition()
partition in interface AwsResourcepublic Optional<String> region()
region in interface AwsResourcepublic Optional<String> accountId()
accountId in interface AwsResourcepublic String key()
public Optional<S3Resource> parentS3Resource()
S3ResourceparentS3Resource in interface S3ResourceCopyright © 2022. All rights reserved.