public final class S3ObjectResource extends Object implements S3Resource, ToCopyableBuilder<S3ObjectResource.Builder,S3ObjectResource>
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.
|
String |
bucketName()
Gets the name of the bucket associated with the S3 object.
|
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<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').
|
S3ObjectResource.Builder |
toBuilder() |
String |
type()
Gets the resource type for this S3 object.
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
copy
public static S3ObjectResource.Builder builder()
public String type()
type
in interface S3Resource
public Optional<String> partition()
partition
in interface AwsResource
public Optional<String> region()
region
in interface AwsResource
public Optional<String> accountId()
accountId
in interface AwsResource
public String bucketName()
public String key()
public S3ObjectResource.Builder toBuilder()
toBuilder
in interface ToCopyableBuilder<S3ObjectResource.Builder,S3ObjectResource>
Copyright © 2020. All rights reserved.