Class S3AccessPointResource
- java.lang.Object
-
- software.amazon.awssdk.services.s3.internal.resource.S3AccessPointResource
-
- All Implemented Interfaces:
AwsResource,S3Resource,ToCopyableBuilder<S3AccessPointResource.Builder,S3AccessPointResource>
public final class S3AccessPointResource extends Object implements S3Resource, ToCopyableBuilder<S3AccessPointResource.Builder,S3AccessPointResource>
AnS3Resourcethat represents an S3 access point.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classS3AccessPointResource.BuilderA builder forS3AccessPointResourceobjects.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringaccessPointName()Gets the name of the access point.Optional<String>accountId()Gets the AWS account ID associated with this bucket.static S3AccessPointResource.Builderbuilder()Get a new builder for this class.booleanequals(Object o)inthashCode()Optional<Signer>overrideSigner()Optional<S3Resource>parentS3Resource()Gets the optional parent resource.Optional<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').S3AccessPointResource.BuildertoBuilder()Stringtype()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.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
builder
public static S3AccessPointResource.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:
typein interfaceS3Resource- Returns:
- This will always return "access_point".
-
parentS3Resource
public Optional<S3Resource> parentS3Resource()
Description copied from interface:S3ResourceGets the optional parent resource.- Specified by:
parentS3Resourcein interfaceS3Resource- Returns:
- the optional parent resource.
-
partition
public Optional<String> partition()
Gets the AWS partition name associated with this access point (e.g.: 'aws').- Specified by:
partitionin 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:
regionin interfaceAwsResource- Returns:
- the name of the region.
-
accountId
public Optional<String> accountId()
Gets the AWS account ID associated with this bucket.- Specified by:
accountIdin interfaceAwsResource- Returns:
- the AWS account ID.
-
accessPointName
public String accessPointName()
Gets the name of the access point.- Returns:
- the name of the access point.
-
overrideSigner
public Optional<Signer> overrideSigner()
- Specified by:
overrideSignerin interfaceS3Resource
-
toBuilder
public S3AccessPointResource.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<S3AccessPointResource.Builder,S3AccessPointResource>
-
-