Class Protocol.Builder
- java.lang.Object
-
- software.amazon.smithy.model.traits.Protocol.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Protocol.Builder
addAuth(java.lang.String value)
Adds an auth scheme to the protocol.Protocol.Builder
addTag(java.lang.String tag)
Adds a tag to the protocol.Protocol
build()
Protocol.Builder
clearAuth()
Removes all auth schemes from the protocol.Protocol.Builder
clearTags()
Removes all tags from the protocol.Protocol.Builder
name(java.lang.String name)
Sets the protocol name.Protocol.Builder
removeAuth(java.lang.String value)
Removes an auth scheme from the protocol.Protocol.Builder
removeTag(java.lang.String tag)
Removes a tag from the protocol.
-
-
-
Method Detail
-
build
public Protocol build()
- Specified by:
build
in interfacesoftware.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.
-
-