Class S3OutpostResource
- java.lang.Object
-
- software.amazon.awssdk.services.s3.internal.resource.S3OutpostResource
-
- All Implemented Interfaces:
AwsResource
,S3Resource
public final class S3OutpostResource extends Object implements S3Resource
AnS3Resource
that represents an S3 outpost resource
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
S3OutpostResource.Builder
A builder forS3OutpostResource
objects.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<String>
accountId()
Gets the AWS account ID associated with this bucket.static S3OutpostResource.Builder
builder()
Get a new builder for this class.boolean
equals(Object o)
int
hashCode()
String
outpostId()
Gets the outpost IDOptional<String>
partition()
Gets the AWS partition name associated with this access point (e.g.: 'aws').Optional<String>
region()
Gets the AWS region name associated with this bucket (e.g.: 'us-east-1').String
type()
Gets the resource type for this access point.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.services.s3.internal.resource.S3Resource
overrideSigner, parentS3Resource
-
-
-
-
Method Detail
-
builder
public static S3OutpostResource.Builder builder()
Get a new builder for this class.- Returns:
- A newly initialized instance of a builder.
-
type
public String type()
Gets the resource type for this access point.- Specified by:
type
in interfaceS3Resource
- Returns:
- This will always return "accesspoint".
-
partition
public Optional<String> partition()
Gets the AWS partition name associated with this access point (e.g.: 'aws').- Specified by:
partition
in interfaceAwsResource
- Returns:
- the name of the partition.
-
region
public Optional<String> region()
Gets the AWS region name associated with this bucket (e.g.: 'us-east-1').- Specified by:
region
in interfaceAwsResource
- Returns:
- the name of the region.
-
accountId
public Optional<String> accountId()
Gets the AWS account ID associated with this bucket.- Specified by:
accountId
in interfaceAwsResource
- Returns:
- the AWS account ID.
-
outpostId
public String outpostId()
Gets the outpost ID- Returns:
- the outpost ID.
-
-