Class Rpcv2CborTrait.Builder
- java.lang.Object
-
- software.amazon.smithy.model.traits.AbstractTraitBuilder<Rpcv2CborTrait,Rpcv2CborTrait.Builder>
-
- software.amazon.smithy.protocol.traits.Rpcv2CborTrait.Builder
-
- All Implemented Interfaces:
SmithyBuilder<Rpcv2CborTrait>
- Enclosing class:
- Rpcv2CborTrait
public static final class Rpcv2CborTrait.Builder extends AbstractTraitBuilder<Rpcv2CborTrait,Rpcv2CborTrait.Builder>
Builder for creating aRpcv2CborTrait
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Rpcv2CborTrait
build()
Creates an immutable object that is created from the properties that have been set on the builder.Rpcv2CborTrait.Builder
eventStreamHttp(java.util.List<java.lang.String> eventStreamHttp)
Sets the list of supported event stream HTTP protocols.Rpcv2CborTrait.Builder
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
-
-
-
-
Method Detail
-
build
public Rpcv2CborTrait build()
Description copied from interface:SmithyBuilder
Creates an immutable object that is created from the properties that have been set on the builder.- Returns:
- an instance of T
-
http
public Rpcv2CborTrait.Builder 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 Rpcv2CborTrait.Builder 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.
-
-