Class OpenApiGatewayWebAclOptions.Builder
- java.lang.Object
-
- software.aws.awsprototypingsdk.openapigateway.OpenApiGatewayWebAclOptions.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<OpenApiGatewayWebAclOptions>
- Enclosing interface:
- OpenApiGatewayWebAclOptions
@Stability(Experimental) public static final class OpenApiGatewayWebAclOptions.Builder extends Object implements software.amazon.jsii.Builder<OpenApiGatewayWebAclOptions>
A builder forOpenApiGatewayWebAclOptions
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OpenApiGatewayWebAclOptionsbuild()Builds the configured instance.OpenApiGatewayWebAclOptions.BuildercidrAllowList(CidrAllowList cidrAllowList)Sets the value ofOpenApiGatewayWebAclOptions.getCidrAllowList()OpenApiGatewayWebAclOptions.Builderdisable(Boolean disable)Sets the value ofOpenApiGatewayWebAclOptions.getDisable()OpenApiGatewayWebAclOptions.BuildermanagedRules(List<? extends ManagedRule> managedRules)Sets the value ofOpenApiGatewayWebAclOptions.getManagedRules()
-
-
-
Method Detail
-
cidrAllowList
@Stability(Experimental) public OpenApiGatewayWebAclOptions.Builder cidrAllowList(CidrAllowList cidrAllowList)
Sets the value ofOpenApiGatewayWebAclOptions.getCidrAllowList()- Parameters:
cidrAllowList- List of cidr ranges to allow.- Returns:
this
-
disable
@Stability(Experimental) public OpenApiGatewayWebAclOptions.Builder disable(Boolean disable)
Sets the value ofOpenApiGatewayWebAclOptions.getDisable()- Parameters:
disable- If set to true, no WebACL will be associated with the API. You can also use this option if you would like to create your own WebACL and associate it yourself.- Returns:
this
-
managedRules
@Stability(Experimental) public OpenApiGatewayWebAclOptions.Builder managedRules(List<? extends ManagedRule> managedRules)
Sets the value ofOpenApiGatewayWebAclOptions.getManagedRules()- Parameters:
managedRules- List of managed rules to apply to the web acl.- Returns:
this
-
build
@Stability(Experimental) public OpenApiGatewayWebAclOptions build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<OpenApiGatewayWebAclOptions>- Returns:
- a new instance of
OpenApiGatewayWebAclOptions - Throws:
NullPointerException- if any required attribute was not provided
-
-