Class Protocol
- java.lang.Object
-
- software.amazon.smithy.model.traits.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 Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Protocol.Builder
builder()
boolean
equals(java.lang.Object o)
java.util.List<java.lang.String>
getAuth()
Gets the ordered list of auth schemes supported by the protocol.java.lang.String
getName()
Gets the protocol name.java.util.List<java.lang.String>
getTags()
int
hashCode()
Protocol.Builder
toBuilder()
Node
toNode()
Converts a value to aNode
.
-
-
-
Method Detail
-
builder
public static Protocol.Builder builder()
-
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 interfacesoftware.amazon.smithy.utils.Tagged
-
toBuilder
public Protocol.Builder toBuilder()
- Specified by:
toBuilder
in interfacesoftware.amazon.smithy.utils.ToSmithyBuilder<Protocol>
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-