public final class IntegrationResponse extends java.lang.Object implements ToNode, ToSmithyBuilder<IntegrationResponse>
Modifier and Type | Class and Description |
---|---|
static class |
IntegrationResponse.Builder
Builds a
IntegrationResponse . |
Modifier and Type | Method and Description |
---|---|
static IntegrationResponse.Builder |
builder()
Creates a builder used to build an IntegrationResponse.
|
boolean |
equals(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.String |
getStatusCode()
Gets the status code of the response.
|
int |
hashCode() |
IntegrationResponse.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 a
Node . |
public static IntegrationResponse.Builder builder()
public java.lang.String getStatusCode()
public java.util.Optional<java.lang.String> getContentHandling()
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.
public java.util.Map<java.lang.String,java.lang.String> getResponseTemplates()
public java.util.Optional<java.lang.String> getResponseTemplate(java.lang.String mimeType)
mimeType
- Response template MIME type.public java.util.Map<java.lang.String,java.lang.String> getResponseParameters()
public java.util.Optional<java.lang.String> getResponseParameter(java.lang.String name)
name
- Header name to retrieve.public IntegrationResponse.Builder toBuilder()
ToSmithyBuilder
toBuilder
in interface ToSmithyBuilder<IntegrationResponse>
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object