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.BuilderresponseParameters(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.restApiId(IRestApiRef restApiId) The string identifier of the associated RestApi.statusCode(String statusCode) The HTTP status code for this GatewayResponse.
-
Method Details
-
create
@Stability(Stable) public static CfnGatewayResponse.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.- 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- See Also:
-
restApiId
The string identifier of the associated RestApi.- Parameters:
restApiId- The string identifier of the associated RestApi. This parameter is required.- Returns:
this- See Also:
-
restApiId
The string identifier of the associated RestApi.- Parameters:
restApiId- The string identifier of the associated RestApi. This parameter is required.- Returns:
this- See Also:
-
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- See Also:
-
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- See Also:
-
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- See Also:
-
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- See Also:
-
statusCode
The HTTP status code for this GatewayResponse.- Parameters:
statusCode- The HTTP status code for this GatewayResponse. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnGatewayResponse>- Returns:
- a newly built instance of
CfnGatewayResponse.
-