Class PutMethodResponseRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.apigateway.model.PutMethodResponseRequest
-
- All Implemented Interfaces:
ReadLimitInfo,Serializable,Cloneable
public class PutMethodResponseRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
Request to add a MethodResponse to an existing Method resource.
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description PutMethodResponseRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PutMethodResponseRequestaddResponseModelsEntry(String key, String value)PutMethodResponseRequestaddResponseParametersEntry(String key, Boolean value)PutMethodResponseRequestclearResponseModelsEntries()Removes all the entries added into ResponseModels.PutMethodResponseRequestclearResponseParametersEntries()Removes all the entries added into ResponseParameters.PutMethodResponseRequestclone()Creates a shallow clone of this request.booleanequals(Object obj)StringgetHttpMethod()The HTTP verb that identifies the Method resource.StringgetResourceId()Map<String,String>getResponseModels()Specifies the Model resources used for the response's content type.Map<String,Boolean>getResponseParameters()Represents response parameters that can be sent back to the caller by Amazon API Gateway.StringgetRestApiId()StringgetStatusCode()The method response's status code.inthashCode()voidsetHttpMethod(String httpMethod)The HTTP verb that identifies the Method resource.voidsetResourceId(String resourceId)voidsetResponseModels(Map<String,String> responseModels)Specifies the Model resources used for the response's content type.voidsetResponseParameters(Map<String,Boolean> responseParameters)Represents response parameters that can be sent back to the caller by Amazon API Gateway.voidsetRestApiId(String restApiId)voidsetStatusCode(String statusCode)The method response's status code.StringtoString()Returns a string representation of this object; useful for testing and debugging.PutMethodResponseRequestwithHttpMethod(String httpMethod)The HTTP verb that identifies the Method resource.PutMethodResponseRequestwithResourceId(String resourceId)PutMethodResponseRequestwithResponseModels(Map<String,String> responseModels)Specifies the Model resources used for the response's content type.PutMethodResponseRequestwithResponseParameters(Map<String,Boolean> responseParameters)Represents response parameters that can be sent back to the caller by Amazon API Gateway.PutMethodResponseRequestwithRestApiId(String restApiId)PutMethodResponseRequestwithStatusCode(String statusCode)The method response's status code.-
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
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
-
-
-
-
Method Detail
-
setRestApiId
public void setRestApiId(String restApiId)
-
withRestApiId
public PutMethodResponseRequest withRestApiId(String restApiId)
-
setResourceId
public void setResourceId(String resourceId)
-
getResourceId
public String getResourceId()
-
withResourceId
public PutMethodResponseRequest withResourceId(String resourceId)
-
setHttpMethod
public void setHttpMethod(String httpMethod)
The HTTP verb that identifies the Method resource.
- Parameters:
httpMethod- The HTTP verb that identifies the Method resource.
-
getHttpMethod
public String getHttpMethod()
The HTTP verb that identifies the Method resource.
- Returns:
- The HTTP verb that identifies the Method resource.
-
withHttpMethod
public PutMethodResponseRequest withHttpMethod(String httpMethod)
The HTTP verb that identifies the Method resource.
- Parameters:
httpMethod- The HTTP verb that identifies the Method resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setStatusCode
public void setStatusCode(String statusCode)
The method response's status code.
- Parameters:
statusCode- The method response's status code.
-
getStatusCode
public String getStatusCode()
The method response's status code.
- Returns:
- The method response's status code.
-
withStatusCode
public PutMethodResponseRequest withStatusCode(String statusCode)
The method response's status code.
- Parameters:
statusCode- The method response's status code.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getResponseParameters
public Map<String,Boolean> getResponseParameters()
Represents response parameters that can be sent back to the caller by Amazon API Gateway. Response parameters are represented as a key/value map, with a destination as the key and a Boolean flag as the value. The Boolean flag is used to specify whether the parameter is required. A destination must match the pattern
method.response.header.{name}, wherenameis a valid, unique header name. Destinations specified here are available to the integration for mapping from integration response parameters.- Returns:
- Represents response parameters that can be sent back to the
caller by Amazon API Gateway. Response parameters are represented
as a key/value map, with a destination as the key and a Boolean
flag as the value. The Boolean flag is used to specify whether
the parameter is required. A destination must match the pattern
method.response.header.{name}, wherenameis a valid, unique header name. Destinations specified here are available to the integration for mapping from integration response parameters.
-
setResponseParameters
public void setResponseParameters(Map<String,Boolean> responseParameters)
Represents response parameters that can be sent back to the caller by Amazon API Gateway. Response parameters are represented as a key/value map, with a destination as the key and a Boolean flag as the value. The Boolean flag is used to specify whether the parameter is required. A destination must match the pattern
method.response.header.{name}, wherenameis a valid, unique header name. Destinations specified here are available to the integration for mapping from integration response parameters.- Parameters:
responseParameters- Represents response parameters that can be sent back to the caller by Amazon API Gateway. Response parameters are represented as a key/value map, with a destination as the key and a Boolean flag as the value. The Boolean flag is used to specify whether the parameter is required. A destination must match the patternmethod.response.header.{name}, wherenameis a valid, unique header name. Destinations specified here are available to the integration for mapping from integration response parameters.
-
withResponseParameters
public PutMethodResponseRequest withResponseParameters(Map<String,Boolean> responseParameters)
Represents response parameters that can be sent back to the caller by Amazon API Gateway. Response parameters are represented as a key/value map, with a destination as the key and a Boolean flag as the value. The Boolean flag is used to specify whether the parameter is required. A destination must match the pattern
method.response.header.{name}, wherenameis a valid, unique header name. Destinations specified here are available to the integration for mapping from integration response parameters.- Parameters:
responseParameters- Represents response parameters that can be sent back to the caller by Amazon API Gateway. Response parameters are represented as a key/value map, with a destination as the key and a Boolean flag as the value. The Boolean flag is used to specify whether the parameter is required. A destination must match the patternmethod.response.header.{name}, wherenameis a valid, unique header name. Destinations specified here are available to the integration for mapping from integration response parameters.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
addResponseParametersEntry
public PutMethodResponseRequest addResponseParametersEntry(String key, Boolean value)
-
clearResponseParametersEntries
public PutMethodResponseRequest clearResponseParametersEntries()
Removes all the entries added into ResponseParameters. <p> Returns a reference to this object so that method calls can be chained together.
-
withResponseModels
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
addResponseModelsEntry
public PutMethodResponseRequest addResponseModelsEntry(String key, String value)
-
clearResponseModelsEntries
public PutMethodResponseRequest clearResponseModelsEntries()
Removes all the entries added into ResponseModels. <p> Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public PutMethodResponseRequest clone()
Description copied from class:AmazonWebServiceRequestCreates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clonein classAmazonWebServiceRequest- See Also:
Object.clone()
-
-