@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)
Add a single ResponseModels entry
|
PutMethodResponseRequest |
addResponseParametersEntry(String key,
Boolean value)
Add a single ResponseParameters entry
|
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()
The Resource identifier for the Method resource.
|
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 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)
The Resource identifier for the Method resource.
|
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 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.
|
PutMethodResponseRequest |
withHttpMethod(String httpMethod)
The HTTP verb of the Method resource.
|
PutMethodResponseRequest |
withResourceId(String resourceId)
The Resource identifier for the Method resource.
|
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 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, 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 PutMethodResponseRequest withRestApiId(String restApiId)
The string identifier of the associated RestApi.
restApiId
- The string identifier of the associated RestApi.public void setResourceId(String resourceId)
The Resource identifier for the Method resource.
resourceId
- The Resource identifier for the Method resource.public String getResourceId()
The Resource identifier for the Method resource.
public PutMethodResponseRequest withResourceId(String resourceId)
The Resource identifier for the Method resource.
resourceId
- The Resource identifier for the Method resource.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 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 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 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 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 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 Map<String,String> getResponseModels()
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 void setResponseModels(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 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 Object
Object.toString()
public PutMethodResponseRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()