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