Class HttpResponseTestCase.Builder
- java.lang.Object
-
- software.amazon.smithy.protocoltests.traits.HttpResponseTestCase.Builder
-
- All Implemented Interfaces:
SmithyBuilder<HttpResponseTestCase>
- Enclosing class:
- HttpResponseTestCase
public static final class HttpResponseTestCase.Builder extends java.lang.ObjectBuilder used to create a HttpResponseTestCase.
-
-
Method Summary
Modifier and Type Method Description BauthScheme(ShapeId authScheme)Bbody(java.lang.String body)BbodyMediaType(java.lang.String bodyMediaType)HttpResponseTestCasebuild()Creates an immutable object that is created from the properties that have been set on the builder.HttpResponseTestCase.Buildercode(java.lang.Integer code)Bdocumentation(java.lang.String documentation)BforbidHeaders(java.util.List<java.lang.String> forbidHeaders)Bheaders(java.util.Map<java.lang.String,java.lang.String> headers)Bid(java.lang.String id)Bparams(ObjectNode params)Bprotocol(ShapeId protocol)BputHeader(java.lang.String key, java.lang.String value)BrequireHeaders(java.util.List<java.lang.String> requireHeaders)BvendorParams(ObjectNode vendorParams)
-
-
-
Method Detail
-
code
public HttpResponseTestCase.Builder code(java.lang.Integer code)
-
build
public HttpResponseTestCase build()
Description copied from interface:SmithyBuilderCreates an immutable object that is created from the properties that have been set on the builder.- Returns:
- an instance of T
-
id
public B id(java.lang.String id)
-
documentation
public B documentation(java.lang.String documentation)
-
protocol
public B protocol(ShapeId protocol)
-
authScheme
public B authScheme(ShapeId authScheme)
-
body
public B body(java.lang.String body)
-
bodyMediaType
public B bodyMediaType(java.lang.String bodyMediaType)
-
params
public B params(ObjectNode params)
-
vendorParams
public B vendorParams(ObjectNode vendorParams)
-
headers
public B headers(java.util.Map<java.lang.String,java.lang.String> headers)
-
putHeader
public B putHeader(java.lang.String key, java.lang.String value)
-
forbidHeaders
public B forbidHeaders(java.util.List<java.lang.String> forbidHeaders)
-
requireHeaders
public B requireHeaders(java.util.List<java.lang.String> requireHeaders)
-
-