Class HttpRequestTestCase.Builder
- java.lang.Object
-
- software.amazon.smithy.protocoltests.traits.HttpRequestTestCase.Builder
-
- All Implemented Interfaces:
SmithyBuilder<HttpRequestTestCase>
- Enclosing class:
- HttpRequestTestCase
public static final class HttpRequestTestCase.Builder extends java.lang.Object
Builder used to create a HttpRequestTestsTrait.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description B
appliesTo(AppliesTo appliesTo)
B
authScheme(ShapeId authScheme)
B
body(java.lang.String body)
B
bodyMediaType(java.lang.String bodyMediaType)
HttpRequestTestCase
build()
Creates an immutable object that is created from the properties that have been set on the builder.B
documentation(java.lang.String documentation)
B
forbidHeaders(java.util.List<java.lang.String> forbidHeaders)
HttpRequestTestCase.Builder
forbidQueryParams(java.util.List<java.lang.String> forbidQueryParams)
B
headers(java.util.Map<java.lang.String,java.lang.String> headers)
HttpRequestTestCase.Builder
host(java.lang.String host)
B
id(java.lang.String id)
HttpRequestTestCase.Builder
method(java.lang.String method)
B
params(ObjectNode params)
B
protocol(ShapeId protocol)
B
putHeader(java.lang.String key, java.lang.String value)
HttpRequestTestCase.Builder
queryParams(java.util.List<java.lang.String> queryParams)
B
requireHeaders(java.util.List<java.lang.String> requireHeaders)
HttpRequestTestCase.Builder
requireQueryParams(java.util.List<java.lang.String> requireQueryParams)
HttpRequestTestCase.Builder
resolvedHost(java.lang.String resolvedHost)
B
tags(java.util.List<java.lang.String> tags)
HttpRequestTestCase.Builder
uri(java.lang.String uri)
B
vendorParams(ObjectNode vendorParams)
B
vendorParamsShape(ShapeId vendorParamsShape)
-
-
-
Method Detail
-
method
public HttpRequestTestCase.Builder method(java.lang.String method)
-
uri
public HttpRequestTestCase.Builder uri(java.lang.String uri)
-
host
public HttpRequestTestCase.Builder host(java.lang.String host)
-
resolvedHost
public HttpRequestTestCase.Builder resolvedHost(java.lang.String resolvedHost)
-
queryParams
public HttpRequestTestCase.Builder queryParams(java.util.List<java.lang.String> queryParams)
-
forbidQueryParams
public HttpRequestTestCase.Builder forbidQueryParams(java.util.List<java.lang.String> forbidQueryParams)
-
requireQueryParams
public HttpRequestTestCase.Builder requireQueryParams(java.util.List<java.lang.String> requireQueryParams)
-
build
public HttpRequestTestCase 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
-
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)
-
vendorParamsShape
public B vendorParamsShape(ShapeId vendorParamsShape)
-
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)
-
tags
public B tags(java.util.List<java.lang.String> tags)
-
appliesTo
public B appliesTo(AppliesTo appliesTo)
-
-