Class ArnReferenceTrait

java.lang.Object
software.amazon.smithy.model.traits.AbstractTrait
software.amazon.smithy.aws.traits.ArnReferenceTrait
All Implemented Interfaces:
software.amazon.smithy.model.FromSourceLocation, software.amazon.smithy.model.node.ToNode, software.amazon.smithy.model.shapes.ToShapeId, software.amazon.smithy.model.traits.Trait, software.amazon.smithy.utils.ToSmithyBuilder<ArnReferenceTrait>

public final class ArnReferenceTrait extends software.amazon.smithy.model.traits.AbstractTrait implements software.amazon.smithy.utils.ToSmithyBuilder<ArnReferenceTrait>
Indicates that a string shape contains an ARN.
  • Field Details

    • ID

      public static final software.amazon.smithy.model.shapes.ShapeId ID
  • Method Details

    • builder

      public static ArnReferenceTrait.Builder builder()
    • getType

      public Optional<String> getType()
      Get the AWS CloudFormation type of the ARN.
      Returns:
      Returns the optional type.
    • getResource

      public Optional<software.amazon.smithy.model.shapes.ShapeId> getResource()
      Get the Smithy resource shape ID of the ARN.
      Returns:
      Returns the optionally present shape ID.
    • getService

      public Optional<software.amazon.smithy.model.shapes.ShapeId> getService()
      Get the Smithy service shape ID of the ARN.
      Returns:
      Returns the optionally present shape ID.
    • toBuilder

      public ArnReferenceTrait.Builder toBuilder()
      Specified by:
      toBuilder in interface software.amazon.smithy.utils.ToSmithyBuilder<ArnReferenceTrait>
    • createNode

      protected software.amazon.smithy.model.node.Node createNode()
      Specified by:
      createNode in class software.amazon.smithy.model.traits.AbstractTrait
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class software.amazon.smithy.model.traits.AbstractTrait
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class software.amazon.smithy.model.traits.AbstractTrait