Class GatewayResponse
java.lang.Object
software.amazon.smithy.aws.apigateway.traits.GatewayResponse
- All Implemented Interfaces:
ToNode,ToSmithyBuilder<GatewayResponse>
public final class GatewayResponse
extends Object
implements ToNode, ToSmithyBuilder<GatewayResponse>
A gateway response configuration for a specific response type.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic GatewayResponse.Builderbuilder()Creates a builder for aGatewayResponse.booleanstatic GatewayResponseCreates aGatewayResponsefrom a Node.Gets the response parameters for the gateway response.Gets the response templates for the gateway response.Gets the HTTP status code for the gateway response.inthashCode()Take this object and create a builder that contains all of the current property values of this object.toNode()Converts a value to aNode.
-
Method Details
-
builder
Creates a builder for aGatewayResponse.- Returns:
- Returns the created builder.
-
fromNode
Creates aGatewayResponsefrom a Node.- Parameters:
node- Node to deserialize.- Returns:
- Returns the created GatewayResponse.
-
getStatusCode
Gets the HTTP status code for the gateway response.- Returns:
- Returns the optional status code.
-
getResponseParameters
Gets the response parameters for the gateway response.- Returns:
- Returns the immutable map of response parameters.
-
getResponseTemplates
Gets the response templates for the gateway response.- Returns:
- Returns the immutable map of response templates.
-
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<GatewayResponse>- Returns:
- a builder for type T
-
toNode
Description copied from interface:ToNodeConverts a value to aNode. -
equals
-
hashCode
public int hashCode()
-