Class FirewallRule.Builder
java.lang.Object
software.amazon.awscdk.services.route53resolver.FirewallRule.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<FirewallRule>
- Enclosing interface:
FirewallRule
@Stability(Experimental)
public static final class FirewallRule.Builder
extends Object
implements software.amazon.jsii.Builder<FirewallRule>
A builder for
FirewallRule
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaction
(FirewallRuleAction action) Sets the value ofFirewallRule.getAction()
build()
Builds the configured instance.firewallDomainList
(IFirewallDomainList firewallDomainList) Sets the value ofFirewallRule.getFirewallDomainList()
Sets the value ofFirewallRule.getPriority()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
action
Sets the value ofFirewallRule.getAction()
- Parameters:
action
- The action for this rule. This parameter is required.- Returns:
this
-
firewallDomainList
@Stability(Experimental) public FirewallRule.Builder firewallDomainList(IFirewallDomainList firewallDomainList) Sets the value ofFirewallRule.getFirewallDomainList()
- Parameters:
firewallDomainList
- The domain list for this rule. This parameter is required.- Returns:
this
-
priority
Sets the value ofFirewallRule.getPriority()
- Parameters:
priority
- The priority of the rule in the rule group. This parameter is required. This value must be unique within the rule group.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<FirewallRule>
- Returns:
- a new instance of
FirewallRule
- Throws:
NullPointerException
- if any required attribute was not provided
-