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