Class IntegrationResponse
java.lang.Object
software.amazon.smithy.aws.apigateway.traits.IntegrationResponse
- All Implemented Interfaces:
ToNode
,ToSmithyBuilder<IntegrationResponse>
public final class IntegrationResponse
extends Object
implements ToNode, ToSmithyBuilder<IntegrationResponse>
An API Gateway integration response object.
- See Also:
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic IntegrationResponse.Builder
builder()
Creates a builder used to build an IntegrationResponse.boolean
Gets the response payload content handling type.getResponseParameter
(String name) Gets a specific response parameter by it's input mapping expression.Gets response parameters.getResponseTemplate
(String mimeType) Gets a specific response template by MIME type.Gets a map of MIME types to mapping templates for the response payload.Gets the status code of the response.int
hashCode()
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 used to build an IntegrationResponse.- Returns:
- Returns the created builder.
-
getStatusCode
Gets the status code of the response.- Returns:
- Returns the status code.
-
getContentHandling
Gets the response payload content handling type.Valid values are 1) CONVERT_TO_TEXT, for converting a binary payload into a Base64-encoded string or converting a text payload into a utf-8-encoded string or passing through the text payload natively without modification, and 2) CONVERT_TO_BINARY, for converting a text payload into Base64-decoded blob or passing through a binary payload natively without modification.
- Returns:
- Returns the content handling type.
-
getResponseTemplates
Gets a map of MIME types to mapping templates for the response payload.- Returns:
- Returns the immutable map.
-
getResponseTemplate
Gets a specific response template by MIME type.- Parameters:
mimeType
- Response template MIME type.- Returns:
- Returns the optionally found response template.
-
getResponseParameters
Gets response parameters.- Returns:
- Returns the map of parameter expressions to how they modify the response.
- See Also:
-
getResponseParameter
Gets a specific response parameter by it's input mapping expression.- Parameters:
name
- Header name to retrieve.- Returns:
- Returns the optionally found response parameter.
-
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<IntegrationResponse>
- Returns:
- a builder for type T
-
toNode
Description copied from interface:ToNode
Converts a value to aNode
. -
equals
-
hashCode
public int hashCode()
-