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 request.
|
boolean |
equals(Object obj) |
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()
Specifies a put integration response request's API identifier.
|
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 |
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)
Specifies a put integration response request's API identifier.
|
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 |
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)
Specifies a put integration response request's API identifier.
|
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.
|
getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setRestApiId(String restApiId)
Specifies a put integration response request's API identifier.
restApiId
- Specifies a put integration response request's API identifier.public String getRestApiId()
Specifies a put integration response request's API identifier.
public PutIntegrationResponseRequest withRestApiId(String restApiId)
Specifies a put integration response request's API identifier.
restApiId
- Specifies a put integration response request's API identifier.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 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.