Class CfnGatewayResponseProps.Builder
java.lang.Object
software.amazon.awscdk.services.apigateway.CfnGatewayResponseProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnGatewayResponseProps>
- Enclosing interface:
- CfnGatewayResponseProps
@Stability(Stable)
public static final class CfnGatewayResponseProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnGatewayResponseProps>
A builder for
CfnGatewayResponseProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.responseParameters
(Map<String, String> responseParameters) Sets the value ofCfnGatewayResponseProps.getResponseParameters()
responseParameters
(IResolvable responseParameters) Sets the value ofCfnGatewayResponseProps.getResponseParameters()
responseTemplates
(Map<String, String> responseTemplates) Sets the value ofCfnGatewayResponseProps.getResponseTemplates()
responseTemplates
(IResolvable responseTemplates) Sets the value ofCfnGatewayResponseProps.getResponseTemplates()
responseType
(String responseType) Sets the value ofCfnGatewayResponseProps.getResponseType()
Sets the value ofCfnGatewayResponseProps.getRestApiId()
statusCode
(String statusCode) Sets the value ofCfnGatewayResponseProps.getStatusCode()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
responseType
Sets the value ofCfnGatewayResponseProps.getResponseType()
- Parameters:
responseType
- The response type of the associated GatewayResponse. This parameter is required.- Returns:
this
-
restApiId
Sets the value ofCfnGatewayResponseProps.getRestApiId()
- Parameters:
restApiId
- The string identifier of the associated RestApi. This parameter is required.- Returns:
this
-
responseParameters
@Stability(Stable) public CfnGatewayResponseProps.Builder responseParameters(IResolvable responseParameters) Sets the value ofCfnGatewayResponseProps.getResponseParameters()
- Parameters:
responseParameters
- Response parameters (paths, query strings and headers) of the GatewayResponse as a string-to-string map of key-value pairs.- Returns:
this
-
responseParameters
@Stability(Stable) public CfnGatewayResponseProps.Builder responseParameters(Map<String, String> responseParameters) Sets the value ofCfnGatewayResponseProps.getResponseParameters()
- Parameters:
responseParameters
- Response parameters (paths, query strings and headers) of the GatewayResponse as a string-to-string map of key-value pairs.- Returns:
this
-
responseTemplates
@Stability(Stable) public CfnGatewayResponseProps.Builder responseTemplates(IResolvable responseTemplates) Sets the value ofCfnGatewayResponseProps.getResponseTemplates()
- Parameters:
responseTemplates
- Response templates of the GatewayResponse as a string-to-string map of key-value pairs.- Returns:
this
-
responseTemplates
@Stability(Stable) public CfnGatewayResponseProps.Builder responseTemplates(Map<String, String> responseTemplates) Sets the value ofCfnGatewayResponseProps.getResponseTemplates()
- Parameters:
responseTemplates
- Response templates of the GatewayResponse as a string-to-string map of key-value pairs.- Returns:
this
-
statusCode
Sets the value ofCfnGatewayResponseProps.getStatusCode()
- Parameters:
statusCode
- The HTTP status code for this GatewayResponse.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnGatewayResponseProps>
- Returns:
- a new instance of
CfnGatewayResponseProps
- Throws:
NullPointerException
- if any required attribute was not provided
-