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
An S3Resource that represents an S3 outpost resource
  • Method Details

    • 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 interface S3Resource
      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 interface AwsResource
      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 interface AwsResource
      Returns:
      the name of the region.
    • accountId

      public Optional<String> accountId()
      Gets the AWS account ID associated with this bucket.
      Specified by:
      accountId in interface AwsResource
      Returns:
      the AWS account ID.
    • outpostId

      public String outpostId()
      Gets the outpost ID
      Returns:
      the outpost ID.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object