Class IntegrationResponse
- java.lang.Object
-
- software.amazon.smithy.aws.apigateway.traits.IntegrationResponse
-
- All Implemented Interfaces:
ToNode,ToSmithyBuilder<IntegrationResponse>
public final class IntegrationResponse extends java.lang.Object implements ToNode, ToSmithyBuilder<IntegrationResponse>
An API Gateway integration response object.- See Also:
- Integration response
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classIntegrationResponse.BuilderBuilds aIntegrationResponse.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static IntegrationResponse.Builderbuilder()Creates a builder used to build an IntegrationResponse.booleanequals(java.lang.Object o)java.util.Optional<java.lang.String>getContentHandling()Gets the response payload content handling type.java.util.Optional<java.lang.String>getResponseParameter(java.lang.String name)Gets a specific response parameter by it's input mapping expression.java.util.Map<java.lang.String,java.lang.String>getResponseParameters()Gets response parameters.java.util.Optional<java.lang.String>getResponseTemplate(java.lang.String mimeType)Gets a specific response template by MIME type.java.util.Map<java.lang.String,java.lang.String>getResponseTemplates()Gets a map of MIME types to mapping templates for the response payload.java.lang.StringgetStatusCode()Gets the status code of the response.inthashCode()IntegrationResponse.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
-
builder
public static IntegrationResponse.Builder builder()
Creates a builder used to build an IntegrationResponse.- Returns:
- Returns the created builder.
-
getStatusCode
public java.lang.String getStatusCode()
Gets the status code of the response.- Returns:
- Returns the status code.
-
getContentHandling
public java.util.Optional<java.lang.String> 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
public java.util.Map<java.lang.String,java.lang.String> getResponseTemplates()
Gets a map of MIME types to mapping templates for the response payload.- Returns:
- Returns the immutable map.
-
getResponseTemplate
public java.util.Optional<java.lang.String> getResponseTemplate(java.lang.String mimeType)
Gets a specific response template by MIME type.- Parameters:
mimeType- Response template MIME type.- Returns:
- Returns the optionally found response template.
-
getResponseParameters
public java.util.Map<java.lang.String,java.lang.String> getResponseParameters()
Gets response parameters.- Returns:
- Returns the map of parameter expressions to how they modify the response.
- See Also:
- Response parameters
-
getResponseParameter
public java.util.Optional<java.lang.String> getResponseParameter(java.lang.String name)
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
public IntegrationResponse.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<IntegrationResponse>- Returns:
- a builder for type T
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-