Class HttpMalformedResponseDefinition.Builder
- java.lang.Object
-
- software.amazon.smithy.protocoltests.traits.HttpMalformedResponseDefinition.Builder
-
- All Implemented Interfaces:
SmithyBuilder<HttpMalformedResponseDefinition>
- Enclosing class:
- HttpMalformedResponseDefinition
public static final class HttpMalformedResponseDefinition.Builder extends java.lang.Object implements SmithyBuilder<HttpMalformedResponseDefinition>
Builder used to create a HttpMalformedResponseDefinition.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpMalformedResponseDefinition.Builder
body(HttpMalformedResponseBodyDefinition body)
HttpMalformedResponseDefinition
build()
Creates an immutable object that is created from the properties that have been set on the builder.HttpMalformedResponseDefinition.Builder
code(int code)
HttpMalformedResponseDefinition.Builder
headers(java.util.Map<java.lang.String,java.lang.String> headers)
HttpMalformedResponseDefinition.Builder
putHeader(java.lang.String key, java.lang.String value)
-
-
-
Method Detail
-
body
public HttpMalformedResponseDefinition.Builder body(HttpMalformedResponseBodyDefinition body)
-
code
public HttpMalformedResponseDefinition.Builder code(int code)
-
headers
public HttpMalformedResponseDefinition.Builder headers(java.util.Map<java.lang.String,java.lang.String> headers)
-
putHeader
public HttpMalformedResponseDefinition.Builder putHeader(java.lang.String key, java.lang.String value)
-
build
public HttpMalformedResponseDefinition 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<HttpMalformedResponseDefinition>
- Returns:
- an instance of T
-
-