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.

  • Method Details

    • getHttp

      public List<String> getHttp()
      Gets the priority ordered list of supported HTTP protocol versions.
      Returns:
      Returns the supported HTTP protocol versions.
    • getEventStreamHttp

      public List<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 class AbstractTrait
      Returns:
      Returns the trait as a node.