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
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
Modifier and TypeClassDescriptionstatic 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
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 Details
-
getHttp
Gets the priority ordered list of supported HTTP protocol versions.- Returns:
- Returns the supported HTTP protocol versions.
-
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
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.
-