@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PutGatewayResponseRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
Creates a customization of a GatewayResponse of a specified response type and status code on the given RestApi.
NOOP | Constructor and Description |
|---|
PutGatewayResponseRequest () |
| Modifier and Type | Method and Description |
|---|---|
PutGatewayResponseRequest |
addResponseParametersEntry (String key,
String value)
Add a single ResponseParameters entry
|
PutGatewayResponseRequest |
addResponseTemplatesEntry (String key,
String value)
Add a single ResponseTemplates entry
|
PutGatewayResponseRequest |
clearResponseParametersEntries ()
Removes all the entries added into ResponseParameters.
|
PutGatewayResponseRequest |
clearResponseTemplatesEntries ()
Removes all the entries added into ResponseTemplates.
|
PutGatewayResponseRequest |
clone ()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals (Object obj) |
Map<String,String> |
getResponseParameters ()
Response parameters (paths, query strings and headers) of the GatewayResponse as a string-to-string map of
key-value pairs.
|
Map<String,String> |
getResponseTemplates ()
Response templates of the GatewayResponse as a string-to-string map of key-value pairs.
|
String |
getResponseType ()
The response type of the associated GatewayResponse
|
String |
getRestApiId ()
The string identifier of the associated RestApi.
|
String |
getStatusCode ()
The HTTP status code of the GatewayResponse.
|
int |
hashCode () |
void |
setResponseParameters (Map<String,String> responseParameters)
Response parameters (paths, query strings and headers) of the GatewayResponse as a string-to-string map of
key-value pairs.
|
void |
setResponseTemplates (Map<String,String> responseTemplates)
Response templates of the GatewayResponse as a string-to-string map of key-value pairs.
|
void |
setResponseType (GatewayResponseType responseType)
The response type of the associated GatewayResponse
|
void |
setResponseType (String responseType)
The response type of the associated GatewayResponse
|
void |
setRestApiId (String restApiId)
The string identifier of the associated RestApi.
|
void |
setStatusCode (String statusCode)
The HTTP status code of the GatewayResponse.
|
String |
toString ()
Returns a string representation of this object.
|
PutGatewayResponseRequest |
withResponseParameters (Map<String,String> responseParameters)
Response parameters (paths, query strings and headers) of the GatewayResponse as a string-to-string map of
key-value pairs.
|
PutGatewayResponseRequest |
withResponseTemplates (Map<String,String> responseTemplates)
Response templates of the GatewayResponse as a string-to-string map of key-value pairs.
|
PutGatewayResponseRequest |
withResponseType (GatewayResponseType responseType)
The response type of the associated GatewayResponse
|
PutGatewayResponseRequest |
withResponseType (String responseType)
The response type of the associated GatewayResponse
|
PutGatewayResponseRequest |
withRestApiId (String restApiId)
The string identifier of the associated RestApi.
|
PutGatewayResponseRequest |
withStatusCode (String statusCode)
The HTTP status code of the GatewayResponse.
|
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 PutGatewayResponseRequest()
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 PutGatewayResponseRequest withRestApiId(String restApiId)
The string identifier of the associated RestApi.
restApiId - The string identifier of the associated RestApi.public void setResponseType(String responseType)
The response type of the associated GatewayResponse
responseType - The response type of the associated GatewayResponseGatewayResponseType public String getResponseType()
The response type of the associated GatewayResponse
GatewayResponseType public PutGatewayResponseRequest withResponseType(String responseType)
The response type of the associated GatewayResponse
responseType - The response type of the associated GatewayResponseGatewayResponseType public void setResponseType(GatewayResponseType responseType)
The response type of the associated GatewayResponse
responseType - The response type of the associated GatewayResponseGatewayResponseType public PutGatewayResponseRequest withResponseType(GatewayResponseType responseType)
The response type of the associated GatewayResponse
responseType - The response type of the associated GatewayResponseGatewayResponseType public void setStatusCode(String statusCode)
The HTTP status code of the GatewayResponse.
statusCode - The HTTP status code of the GatewayResponse.public String getStatusCode()
The HTTP status code of the GatewayResponse.
public PutGatewayResponseRequest withStatusCode(String statusCode)
The HTTP status code of the GatewayResponse.
statusCode - The HTTP status code of the GatewayResponse.public Map<String,String> getResponseParameters()
Response parameters (paths, query strings and headers) of the GatewayResponse as a string-to-string map of key-value pairs.
public void setResponseParameters(Map<String,String> responseParameters)
Response parameters (paths, query strings and headers) of the GatewayResponse as a string-to-string map of key-value pairs.
responseParameters - Response parameters (paths, query strings and headers) of the GatewayResponse as a string-to-string map of
key-value pairs.public PutGatewayResponseRequest withResponseParameters(Map<String,String> responseParameters)
Response parameters (paths, query strings and headers) of the GatewayResponse as a string-to-string map of key-value pairs.
responseParameters - Response parameters (paths, query strings and headers) of the GatewayResponse as a string-to-string map of
key-value pairs.public PutGatewayResponseRequest addResponseParametersEntry(String key, String value)
public PutGatewayResponseRequest clearResponseParametersEntries()
public Map<String,String> getResponseTemplates()
Response templates of the GatewayResponse as a string-to-string map of key-value pairs.
public void setResponseTemplates(Map<String,String> responseTemplates)
Response templates of the GatewayResponse as a string-to-string map of key-value pairs.
responseTemplates - Response templates of the GatewayResponse as a string-to-string map of key-value pairs.public PutGatewayResponseRequest withResponseTemplates(Map<String,String> responseTemplates)
Response templates of the GatewayResponse as a string-to-string map of key-value pairs.
responseTemplates - Response templates of the GatewayResponse as a string-to-string map of key-value pairs.public PutGatewayResponseRequest addResponseTemplatesEntry(String key, String value)
public PutGatewayResponseRequest clearResponseTemplatesEntries()
public String toString()
toString in class Object Object.toString() public PutGatewayResponseRequest clone()
AmazonWebServiceRequest clone in class AmazonWebServiceRequest Object.clone()