Class Protocol

  • All Implemented Interfaces:
    ToNode, software.amazon.smithy.utils.Tagged, software.amazon.smithy.utils.ToSmithyBuilder<Protocol>

    public final class Protocol
    extends java.lang.Object
    implements ToNode, software.amazon.smithy.utils.ToSmithyBuilder<Protocol>, software.amazon.smithy.utils.Tagged
    Represents a Smithy protocol.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  Protocol.Builder
      Protocol builder.
    • Method Detail

      • getName

        public java.lang.String getName()
        Gets the protocol name.
        Returns:
        Returns the name.
      • getAuth

        public java.util.List<java.lang.String> getAuth()
        Gets the ordered list of auth schemes supported by the protocol.
        Returns:
        Returns the auth schemes.
      • getTags

        public java.util.List<java.lang.String> getTags()
        Specified by:
        getTags in interface software.amazon.smithy.utils.Tagged
      • toBuilder

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

        public Node toNode()
        Description copied from interface: ToNode
        Converts a value to a Node.
        Specified by:
        toNode in interface ToNode
        Returns:
        Returns the creates Node.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object