java.lang.Object
software.amazon.smithy.rulesengine.language.impl.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()
    • partition

      public String partition()
    • service

      public String service()
    • region

      public String region()
    • accountId

      public String accountId()
    • resource

      public List<String> resource()
    • 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