Class CfnRegexPatternSetMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.wafv2.CfnRegexPatternSetMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRegexPatternSetMixinProps>
- Enclosing interface:
CfnRegexPatternSetMixinProps
@Stability(Stable)
public static final class CfnRegexPatternSetMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRegexPatternSetMixinProps>
A builder for
CfnRegexPatternSetMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.description(String description) Sets the value ofCfnRegexPatternSetMixinProps.getDescription()Sets the value ofCfnRegexPatternSetMixinProps.getName()regularExpressionList(List<String> regularExpressionList) Sets the value ofCfnRegexPatternSetMixinProps.getRegularExpressionList()Sets the value ofCfnRegexPatternSetMixinProps.getScope()Sets the value ofCfnRegexPatternSetMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
description
Sets the value ofCfnRegexPatternSetMixinProps.getDescription()- Parameters:
description- A description of the set that helps with identification.- Returns:
this
-
name
Sets the value ofCfnRegexPatternSetMixinProps.getName()- Parameters:
name- The name of the set. You cannot change the name after you create the set.- Returns:
this
-
regularExpressionList
@Stability(Stable) public CfnRegexPatternSetMixinProps.Builder regularExpressionList(List<String> regularExpressionList) Sets the value ofCfnRegexPatternSetMixinProps.getRegularExpressionList()- Parameters:
regularExpressionList- The regular expression patterns in the set.- Returns:
this
-
scope
Sets the value ofCfnRegexPatternSetMixinProps.getScope()- Parameters:
scope- Specifies whether this is for an Amazon CloudFront distribution or for a regional application. For an AWS Amplify application, useCLOUDFRONT. A regional application can be an Application Load Balancer (ALB), an REST API, an AWS AppSync GraphQL API, an Amazon Cognito user pool, an AWS App Runner service, or an AWS Verified Access instance. Valid Values areCLOUDFRONTandREGIONAL.For
CLOUDFRONT, you must create your WAFv2 resources in the US East (N. Virginia) Region,us-east-1.- Returns:
this
-
tags
Sets the value ofCfnRegexPatternSetMixinProps.getTags()- Parameters:
tags- Key:value pairs associated with an AWS resource. The key:value pair can be anything you define. Typically, the tag key represents a category (such as "environment") and the tag value represents a specific value within that category (such as "test," "development," or "production"). You can add up to 50 tags to each AWS resource.To modify tags on existing resources, use the AWS WAF APIs or command line interface. With AWS CloudFormation , you can only add tags to AWS WAF resources during resource creation.
- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnRegexPatternSetMixinProps>- Returns:
- a new instance of
CfnRegexPatternSetMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-