Class CfnGatewayResponse.Builder
java.lang.Object
software.amazon.awscdk.services.apigateway.CfnGatewayResponse.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnGatewayResponse>
- Enclosing class:
CfnGatewayResponse
@Stability(Stable)
public static final class CfnGatewayResponse.Builder
extends Object
implements software.amazon.jsii.Builder<CfnGatewayResponse>
A fluent builder for
CfnGatewayResponse
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
static CfnGatewayResponse.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
(IResolvable responseParameters) Response parameters (paths, query strings and headers) of the GatewayResponse as a string-to-string map of key-value pairs.responseTemplates
(Map<String, String> responseTemplates) Response templates of the GatewayResponse as a string-to-string map of key-value pairs.responseTemplates
(IResolvable responseTemplates) Response templates of the GatewayResponse as a string-to-string map of key-value pairs.responseType
(String responseType) The response type of the associated GatewayResponse.The string identifier of the associated RestApi.statusCode
(String statusCode) The HTTP status code for this GatewayResponse.
-
Method Details
-
create
- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
- Returns:
- a new instance of
CfnGatewayResponse.Builder
.
-
responseType
The response type of the associated GatewayResponse.- Parameters:
responseType
- The response type of the associated GatewayResponse. This parameter is required.- Returns:
this
-
restApiId
The string identifier of the associated RestApi.- Parameters:
restApiId
- The string identifier of the associated RestApi. This parameter is required.- Returns:
this
-
responseParameters
@Stability(Stable) public CfnGatewayResponse.Builder responseParameters(IResolvable responseParameters) Response parameters (paths, query strings and headers) of the GatewayResponse as a string-to-string map of key-value pairs.- Parameters:
responseParameters
- Response parameters (paths, query strings and headers) of the GatewayResponse as a string-to-string map of key-value pairs. This parameter is required.- Returns:
this
-
responseParameters
@Stability(Stable) public CfnGatewayResponse.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.- Parameters:
responseParameters
- Response parameters (paths, query strings and headers) of the GatewayResponse as a string-to-string map of key-value pairs. This parameter is required.- Returns:
this
-
responseTemplates
@Stability(Stable) public CfnGatewayResponse.Builder responseTemplates(IResolvable responseTemplates) Response templates of the GatewayResponse as a string-to-string map of key-value pairs.- Parameters:
responseTemplates
- Response templates of the GatewayResponse as a string-to-string map of key-value pairs. This parameter is required.- Returns:
this
-
responseTemplates
@Stability(Stable) public CfnGatewayResponse.Builder responseTemplates(Map<String, String> responseTemplates) Response templates of the GatewayResponse as a string-to-string map of key-value pairs.- Parameters:
responseTemplates
- Response templates of the GatewayResponse as a string-to-string map of key-value pairs. This parameter is required.- Returns:
this
-
statusCode
The HTTP status code for this GatewayResponse.- Parameters:
statusCode
- The HTTP status code for this GatewayResponse. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnGatewayResponse>
- Returns:
- a newly built instance of
CfnGatewayResponse
.
-