public static interface GatewayResponse.Builder extends CopyableBuilder<GatewayResponse.Builder,GatewayResponse>
Modifier and Type | Method and Description |
---|---|
GatewayResponse.Builder |
defaultResponse(Boolean defaultResponse)
A Boolean flag to indicate whether this GatewayResponse is the default gateway response (
true ) or not (false ). |
GatewayResponse.Builder |
responseParameters(Map<String,String> responseParameters)
Response parameters (paths, query strings and headers) of the GatewayResponse as a string-to-string
map of key-value pairs.
|
GatewayResponse.Builder |
responseTemplates(Map<String,String> responseTemplates)
Response templates of the GatewayResponse as a string-to-string map of key-value pairs.
|
GatewayResponse.Builder |
responseType(GatewayResponseType responseType)
The response type of the associated GatewayResponse.
|
GatewayResponse.Builder |
responseType(String responseType)
The response type of the associated GatewayResponse.
|
GatewayResponse.Builder |
statusCode(String statusCode)
The HTTP status code for this GatewayResponse.
|
copy
apply, build
GatewayResponse.Builder responseType(String responseType)
The response type of the associated GatewayResponse. Valid values are
responseType
- The response type of the associated GatewayResponse. Valid values are
GatewayResponseType
,
GatewayResponseType
GatewayResponse.Builder responseType(GatewayResponseType responseType)
The response type of the associated GatewayResponse. Valid values are
responseType
- The response type of the associated GatewayResponse. Valid values are
GatewayResponseType
,
GatewayResponseType
GatewayResponse.Builder statusCode(String statusCode)
The HTTP status code for this GatewayResponse.
statusCode
- The HTTP status code for this GatewayResponse.GatewayResponse.Builder responseParameters(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.GatewayResponse.Builder responseTemplates(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.GatewayResponse.Builder defaultResponse(Boolean defaultResponse)
A Boolean flag to indicate whether this GatewayResponse is the default gateway response (
true
) or not (false
). A default gateway response is one generated by Amazon API
Gateway without any customization by an API developer.
defaultResponse
- A Boolean flag to indicate whether this GatewayResponse is the default gateway response (
true
) or not (false
). A default gateway response is one generated by Amazon
API Gateway without any customization by an API developer.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.