@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, withSdkRequestTimeout
public void setRestApiId(String restApiId)
[Required] The string identifier of the associated RestApi.
restApiId
- [Required] The string identifier of the associated RestApi.public String getRestApiId()
[Required] The string identifier of the associated RestApi.
public PutGatewayResponseRequest withRestApiId(String restApiId)
[Required] The string identifier of the associated RestApi.
restApiId
- [Required] The string identifier of the associated RestApi.public void setResponseType(String responseType)
[Required]
The response type of the associated GatewayResponse. Valid values are
responseType
- [Required]
The response type of the associated GatewayResponse. Valid values are
GatewayResponseType
public String getResponseType()
[Required]
The response type of the associated GatewayResponse. Valid values are
The response type of the associated GatewayResponse. Valid values are
GatewayResponseType
public PutGatewayResponseRequest withResponseType(String responseType)
[Required]
The response type of the associated GatewayResponse. Valid values are
responseType
- [Required]
The response type of the associated GatewayResponse. Valid values are
GatewayResponseType
public void setResponseType(GatewayResponseType responseType)
[Required]
The response type of the associated GatewayResponse. Valid values are
responseType
- [Required]
The response type of the associated GatewayResponse. Valid values are
GatewayResponseType
public PutGatewayResponseRequest withResponseType(GatewayResponseType responseType)
[Required]
The response type of the associated GatewayResponse. Valid values are
responseType
- [Required]
The response type of the associated GatewayResponse. Valid values are
GatewayResponseType
public 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 Object
Object.toString()
public PutGatewayResponseRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.