@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() |
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 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. Valid values are
responseType - The response type of the associated GatewayResponse. Valid values are
GatewayResponseTypepublic String getResponseType()
The response type of the associated GatewayResponse. Valid values are
GatewayResponseTypepublic PutGatewayResponseRequest withResponseType(String responseType)
The response type of the associated GatewayResponse. Valid values are
responseType - The response type of the associated GatewayResponse. Valid values are
GatewayResponseTypepublic void setResponseType(GatewayResponseType responseType)
The response type of the associated GatewayResponse. Valid values are
responseType - The response type of the associated GatewayResponse. Valid values are
GatewayResponseTypepublic PutGatewayResponseRequest withResponseType(GatewayResponseType responseType)
The response type of the associated GatewayResponse. Valid values are
responseType - The response type of the associated GatewayResponse. Valid values are
GatewayResponseTypepublic void setStatusCode(String statusCode)
statusCode - The HTTP status code of the GatewayResponse.public String getStatusCode()
public PutGatewayResponseRequest withStatusCode(String statusCode)
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 ObjectObject.toString()public PutGatewayResponseRequest clone()
AmazonWebServiceRequestclone in class AmazonWebServiceRequestObject.clone()Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.