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