Class 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 Summary

      Fields 
      Modifier and Type Field Description
      static software.amazon.smithy.model.shapes.ShapeId ID  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static ArnReferenceTrait.Builder builder()  
      protected software.amazon.smithy.model.node.Node createNode()  
      boolean equals​(java.lang.Object other)  
      java.util.Optional<software.amazon.smithy.model.shapes.ShapeId> getResource()
      Get the Smithy resource shape ID of the ARN.
      java.util.Optional<software.amazon.smithy.model.shapes.ShapeId> getService()
      Get the Smithy service shape ID of the ARN.
      java.util.Optional<java.lang.String> getType()
      Get the AWS CloudFormation type of the ARN.
      int hashCode()  
      ArnReferenceTrait.Builder toBuilder()  
      • Methods inherited from class software.amazon.smithy.model.traits.AbstractTrait

        getSourceLocation, setNodeCache, toNode, toShapeId, toString
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface software.amazon.smithy.model.traits.Trait

        isSynthetic
    • Field Detail

      • ID

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

      • getType

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

        public java.util.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 java.util.Optional<software.amazon.smithy.model.shapes.ShapeId> getService()
        Get the Smithy service shape ID of the ARN.
        Returns:
        Returns the optionally present shape ID.
      • createNode

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

        public boolean equals​(java.lang.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