Class AwsProtocolTrait
- java.lang.Object
-
- software.amazon.smithy.model.traits.AbstractTrait
-
- software.amazon.smithy.aws.traits.protocols.AwsProtocolTrait
-
- All Implemented Interfaces:
FromSourceLocation
,ToNode
,ToShapeId
,Trait
- Direct Known Subclasses:
AwsJson1_0Trait
,AwsJson1_1Trait
,RestJson1Trait
,RestXmlTrait
public abstract class AwsProtocolTrait extends AbstractTrait
Represents a configurable AWS protocol trait.Subclasses are traits that allow the supported HTTP versions and eventStream HTTP versions to be customized.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AwsProtocolTrait.Builder<T extends Trait,B extends AwsProtocolTrait.Builder>
Builder for creating aAwsProtocolTrait
.-
Nested classes/interfaces inherited from class software.amazon.smithy.model.traits.AbstractTrait
AbstractTrait.Provider
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Node
createNode()
The result of toNode is used for hashCodes and equality.java.util.List<java.lang.String>
getEventStreamHttp()
Gets the priority ordered list of supported HTTP protocol versions that are required when using event streams.java.util.List<java.lang.String>
getHttp()
Gets the priority ordered list of supported HTTP protocol versions.-
Methods inherited from class software.amazon.smithy.model.traits.AbstractTrait
equals, getSourceLocation, hashCode, 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
-
-
-
-
Method Detail
-
getHttp
public java.util.List<java.lang.String> getHttp()
Gets the priority ordered list of supported HTTP protocol versions.- Returns:
- Returns the supported HTTP protocol versions.
-
getEventStreamHttp
public java.util.List<java.lang.String> getEventStreamHttp()
Gets the priority ordered list of supported HTTP protocol versions that are required when using event streams.- Returns:
- Returns the supported event stream HTTP protocol versions.
-
createNode
protected Node createNode()
Description copied from class:AbstractTrait
The result of toNode is used for hashCodes and equality. Subclasses must implement createNode to turn the trait into a Node. This is then cached for subsequent retrievals.- Specified by:
createNode
in classAbstractTrait
- Returns:
- Returns the trait as a node.
-
-