Class AwsProtocolTrait

java.lang.Object
software.amazon.smithy.model.traits.AbstractTrait
software.amazon.smithy.aws.traits.protocols.AwsProtocolTrait
All Implemented Interfaces:
software.amazon.smithy.model.FromSourceLocation, software.amazon.smithy.model.node.ToNode, software.amazon.smithy.model.shapes.ToShapeId, software.amazon.smithy.model.traits.Trait
Direct Known Subclasses:
AwsJson1_0Trait, AwsJson1_1Trait, RestJson1Trait, RestXmlTrait

public abstract class AwsProtocolTrait extends software.amazon.smithy.model.traits.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 software.amazon.smithy.model.traits.Trait,B extends AwsProtocolTrait.Builder>
    Builder for creating a AwsProtocolTrait.

    Nested classes/interfaces inherited from class software.amazon.smithy.model.traits.AbstractTrait

    software.amazon.smithy.model.traits.AbstractTrait.Provider
  • Method Summary

    Modifier and Type
    Method
    Description
    protected software.amazon.smithy.model.node.Node
     
    Gets the priority ordered list of supported HTTP protocol versions that are required when using event streams.
    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 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 software.amazon.smithy.model.node.Node createNode()
      Specified by:
      createNode in class software.amazon.smithy.model.traits.AbstractTrait