Class Protocol.Builder

  • All Implemented Interfaces:
    software.amazon.smithy.utils.SmithyBuilder<Protocol>
    Enclosing class:
    Protocol

    public static final class Protocol.Builder
    extends java.lang.Object
    implements software.amazon.smithy.utils.SmithyBuilder<Protocol>
    Protocol builder.
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • build

        public Protocol build()
        Specified by:
        build in interface software.amazon.smithy.utils.SmithyBuilder<Protocol>
      • name

        public Protocol.Builder name​(java.lang.String name)
        Sets the protocol name.
        Parameters:
        name - Protocol name.
        Returns:
        Returns the builder.
      • addAuth

        public Protocol.Builder addAuth​(java.lang.String value)
        Adds an auth scheme to the protocol.
        Parameters:
        value - Auth scheme to add.
        Returns:
        Returns the builder.
      • removeAuth

        public Protocol.Builder removeAuth​(java.lang.String value)
        Removes an auth scheme from the protocol.
        Parameters:
        value - Auth scheme to remove.
        Returns:
        Returns the builder.
      • clearAuth

        public Protocol.Builder clearAuth()
        Removes all auth schemes from the protocol.
        Returns:
        Returns the builder.
      • addTag

        public Protocol.Builder addTag​(java.lang.String tag)
        Adds a tag to the protocol.
        Parameters:
        tag - Tag to add.
        Returns:
        Returns the builder.
      • removeTag

        public Protocol.Builder removeTag​(java.lang.String tag)
        Removes a tag from the protocol.
        Parameters:
        tag - Tag to remove.
        Returns:
        Returns the builder.
      • clearTags

        public Protocol.Builder clearTags()
        Removes all tags from the protocol.
        Returns:
        Returns the builder.