@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PutIntegrationResponseRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
Represents a put integration response request.
NOOP
Constructor and Description |
---|
PutIntegrationResponseRequest() |
Modifier and Type | Method and Description |
---|---|
PutIntegrationResponseRequest |
addResponseParametersEntry(String key,
String value) |
PutIntegrationResponseRequest |
addResponseTemplatesEntry(String key,
String value) |
PutIntegrationResponseRequest |
clearResponseParametersEntries()
Removes all the entries added into ResponseParameters.
|
PutIntegrationResponseRequest |
clearResponseTemplatesEntries()
Removes all the entries added into ResponseTemplates.
|
PutIntegrationResponseRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getContentHandling()
Specifies how to handle response payload content type conversions.
|
String |
getHttpMethod()
Specifies a put integration response request's HTTP method.
|
String |
getResourceId()
Specifies a put integration response request's resource identifier.
|
Map<String,String> |
getResponseParameters()
A key-value map specifying response parameters that are passed to the method response from the back end.
|
Map<String,String> |
getResponseTemplates()
Specifies a put integration response's templates.
|
String |
getRestApiId()
The string identifier of the associated RestApi.
|
String |
getSelectionPattern()
Specifies the selection pattern of a put integration response.
|
String |
getStatusCode()
Specifies the status code that is used to map the integration response to an existing MethodResponse.
|
int |
hashCode() |
void |
setContentHandling(ContentHandlingStrategy contentHandling)
Specifies how to handle response payload content type conversions.
|
void |
setContentHandling(String contentHandling)
Specifies how to handle response payload content type conversions.
|
void |
setHttpMethod(String httpMethod)
Specifies a put integration response request's HTTP method.
|
void |
setResourceId(String resourceId)
Specifies a put integration response request's resource identifier.
|
void |
setResponseParameters(Map<String,String> responseParameters)
A key-value map specifying response parameters that are passed to the method response from the back end.
|
void |
setResponseTemplates(Map<String,String> responseTemplates)
Specifies a put integration response's templates.
|
void |
setRestApiId(String restApiId)
The string identifier of the associated RestApi.
|
void |
setSelectionPattern(String selectionPattern)
Specifies the selection pattern of a put integration response.
|
void |
setStatusCode(String statusCode)
Specifies the status code that is used to map the integration response to an existing MethodResponse.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
PutIntegrationResponseRequest |
withContentHandling(ContentHandlingStrategy contentHandling)
Specifies how to handle response payload content type conversions.
|
PutIntegrationResponseRequest |
withContentHandling(String contentHandling)
Specifies how to handle response payload content type conversions.
|
PutIntegrationResponseRequest |
withHttpMethod(String httpMethod)
Specifies a put integration response request's HTTP method.
|
PutIntegrationResponseRequest |
withResourceId(String resourceId)
Specifies a put integration response request's resource identifier.
|
PutIntegrationResponseRequest |
withResponseParameters(Map<String,String> responseParameters)
A key-value map specifying response parameters that are passed to the method response from the back end.
|
PutIntegrationResponseRequest |
withResponseTemplates(Map<String,String> responseTemplates)
Specifies a put integration response's templates.
|
PutIntegrationResponseRequest |
withRestApiId(String restApiId)
The string identifier of the associated RestApi.
|
PutIntegrationResponseRequest |
withSelectionPattern(String selectionPattern)
Specifies the selection pattern of a put integration response.
|
PutIntegrationResponseRequest |
withStatusCode(String statusCode)
Specifies the status code that is used to map the integration response to an existing MethodResponse.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setRestApiId(String restApiId)
The string identifier of the associated RestApi.
restApiId
- The string identifier of the associated RestApi.public String getRestApiId()
The string identifier of the associated RestApi.
public PutIntegrationResponseRequest withRestApiId(String restApiId)
The string identifier of the associated RestApi.
restApiId
- The string identifier of the associated RestApi.public void setResourceId(String resourceId)
Specifies a put integration response request's resource identifier.
resourceId
- Specifies a put integration response request's resource identifier.public String getResourceId()
Specifies a put integration response request's resource identifier.
public PutIntegrationResponseRequest withResourceId(String resourceId)
Specifies a put integration response request's resource identifier.
resourceId
- Specifies a put integration response request's resource identifier.public void setHttpMethod(String httpMethod)
Specifies a put integration response request's HTTP method.
httpMethod
- Specifies a put integration response request's HTTP method.public String getHttpMethod()
Specifies a put integration response request's HTTP method.
public PutIntegrationResponseRequest withHttpMethod(String httpMethod)
Specifies a put integration response request's HTTP method.
httpMethod
- Specifies a put integration response request's HTTP method.public void setStatusCode(String statusCode)
Specifies the status code that is used to map the integration response to an existing MethodResponse.
statusCode
- Specifies the status code that is used to map the integration response to an existing
MethodResponse.public String getStatusCode()
Specifies the status code that is used to map the integration response to an existing MethodResponse.
public PutIntegrationResponseRequest withStatusCode(String statusCode)
Specifies the status code that is used to map the integration response to an existing MethodResponse.
statusCode
- Specifies the status code that is used to map the integration response to an existing
MethodResponse.public void setSelectionPattern(String selectionPattern)
Specifies the selection pattern of a put integration response.
selectionPattern
- Specifies the selection pattern of a put integration response.public String getSelectionPattern()
Specifies the selection pattern of a put integration response.
public PutIntegrationResponseRequest withSelectionPattern(String selectionPattern)
Specifies the selection pattern of a put integration response.
selectionPattern
- Specifies the selection pattern of a put integration response.public Map<String,String> getResponseParameters()
A key-value map specifying response parameters that are passed to the method response from the back end. The key
is a method response header parameter name and the mapped value is an integration response header value, a static
value enclosed within a pair of single quotes, or a JSON expression from the integration response body. The
mapping key must match the pattern of method.response.header.{name}
, where name
is a
valid and unique header name. The mapped non-static value must match the pattern of
integration.response.header.{name}
or integration.response.body.{JSON-expression}
,
where name
must be a valid and unique response header name and JSON-expression
a valid
JSON expression without the $
prefix.
method.response.header.{name}
,
where name
is a valid and unique header name. The mapped non-static value must match the
pattern of integration.response.header.{name}
or
integration.response.body.{JSON-expression}
, where name
must be a valid and
unique response header name and JSON-expression
a valid JSON expression without the
$
prefix.public void setResponseParameters(Map<String,String> responseParameters)
A key-value map specifying response parameters that are passed to the method response from the back end. The key
is a method response header parameter name and the mapped value is an integration response header value, a static
value enclosed within a pair of single quotes, or a JSON expression from the integration response body. The
mapping key must match the pattern of method.response.header.{name}
, where name
is a
valid and unique header name. The mapped non-static value must match the pattern of
integration.response.header.{name}
or integration.response.body.{JSON-expression}
,
where name
must be a valid and unique response header name and JSON-expression
a valid
JSON expression without the $
prefix.
responseParameters
- A key-value map specifying response parameters that are passed to the method response from the back end.
The key is a method response header parameter name and the mapped value is an integration response header
value, a static value enclosed within a pair of single quotes, or a JSON expression from the integration
response body. The mapping key must match the pattern of method.response.header.{name}
, where
name
is a valid and unique header name. The mapped non-static value must match the pattern of
integration.response.header.{name}
or
integration.response.body.{JSON-expression}
, where name
must be a valid and
unique response header name and JSON-expression
a valid JSON expression without the
$
prefix.public PutIntegrationResponseRequest withResponseParameters(Map<String,String> responseParameters)
A key-value map specifying response parameters that are passed to the method response from the back end. The key
is a method response header parameter name and the mapped value is an integration response header value, a static
value enclosed within a pair of single quotes, or a JSON expression from the integration response body. The
mapping key must match the pattern of method.response.header.{name}
, where name
is a
valid and unique header name. The mapped non-static value must match the pattern of
integration.response.header.{name}
or integration.response.body.{JSON-expression}
,
where name
must be a valid and unique response header name and JSON-expression
a valid
JSON expression without the $
prefix.
responseParameters
- A key-value map specifying response parameters that are passed to the method response from the back end.
The key is a method response header parameter name and the mapped value is an integration response header
value, a static value enclosed within a pair of single quotes, or a JSON expression from the integration
response body. The mapping key must match the pattern of method.response.header.{name}
, where
name
is a valid and unique header name. The mapped non-static value must match the pattern of
integration.response.header.{name}
or
integration.response.body.{JSON-expression}
, where name
must be a valid and
unique response header name and JSON-expression
a valid JSON expression without the
$
prefix.public PutIntegrationResponseRequest addResponseParametersEntry(String key, String value)
public PutIntegrationResponseRequest clearResponseParametersEntries()
public Map<String,String> getResponseTemplates()
Specifies a put integration response's templates.
public void setResponseTemplates(Map<String,String> responseTemplates)
Specifies a put integration response's templates.
responseTemplates
- Specifies a put integration response's templates.public PutIntegrationResponseRequest withResponseTemplates(Map<String,String> responseTemplates)
Specifies a put integration response's templates.
responseTemplates
- Specifies a put integration response's templates.public PutIntegrationResponseRequest addResponseTemplatesEntry(String key, String value)
public PutIntegrationResponseRequest clearResponseTemplatesEntries()
public void setContentHandling(String contentHandling)
Specifies how to handle response payload content type conversions. Supported values are
CONVERT_TO_BINARY
and CONVERT_TO_TEXT
, with the following behaviors:
CONVERT_TO_BINARY
: Converts a response payload from a Base64-encoded string to the corresponding
binary blob.
CONVERT_TO_TEXT
: Converts a response payload from a binary blob to a Base64-encoded string.
If this property is not defined, the response payload will be passed through from the integration response to the method response without modification.
contentHandling
- Specifies how to handle response payload content type conversions. Supported values are
CONVERT_TO_BINARY
and CONVERT_TO_TEXT
, with the following behaviors:
CONVERT_TO_BINARY
: Converts a response payload from a Base64-encoded string to the
corresponding binary blob.
CONVERT_TO_TEXT
: Converts a response payload from a binary blob to a Base64-encoded string.
If this property is not defined, the response payload will be passed through from the integration response to the method response without modification.
ContentHandlingStrategy
public String getContentHandling()
Specifies how to handle response payload content type conversions. Supported values are
CONVERT_TO_BINARY
and CONVERT_TO_TEXT
, with the following behaviors:
CONVERT_TO_BINARY
: Converts a response payload from a Base64-encoded string to the corresponding
binary blob.
CONVERT_TO_TEXT
: Converts a response payload from a binary blob to a Base64-encoded string.
If this property is not defined, the response payload will be passed through from the integration response to the method response without modification.
CONVERT_TO_BINARY
and CONVERT_TO_TEXT
, with the following behaviors:
CONVERT_TO_BINARY
: Converts a response payload from a Base64-encoded string to the
corresponding binary blob.
CONVERT_TO_TEXT
: Converts a response payload from a binary blob to a Base64-encoded string.
If this property is not defined, the response payload will be passed through from the integration response to the method response without modification.
ContentHandlingStrategy
public PutIntegrationResponseRequest withContentHandling(String contentHandling)
Specifies how to handle response payload content type conversions. Supported values are
CONVERT_TO_BINARY
and CONVERT_TO_TEXT
, with the following behaviors:
CONVERT_TO_BINARY
: Converts a response payload from a Base64-encoded string to the corresponding
binary blob.
CONVERT_TO_TEXT
: Converts a response payload from a binary blob to a Base64-encoded string.
If this property is not defined, the response payload will be passed through from the integration response to the method response without modification.
contentHandling
- Specifies how to handle response payload content type conversions. Supported values are
CONVERT_TO_BINARY
and CONVERT_TO_TEXT
, with the following behaviors:
CONVERT_TO_BINARY
: Converts a response payload from a Base64-encoded string to the
corresponding binary blob.
CONVERT_TO_TEXT
: Converts a response payload from a binary blob to a Base64-encoded string.
If this property is not defined, the response payload will be passed through from the integration response to the method response without modification.
ContentHandlingStrategy
public void setContentHandling(ContentHandlingStrategy contentHandling)
Specifies how to handle response payload content type conversions. Supported values are
CONVERT_TO_BINARY
and CONVERT_TO_TEXT
, with the following behaviors:
CONVERT_TO_BINARY
: Converts a response payload from a Base64-encoded string to the corresponding
binary blob.
CONVERT_TO_TEXT
: Converts a response payload from a binary blob to a Base64-encoded string.
If this property is not defined, the response payload will be passed through from the integration response to the method response without modification.
contentHandling
- Specifies how to handle response payload content type conversions. Supported values are
CONVERT_TO_BINARY
and CONVERT_TO_TEXT
, with the following behaviors:
CONVERT_TO_BINARY
: Converts a response payload from a Base64-encoded string to the
corresponding binary blob.
CONVERT_TO_TEXT
: Converts a response payload from a binary blob to a Base64-encoded string.
If this property is not defined, the response payload will be passed through from the integration response to the method response without modification.
ContentHandlingStrategy
public PutIntegrationResponseRequest withContentHandling(ContentHandlingStrategy contentHandling)
Specifies how to handle response payload content type conversions. Supported values are
CONVERT_TO_BINARY
and CONVERT_TO_TEXT
, with the following behaviors:
CONVERT_TO_BINARY
: Converts a response payload from a Base64-encoded string to the corresponding
binary blob.
CONVERT_TO_TEXT
: Converts a response payload from a binary blob to a Base64-encoded string.
If this property is not defined, the response payload will be passed through from the integration response to the method response without modification.
contentHandling
- Specifies how to handle response payload content type conversions. Supported values are
CONVERT_TO_BINARY
and CONVERT_TO_TEXT
, with the following behaviors:
CONVERT_TO_BINARY
: Converts a response payload from a Base64-encoded string to the
corresponding binary blob.
CONVERT_TO_TEXT
: Converts a response payload from a binary blob to a Base64-encoded string.
If this property is not defined, the response payload will be passed through from the integration response to the method response without modification.
ContentHandlingStrategy
public String toString()
toString
in class Object
Object.toString()
public PutIntegrationResponseRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.