@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PutMethodResponseRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
Request to add a MethodResponse to an existing Method resource.
NOOP| Constructor and Description |
|---|
PutMethodResponseRequest() |
| Modifier and Type | Method and Description |
|---|---|
PutMethodResponseRequest |
addResponseModelsEntry(String key,
String value) |
PutMethodResponseRequest |
addResponseParametersEntry(String key,
Boolean value) |
PutMethodResponseRequest |
clearResponseModelsEntries()
Removes all the entries added into ResponseModels.
|
PutMethodResponseRequest |
clearResponseParametersEntries()
Removes all the entries added into ResponseParameters.
|
PutMethodResponseRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getHttpMethod()
The HTTP verb of the Method resource.
|
String |
getResourceId()
|
Map<String,String> |
getResponseModels()
Specifies the Model resources used for the response's content type.
|
Map<String,Boolean> |
getResponseParameters()
A key-value map specifying required or optional response parameters that Amazon API Gateway can send back to the
caller.
|
String |
getRestApiId()
The string identifier of the associated RestApi.
|
String |
getStatusCode()
The method response's status code.
|
int |
hashCode() |
void |
setHttpMethod(String httpMethod)
The HTTP verb of the Method resource.
|
void |
setResourceId(String resourceId)
|
void |
setResponseModels(Map<String,String> responseModels)
Specifies the Model resources used for the response's content type.
|
void |
setResponseParameters(Map<String,Boolean> responseParameters)
A key-value map specifying required or optional response parameters that Amazon API Gateway can send back to the
caller.
|
void |
setRestApiId(String restApiId)
The string identifier of the associated RestApi.
|
void |
setStatusCode(String statusCode)
The method response's status code.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
PutMethodResponseRequest |
withHttpMethod(String httpMethod)
The HTTP verb of the Method resource.
|
PutMethodResponseRequest |
withResourceId(String resourceId)
|
PutMethodResponseRequest |
withResponseModels(Map<String,String> responseModels)
Specifies the Model resources used for the response's content type.
|
PutMethodResponseRequest |
withResponseParameters(Map<String,Boolean> responseParameters)
A key-value map specifying required or optional response parameters that Amazon API Gateway can send back to the
caller.
|
PutMethodResponseRequest |
withRestApiId(String restApiId)
The string identifier of the associated RestApi.
|
PutMethodResponseRequest |
withStatusCode(String statusCode)
The method response's status code.
|
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, withSdkRequestTimeoutpublic 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 PutMethodResponseRequest withRestApiId(String restApiId)
The string identifier of the associated RestApi.
restApiId - The string identifier of the associated RestApi.public void setResourceId(String resourceId)
public String getResourceId()
public PutMethodResponseRequest withResourceId(String resourceId)
public void setHttpMethod(String httpMethod)
The HTTP verb of the Method resource.
httpMethod - The HTTP verb of the Method resource.public String getHttpMethod()
The HTTP verb of the Method resource.
public PutMethodResponseRequest withHttpMethod(String httpMethod)
The HTTP verb of the Method resource.
httpMethod - The HTTP verb of the Method resource.public void setStatusCode(String statusCode)
The method response's status code.
statusCode - The method response's status code.public String getStatusCode()
The method response's status code.
public PutMethodResponseRequest withStatusCode(String statusCode)
The method response's status code.
statusCode - The method response's status code.public Map<String,Boolean> getResponseParameters()
A key-value map specifying required or optional response parameters that Amazon API Gateway can send back to the
caller. A key defines a method response header name and the associated value is a Boolean flag indicating whether
the method response parameter is required or not. The method response header names must match the pattern of
method.response.header.{name}, where name is a valid and unique header name. The
response parameter names defined here are available in the integration response to be mapped from an integration
response header expressed in integration.response.header.{name}, a static value enclosed within a
pair of single quotes (e.g., 'application/json'), or a JSON expression from the back-end response
payload in the form of integration.response.body.{JSON-expression}, where
JSON-expression is a valid JSON expression without the $ prefix.)
method.response.header.{name}, where name is a valid
and unique header name. The response parameter names defined here are available in the integration
response to be mapped from an integration response header expressed in
integration.response.header.{name}, a static value enclosed within a pair of single quotes
(e.g., 'application/json'), or a JSON expression from the back-end response payload in the
form of integration.response.body.{JSON-expression}, where JSON-expression is a
valid JSON expression without the $ prefix.)public void setResponseParameters(Map<String,Boolean> responseParameters)
A key-value map specifying required or optional response parameters that Amazon API Gateway can send back to the
caller. A key defines a method response header name and the associated value is a Boolean flag indicating whether
the method response parameter is required or not. The method response header names must match the pattern of
method.response.header.{name}, where name is a valid and unique header name. The
response parameter names defined here are available in the integration response to be mapped from an integration
response header expressed in integration.response.header.{name}, a static value enclosed within a
pair of single quotes (e.g., 'application/json'), or a JSON expression from the back-end response
payload in the form of integration.response.body.{JSON-expression}, where
JSON-expression is a valid JSON expression without the $ prefix.)
responseParameters - A key-value map specifying required or optional response parameters that Amazon API Gateway can send back
to the caller. A key defines a method response header name and the associated value is a Boolean flag
indicating whether the method response parameter is required or not. The method response header names must
match the pattern of method.response.header.{name}, where name is a valid and
unique header name. The response parameter names defined here are available in the integration response to
be mapped from an integration response header expressed in integration.response.header.{name}
, a static value enclosed within a pair of single quotes (e.g., 'application/json'), or a
JSON expression from the back-end response payload in the form of
integration.response.body.{JSON-expression}, where JSON-expression is a valid
JSON expression without the $ prefix.)public PutMethodResponseRequest withResponseParameters(Map<String,Boolean> responseParameters)
A key-value map specifying required or optional response parameters that Amazon API Gateway can send back to the
caller. A key defines a method response header name and the associated value is a Boolean flag indicating whether
the method response parameter is required or not. The method response header names must match the pattern of
method.response.header.{name}, where name is a valid and unique header name. The
response parameter names defined here are available in the integration response to be mapped from an integration
response header expressed in integration.response.header.{name}, a static value enclosed within a
pair of single quotes (e.g., 'application/json'), or a JSON expression from the back-end response
payload in the form of integration.response.body.{JSON-expression}, where
JSON-expression is a valid JSON expression without the $ prefix.)
responseParameters - A key-value map specifying required or optional response parameters that Amazon API Gateway can send back
to the caller. A key defines a method response header name and the associated value is a Boolean flag
indicating whether the method response parameter is required or not. The method response header names must
match the pattern of method.response.header.{name}, where name is a valid and
unique header name. The response parameter names defined here are available in the integration response to
be mapped from an integration response header expressed in integration.response.header.{name}
, a static value enclosed within a pair of single quotes (e.g., 'application/json'), or a
JSON expression from the back-end response payload in the form of
integration.response.body.{JSON-expression}, where JSON-expression is a valid
JSON expression without the $ prefix.)public PutMethodResponseRequest addResponseParametersEntry(String key, Boolean value)
public PutMethodResponseRequest clearResponseParametersEntries()
public PutMethodResponseRequest withResponseModels(Map<String,String> responseModels)
Specifies the Model resources used for the response's content type. Response models are represented as a key/value map, with a content type as the key and a Model name as the value.
responseModels - Specifies the Model resources used for the response's content type. Response models are represented
as a key/value map, with a content type as the key and a Model name as the value.public PutMethodResponseRequest addResponseModelsEntry(String key, String value)
public PutMethodResponseRequest clearResponseModelsEntries()
public String toString()
toString in class ObjectObject.toString()public PutMethodResponseRequest clone()
AmazonWebServiceRequestclone in class AmazonWebServiceRequestObject.clone()Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.