java.lang.Object
software.amazon.smithy.rulesengine.aws.language.functions.AwsArn
All Implemented Interfaces:
ToSmithyBuilder<AwsArn>

public final class AwsArn extends Object implements ToSmithyBuilder<AwsArn>
An AWS ARN.
  • Method Details

    • parse

      public static Optional<AwsArn> parse(String arn)
      Parses and returns the ARN components if the provided value is a valid AWS ARN.
      Parameters:
      arn - the value to parse.
      Returns:
      the optional ARN.
    • builder

      public static AwsArn.Builder builder()
      Builder to create an AwsArn instance.
      Returns:
      returns a new Builder.
    • getPartition

      public String getPartition()
      Gets the ARN's partition.
      Returns:
      returns the ARN's partition.
    • getService

      public String getService()
      Gets the ARN's service.
      Returns:
      returns the ARN's service.
    • getRegion

      public String getRegion()
      Gets the ARN's region.
      Returns:
      returns the ARN's region.
    • getAccountId

      public String getAccountId()
      Gets the ARN's accountId.
      Returns:
      returns the ARN's accountId.
    • getResource

      public List<String> getResource()
      Gets the ARN's resource components.
      Returns:
      returns the ARN's resource components.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

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

      public String toString()
      Overrides:
      toString in class Object
    • toBuilder

      public AwsArn.Builder toBuilder()
      Description copied from interface: ToSmithyBuilder
      Take this object and create a builder that contains all of the current property values of this object.
      Specified by:
      toBuilder in interface ToSmithyBuilder<AwsArn>
      Returns:
      a builder for type T