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 request.
|
boolean |
equals(Object obj) |
String |
getHttpMethod()
The HTTP verb that identifies the Method resource.
|
String |
getResourceId()
|
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.
|
String |
getRestApiId()
|
String |
getStatusCode()
The method response's status code.
|
int |
hashCode() |
void |
setHttpMethod(String httpMethod)
The HTTP verb that identifies 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)
Represents response parameters that can be sent back to the caller by
Amazon API Gateway.
|
void |
setRestApiId(String restApiId)
|
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 that identifies 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)
Represents response parameters that can be sent back to the caller by
Amazon API Gateway.
|
PutMethodResponseRequest |
withRestApiId(String restApiId)
|
PutMethodResponseRequest |
withStatusCode(String statusCode)
The method response's status code.
|
getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setRestApiId(String restApiId)
public PutMethodResponseRequest withRestApiId(String restApiId)
public void setResourceId(String resourceId)
public String getResourceId()
public PutMethodResponseRequest withResourceId(String resourceId)
public void setHttpMethod(String httpMethod)
The HTTP verb that identifies the Method resource.
httpMethod
- The HTTP verb that identifies the Method resource.public String getHttpMethod()
The HTTP verb that identifies the Method resource.
public PutMethodResponseRequest withHttpMethod(String httpMethod)
The HTTP verb that identifies the Method resource.
httpMethod
- The HTTP verb that identifies 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()
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}
, where name
is a
valid, unique header name. Destinations specified here are available to
the integration for mapping from integration response parameters.
method.response.header.{name}
, where
name
is a valid, unique header name. Destinations
specified here are available to the integration for mapping from
integration response parameters.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}
, where name
is a
valid, unique header name. Destinations specified here are available to
the integration for mapping from integration response 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 pattern
method.response.header.{name}
, where
name
is a valid, unique header name. Destinations
specified here are available to the integration for mapping from
integration response parameters.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}
, where name
is a
valid, unique header name. Destinations specified here are available to
the integration for mapping from integration response 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 pattern
method.response.header.{name}
, where
name
is a valid, unique header name. Destinations
specified here are available to the integration for mapping from
integration response parameters.public PutMethodResponseRequest addResponseParametersEntry(String key, Boolean value)
public PutMethodResponseRequest clearResponseParametersEntries()
public PutMethodResponseRequest withResponseModels(Map<String,String> responseModels)
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()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.