Class HttpMalformedResponseDefinition
- java.lang.Object
-
- software.amazon.smithy.protocoltests.traits.HttpMalformedResponseDefinition
-
- All Implemented Interfaces:
ToNode
,ToSmithyBuilder<HttpMalformedResponseDefinition>
public final class HttpMalformedResponseDefinition extends java.lang.Object implements ToNode, ToSmithyBuilder<HttpMalformedResponseDefinition>
Defines the response expected by an HttpMalformedRequest test case.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HttpMalformedResponseDefinition.Builder
Builder used to create a HttpMalformedResponseDefinition.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HttpMalformedResponseDefinition.Builder
builder()
static HttpMalformedResponseDefinition
fromNode(Node node)
java.util.Optional<HttpMalformedResponseBodyDefinition>
getBody()
int
getCode()
java.util.Map<java.lang.String,java.lang.String>
getHeaders()
HttpMalformedResponseDefinition.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<HttpMalformedResponseBodyDefinition> getBody()
-
getCode
public int getCode()
-
getHeaders
public java.util.Map<java.lang.String,java.lang.String> getHeaders()
-
fromNode
public static HttpMalformedResponseDefinition fromNode(Node node)
-
toBuilder
public HttpMalformedResponseDefinition.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<HttpMalformedResponseDefinition>
- Returns:
- a builder for type T
-
builder
public static HttpMalformedResponseDefinition.Builder builder()
-
-