Class RegexPatternSetReference.Builder
java.lang.Object
software.amazon.awscdk.services.wafv2.RegexPatternSetReference.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<RegexPatternSetReference>
- Enclosing interface:
RegexPatternSetReference
@Stability(Stable)
public static final class RegexPatternSetReference.Builder
extends Object
implements software.amazon.jsii.Builder<RegexPatternSetReference>
A builder for
RegexPatternSetReference
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.regexPatternSetArn
(String regexPatternSetArn) Sets the value ofRegexPatternSetReference.getRegexPatternSetArn()
regexPatternSetId
(String regexPatternSetId) Sets the value ofRegexPatternSetReference.getRegexPatternSetId()
regexPatternSetName
(String regexPatternSetName) Sets the value ofRegexPatternSetReference.getRegexPatternSetName()
Sets the value ofRegexPatternSetReference.getScope()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
regexPatternSetArn
@Stability(Stable) public RegexPatternSetReference.Builder regexPatternSetArn(String regexPatternSetArn) Sets the value ofRegexPatternSetReference.getRegexPatternSetArn()
- Parameters:
regexPatternSetArn
- The ARN of the RegexPatternSet resource. This parameter is required.- Returns:
this
-
regexPatternSetId
@Stability(Stable) public RegexPatternSetReference.Builder regexPatternSetId(String regexPatternSetId) Sets the value ofRegexPatternSetReference.getRegexPatternSetId()
- Parameters:
regexPatternSetId
- The Id of the RegexPatternSet resource. This parameter is required.- Returns:
this
-
regexPatternSetName
@Stability(Stable) public RegexPatternSetReference.Builder regexPatternSetName(String regexPatternSetName) Sets the value ofRegexPatternSetReference.getRegexPatternSetName()
- Parameters:
regexPatternSetName
- The Name of the RegexPatternSet resource. This parameter is required.- Returns:
this
-
scope
Sets the value ofRegexPatternSetReference.getScope()
- Parameters:
scope
- The Scope of the RegexPatternSet resource. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<RegexPatternSetReference>
- Returns:
- a new instance of
RegexPatternSetReference
- Throws:
NullPointerException
- if any required attribute was not provided
-