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 classHttpMalformedResponseBodyDefinition.BuilderBuilder used to create a HttpMalformedResponseBodyDefinition.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HttpMalformedResponseBodyDefinition.Builderbuilder()static HttpMalformedResponseBodyDefinitionfromNode(Node node)java.util.Optional<java.lang.String>getContents()java.lang.StringgetMediaType()java.util.Optional<java.lang.String>getMessageRegex()HttpMalformedResponseBodyDefinition.BuildertoBuilder()Take this object and create a builder that contains all of the current property values of this object.NodetoNode()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:ToSmithyBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToSmithyBuilder<HttpMalformedResponseBodyDefinition>- Returns:
- a builder for type T
-
builder
public static HttpMalformedResponseBodyDefinition.Builder builder()
-
-