Class HttpMalformedRequestDefinition
- java.lang.Object
-
- software.amazon.smithy.protocoltests.traits.HttpMalformedRequestDefinition
-
- All Implemented Interfaces:
ToNode
,ToSmithyBuilder<HttpMalformedRequestDefinition>
public final class HttpMalformedRequestDefinition extends java.lang.Object implements ToNode, ToSmithyBuilder<HttpMalformedRequestDefinition>
Defines a request to be used by an HttpMalformedRequest test case.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HttpMalformedRequestDefinition.Builder
Builder used to create a HttpRequestTestsTrait.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HttpMalformedRequestDefinition.Builder
builder()
java.lang.String
expectUri()
static HttpMalformedRequestDefinition
fromNode(Node node)
java.util.Optional<java.lang.String>
getBody()
java.util.Optional<java.lang.String>
getBodyMediaType()
java.util.Map<java.lang.String,java.lang.String>
getHeaders()
java.util.Optional<java.lang.String>
getHost()
java.lang.String
getMethod()
java.util.List<java.lang.String>
getQueryParams()
java.util.Optional<java.lang.String>
getUri()
HttpMalformedRequestDefinition.Builder
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.Node
toNode()
Converts a value to aNode
.
-
-
-
Method Detail
-
getBody
public java.util.Optional<java.lang.String> getBody()
-
getBodyMediaType
public java.util.Optional<java.lang.String> getBodyMediaType()
-
getHeaders
public java.util.Map<java.lang.String,java.lang.String> getHeaders()
-
getHost
public java.util.Optional<java.lang.String> getHost()
-
getMethod
public java.lang.String getMethod()
-
getQueryParams
public java.util.List<java.lang.String> getQueryParams()
-
getUri
public java.util.Optional<java.lang.String> getUri()
-
expectUri
public java.lang.String expectUri()
-
fromNode
public static HttpMalformedRequestDefinition fromNode(Node node)
-
toBuilder
public HttpMalformedRequestDefinition.Builder toBuilder()
Description copied from interface:ToSmithyBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToSmithyBuilder<HttpMalformedRequestDefinition>
- Returns:
- a builder for type T
-
builder
public static HttpMalformedRequestDefinition.Builder builder()
-
-