Class AwsProtocolTrait.Builder<T extends software.amazon.smithy.model.traits.Trait,​B extends AwsProtocolTrait.Builder>

  • Type Parameters:
    T - The type of trait being created.
    B - The concrete builder that creates T.
    All Implemented Interfaces:
    software.amazon.smithy.utils.SmithyBuilder<T>
    Direct Known Subclasses:
    AwsJson1_0Trait.Builder, AwsJson1_1Trait.Builder, RestJson1Trait.Builder, RestXmlTrait.Builder
    Enclosing class:
    AwsProtocolTrait

    public abstract static class AwsProtocolTrait.Builder<T extends software.amazon.smithy.model.traits.Trait,​B extends AwsProtocolTrait.Builder>
    extends software.amazon.smithy.model.traits.AbstractTraitBuilder<T,​B>
    Builder for creating a AwsProtocolTrait.
    • Constructor Summary

      Constructors 
      Constructor Description
      Builder()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      B eventStreamHttp​(java.util.List<java.lang.String> eventStreamHttp)
      Sets the list of supported event stream HTTP protocols.
      B fromNode​(software.amazon.smithy.model.node.Node node)
      Updates the builder from a Node.
      B http​(java.util.List<java.lang.String> http)
      Sets the list of supported HTTP protocols.
      • Methods inherited from class software.amazon.smithy.model.traits.AbstractTraitBuilder

        getSourceLocation, sourceLocation
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface software.amazon.smithy.utils.SmithyBuilder

        build
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • http

        public B http​(java.util.List<java.lang.String> http)
        Sets the list of supported HTTP protocols.
        Parameters:
        http - HTTP protocols to set and replace.
        Returns:
        Returns the builder.
      • eventStreamHttp

        public B eventStreamHttp​(java.util.List<java.lang.String> eventStreamHttp)
        Sets the list of supported event stream HTTP protocols.
        Parameters:
        eventStreamHttp - Event stream HTTP protocols to set and replace.
        Returns:
        Returns the builder.
      • fromNode

        public B fromNode​(software.amazon.smithy.model.node.Node node)
        Updates the builder from a Node.
        Parameters:
        node - Node object that must be a valid ObjectNode.
        Returns:
        Returns the updated builder.