Class WafwebaclToApiGatewayProps.Builder
java.lang.Object
software.amazon.awsconstructs.services.wafwebaclapigateway.WafwebaclToApiGatewayProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<WafwebaclToApiGatewayProps>
- Enclosing interface:
WafwebaclToApiGatewayProps
public static final class WafwebaclToApiGatewayProps.Builder
extends Object
implements software.amazon.jsii.Builder<WafwebaclToApiGatewayProps>
A builder for
WafwebaclToApiGatewayProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.existingApiGatewayInterface(software.amazon.awscdk.services.apigateway.IRestApi existingApiGatewayInterface) Sets the value ofWafwebaclToApiGatewayProps.getExistingApiGatewayInterface()existingWebaclObj(software.amazon.awscdk.services.wafv2.CfnWebACL existingWebaclObj) Sets the value ofWafwebaclToApiGatewayProps.getExistingWebaclObj()webaclProps(Object webaclProps) Sets the value ofWafwebaclToApiGatewayProps.getWebaclProps()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
existingApiGatewayInterface
public WafwebaclToApiGatewayProps.Builder existingApiGatewayInterface(software.amazon.awscdk.services.apigateway.IRestApi existingApiGatewayInterface) Sets the value ofWafwebaclToApiGatewayProps.getExistingApiGatewayInterface()- Parameters:
existingApiGatewayInterface- The existing API Gateway instance that will be protected with the WAF web ACL. This parameter is required.- Returns:
this
-
existingWebaclObj
public WafwebaclToApiGatewayProps.Builder existingWebaclObj(software.amazon.awscdk.services.wafv2.CfnWebACL existingWebaclObj) Sets the value ofWafwebaclToApiGatewayProps.getExistingWebaclObj()- Parameters:
existingWebaclObj- Existing instance of a WAF web ACL, an error will occur if this and props is set.- Returns:
this
-
webaclProps
Sets the value ofWafwebaclToApiGatewayProps.getWebaclProps()- Parameters:
webaclProps- Optional user-provided props to override the default props for the AWS WAF web ACL.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<WafwebaclToApiGatewayProps>- Returns:
- a new instance of
WafwebaclToApiGatewayProps - Throws:
NullPointerException- if any required attribute was not provided
-