Class HttpTrait.Builder
- java.lang.Object
-
- software.amazon.smithy.model.traits.AbstractTraitBuilder<HttpTrait,HttpTrait.Builder>
-
- software.amazon.smithy.model.traits.HttpTrait.Builder
-
- All Implemented Interfaces:
SmithyBuilder<HttpTrait>
- Enclosing class:
- HttpTrait
public static final class HttpTrait.Builder extends AbstractTraitBuilder<HttpTrait,HttpTrait.Builder>
Builder used to create an Http trait.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpTrait
build()
Creates an immutable object that is created from the properties that have been set on the builder.HttpTrait.Builder
code(int code)
HttpTrait.Builder
method(java.lang.String method)
HttpTrait.Builder
uri(UriPattern uri)
-
Methods inherited from class software.amazon.smithy.model.traits.AbstractTraitBuilder
getSourceLocation, sourceLocation
-
-
-
-
Method Detail
-
uri
public HttpTrait.Builder uri(UriPattern uri)
-
method
public HttpTrait.Builder method(java.lang.String method)
-
code
public HttpTrait.Builder code(int code)
-
build
public HttpTrait 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
-
-