Class S3ObjectResource

    • Method Detail

      • builder

        public static S3ObjectResource.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 S3 object.
        Specified by:
        type in interface S3Resource
        Returns:
        This will always return "object".
      • partition

        public Optional<String> partition()
        Gets the AWS partition name associated with the S3 object (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 the S3 object (e.g.: 'us-east-1').
        Specified by:
        region in interface AwsResource
        Returns:
        the name of the region or null if the region has not been specified (e.g. the resource is in the global namespace).
      • accountId

        public Optional<String> accountId()
        Gets the AWS account ID associated with the S3 object if it has been specified.
        Specified by:
        accountId in interface AwsResource
        Returns:
        the optional AWS account ID or empty if the account ID has not been specified.
      • key

        public String key()
        Gets the key of the S3 object.
        Returns:
        the key of the S3 object.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object