public class PutIntegrationResponseRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable
Represents a put integration response request.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
httpMethod
Specifies a put integration response request's HTTP method.
|
private java.lang.String |
resourceId
Specifies a put integration response request's resource identifier.
|
private java.util.Map<java.lang.String,java.lang.String> |
responseParameters
Represents response parameters that can be read from the backend
response.
|
private java.util.Map<java.lang.String,java.lang.String> |
responseTemplates
Specifies a put integration response's templates.
|
private java.lang.String |
restApiId
Specifies a put integration response request's API identifier.
|
private java.lang.String |
selectionPattern
Specifies the selection pattern of a put integration response.
|
private java.lang.String |
statusCode
Specifies the status code that is used to map the integration response to
an existing MethodResponse.
|
NOOP
Constructor and Description |
---|
PutIntegrationResponseRequest() |
Modifier and Type | Method and Description |
---|---|
PutIntegrationResponseRequest |
addResponseParametersEntry(java.lang.String key,
java.lang.String value) |
PutIntegrationResponseRequest |
addResponseTemplatesEntry(java.lang.String key,
java.lang.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(java.lang.Object obj) |
java.lang.String |
getHttpMethod()
Specifies a put integration response request's HTTP method.
|
java.lang.String |
getResourceId()
Specifies a put integration response request's resource identifier.
|
java.util.Map<java.lang.String,java.lang.String> |
getResponseParameters()
Represents response parameters that can be read from the backend
response.
|
java.util.Map<java.lang.String,java.lang.String> |
getResponseTemplates()
Specifies a put integration response's templates.
|
java.lang.String |
getRestApiId()
Specifies a put integration response request's API identifier.
|
java.lang.String |
getSelectionPattern()
Specifies the selection pattern of a put integration response.
|
java.lang.String |
getStatusCode()
Specifies the status code that is used to map the integration response to
an existing MethodResponse.
|
int |
hashCode() |
void |
setHttpMethod(java.lang.String httpMethod)
Specifies a put integration response request's HTTP method.
|
void |
setResourceId(java.lang.String resourceId)
Specifies a put integration response request's resource identifier.
|
void |
setResponseParameters(java.util.Map<java.lang.String,java.lang.String> responseParameters)
Represents response parameters that can be read from the backend
response.
|
void |
setResponseTemplates(java.util.Map<java.lang.String,java.lang.String> responseTemplates)
Specifies a put integration response's templates.
|
void |
setRestApiId(java.lang.String restApiId)
Specifies a put integration response request's API identifier.
|
void |
setSelectionPattern(java.lang.String selectionPattern)
Specifies the selection pattern of a put integration response.
|
void |
setStatusCode(java.lang.String statusCode)
Specifies the status code that is used to map the integration response to
an existing MethodResponse.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
PutIntegrationResponseRequest |
withHttpMethod(java.lang.String httpMethod)
Specifies a put integration response request's HTTP method.
|
PutIntegrationResponseRequest |
withResourceId(java.lang.String resourceId)
Specifies a put integration response request's resource identifier.
|
PutIntegrationResponseRequest |
withResponseParameters(java.util.Map<java.lang.String,java.lang.String> responseParameters)
Represents response parameters that can be read from the backend
response.
|
PutIntegrationResponseRequest |
withResponseTemplates(java.util.Map<java.lang.String,java.lang.String> responseTemplates)
Specifies a put integration response's templates.
|
PutIntegrationResponseRequest |
withRestApiId(java.lang.String restApiId)
Specifies a put integration response request's API identifier.
|
PutIntegrationResponseRequest |
withSelectionPattern(java.lang.String selectionPattern)
Specifies the selection pattern of a put integration response.
|
PutIntegrationResponseRequest |
withStatusCode(java.lang.String statusCode)
Specifies the status code that is used to map the integration response to
an existing MethodResponse.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
private java.lang.String restApiId
Specifies a put integration response request's API identifier.
private java.lang.String resourceId
Specifies a put integration response request's resource identifier.
private java.lang.String httpMethod
Specifies a put integration response request's HTTP method.
private java.lang.String statusCode
Specifies the status code that is used to map the integration response to an existing MethodResponse.
private java.lang.String selectionPattern
Specifies the selection pattern of a put integration response.
private java.util.Map<java.lang.String,java.lang.String> responseParameters
Represents response parameters that can be read from the backend
response. Response parameters are represented as a key/value map, with a
destination as the key and a source as the value. A destination must
match an existing response parameter in the Method. The source can
be a header from the backend response, or a static value. Static values
are specified using enclosing single quotes, and backend response headers
can be read using the pattern
integration.response.header.{name}
.
private java.util.Map<java.lang.String,java.lang.String> responseTemplates
Specifies a put integration response's templates.
public void setRestApiId(java.lang.String restApiId)
Specifies a put integration response request's API identifier.
restApiId
- Specifies a put integration response request's API identifier.public java.lang.String getRestApiId()
Specifies a put integration response request's API identifier.
public PutIntegrationResponseRequest withRestApiId(java.lang.String restApiId)
Specifies a put integration response request's API identifier.
restApiId
- Specifies a put integration response request's API identifier.public void setResourceId(java.lang.String resourceId)
Specifies a put integration response request's resource identifier.
resourceId
- Specifies a put integration response request's resource
identifier.public java.lang.String getResourceId()
Specifies a put integration response request's resource identifier.
public PutIntegrationResponseRequest withResourceId(java.lang.String resourceId)
Specifies a put integration response request's resource identifier.
resourceId
- Specifies a put integration response request's resource
identifier.public void setHttpMethod(java.lang.String httpMethod)
Specifies a put integration response request's HTTP method.
httpMethod
- Specifies a put integration response request's HTTP method.public java.lang.String getHttpMethod()
Specifies a put integration response request's HTTP method.
public PutIntegrationResponseRequest withHttpMethod(java.lang.String httpMethod)
Specifies a put integration response request's HTTP method.
httpMethod
- Specifies a put integration response request's HTTP method.public void setStatusCode(java.lang.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 java.lang.String getStatusCode()
Specifies the status code that is used to map the integration response to an existing MethodResponse.
public PutIntegrationResponseRequest withStatusCode(java.lang.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(java.lang.String selectionPattern)
Specifies the selection pattern of a put integration response.
selectionPattern
- Specifies the selection pattern of a put integration response.public java.lang.String getSelectionPattern()
Specifies the selection pattern of a put integration response.
public PutIntegrationResponseRequest withSelectionPattern(java.lang.String selectionPattern)
Specifies the selection pattern of a put integration response.
selectionPattern
- Specifies the selection pattern of a put integration response.public java.util.Map<java.lang.String,java.lang.String> getResponseParameters()
Represents response parameters that can be read from the backend
response. Response parameters are represented as a key/value map, with a
destination as the key and a source as the value. A destination must
match an existing response parameter in the Method. The source can
be a header from the backend response, or a static value. Static values
are specified using enclosing single quotes, and backend response headers
can be read using the pattern
integration.response.header.{name}
.
integration.response.header.{name}
.public void setResponseParameters(java.util.Map<java.lang.String,java.lang.String> responseParameters)
Represents response parameters that can be read from the backend
response. Response parameters are represented as a key/value map, with a
destination as the key and a source as the value. A destination must
match an existing response parameter in the Method. The source can
be a header from the backend response, or a static value. Static values
are specified using enclosing single quotes, and backend response headers
can be read using the pattern
integration.response.header.{name}
.
responseParameters
- Represents response parameters that can be read from the backend
response. Response parameters are represented as a key/value map,
with a destination as the key and a source as the value. A
destination must match an existing response parameter in the
Method. The source can be a header from the backend
response, or a static value. Static values are specified using
enclosing single quotes, and backend response headers can be read
using the pattern integration.response.header.{name}
.public PutIntegrationResponseRequest withResponseParameters(java.util.Map<java.lang.String,java.lang.String> responseParameters)
Represents response parameters that can be read from the backend
response. Response parameters are represented as a key/value map, with a
destination as the key and a source as the value. A destination must
match an existing response parameter in the Method. The source can
be a header from the backend response, or a static value. Static values
are specified using enclosing single quotes, and backend response headers
can be read using the pattern
integration.response.header.{name}
.
responseParameters
- Represents response parameters that can be read from the backend
response. Response parameters are represented as a key/value map,
with a destination as the key and a source as the value. A
destination must match an existing response parameter in the
Method. The source can be a header from the backend
response, or a static value. Static values are specified using
enclosing single quotes, and backend response headers can be read
using the pattern integration.response.header.{name}
.public PutIntegrationResponseRequest addResponseParametersEntry(java.lang.String key, java.lang.String value)
public PutIntegrationResponseRequest clearResponseParametersEntries()
public java.util.Map<java.lang.String,java.lang.String> getResponseTemplates()
Specifies a put integration response's templates.
public void setResponseTemplates(java.util.Map<java.lang.String,java.lang.String> responseTemplates)
Specifies a put integration response's templates.
responseTemplates
- Specifies a put integration response's templates.public PutIntegrationResponseRequest withResponseTemplates(java.util.Map<java.lang.String,java.lang.String> responseTemplates)
Specifies a put integration response's templates.
responseTemplates
- Specifies a put integration response's templates.public PutIntegrationResponseRequest addResponseTemplatesEntry(java.lang.String key, java.lang.String value)
public PutIntegrationResponseRequest clearResponseTemplatesEntries()
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public PutIntegrationResponseRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()