Class HttpMalformedRequestDefinition.Builder
- java.lang.Object
-
- software.amazon.smithy.protocoltests.traits.HttpMalformedRequestDefinition.Builder
-
- All Implemented Interfaces:
SmithyBuilder<HttpMalformedRequestDefinition>
- Enclosing class:
- HttpMalformedRequestDefinition
public static final class HttpMalformedRequestDefinition.Builder extends java.lang.Object implements SmithyBuilder<HttpMalformedRequestDefinition>
Builder used to create a HttpRequestTestsTrait.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpMalformedRequestDefinition.Builder
body(java.lang.String body)
HttpMalformedRequestDefinition.Builder
bodyMediaType(java.lang.String bodyMediaType)
HttpMalformedRequestDefinition
build()
Creates an immutable object that is created from the properties that have been set on the builder.HttpMalformedRequestDefinition.Builder
headers(java.util.Map<java.lang.String,java.lang.String> headers)
HttpMalformedRequestDefinition.Builder
host(java.lang.String host)
HttpMalformedRequestDefinition.Builder
method(java.lang.String method)
HttpMalformedRequestDefinition.Builder
putHeader(java.lang.String key, java.lang.String value)
HttpMalformedRequestDefinition.Builder
queryParams(java.util.List<java.lang.String> queryParams)
HttpMalformedRequestDefinition.Builder
uri(java.lang.String uri)
-
-
-
Method Detail
-
body
public HttpMalformedRequestDefinition.Builder body(java.lang.String body)
-
bodyMediaType
public HttpMalformedRequestDefinition.Builder bodyMediaType(java.lang.String bodyMediaType)
-
headers
public HttpMalformedRequestDefinition.Builder headers(java.util.Map<java.lang.String,java.lang.String> headers)
-
putHeader
public HttpMalformedRequestDefinition.Builder putHeader(java.lang.String key, java.lang.String value)
-
host
public HttpMalformedRequestDefinition.Builder host(java.lang.String host)
-
method
public HttpMalformedRequestDefinition.Builder method(java.lang.String method)
-
queryParams
public HttpMalformedRequestDefinition.Builder queryParams(java.util.List<java.lang.String> queryParams)
-
uri
public HttpMalformedRequestDefinition.Builder uri(java.lang.String uri)
-
build
public HttpMalformedRequestDefinition build()
Description copied from interface:SmithyBuilder
Creates an immutable object that is created from the properties that have been set on the builder.- Specified by:
build
in interfaceSmithyBuilder<HttpMalformedRequestDefinition>
- Returns:
- an instance of T
-
-