Class FirewallRuleGroupAssociationProps.Builder
java.lang.Object
software.amazon.awscdk.services.route53resolver.alpha.FirewallRuleGroupAssociationProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<FirewallRuleGroupAssociationProps>
- Enclosing interface:
FirewallRuleGroupAssociationProps
@Stability(Experimental)
public static final class FirewallRuleGroupAssociationProps.Builder
extends Object
implements software.amazon.jsii.Builder<FirewallRuleGroupAssociationProps>
A builder for
FirewallRuleGroupAssociationProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.firewallRuleGroup
(IFirewallRuleGroup firewallRuleGroup) Sets the value ofFirewallRuleGroupAssociationProps.getFirewallRuleGroup()
mutationProtection
(Boolean mutationProtection) Sets the value ofFirewallRuleGroupAssociationOptions.getMutationProtection()
Sets the value ofFirewallRuleGroupAssociationOptions.getName()
Sets the value ofFirewallRuleGroupAssociationOptions.getPriority()
Sets the value ofFirewallRuleGroupAssociationOptions.getVpc()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
firewallRuleGroup
@Stability(Experimental) public FirewallRuleGroupAssociationProps.Builder firewallRuleGroup(IFirewallRuleGroup firewallRuleGroup) Sets the value ofFirewallRuleGroupAssociationProps.getFirewallRuleGroup()
- Parameters:
firewallRuleGroup
- The firewall rule group which must be associated. This parameter is required.- Returns:
this
-
priority
Sets the value ofFirewallRuleGroupAssociationOptions.getPriority()
- Parameters:
priority
- The setting that determines the processing order of the rule group among the rule groups that are associated with a single VPC. This parameter is required. DNS Firewall filters VPC traffic starting from rule group with the lowest numeric priority setting.This value must be greater than 100 and less than 9,000
- Returns:
this
-
vpc
Sets the value ofFirewallRuleGroupAssociationOptions.getVpc()
- Parameters:
vpc
- The VPC that to associate with the rule group. This parameter is required.- Returns:
this
-
mutationProtection
@Stability(Experimental) public FirewallRuleGroupAssociationProps.Builder mutationProtection(Boolean mutationProtection) Sets the value ofFirewallRuleGroupAssociationOptions.getMutationProtection()
- Parameters:
mutationProtection
- If enabled, this setting disallows modification or removal of the association, to help prevent against accidentally altering DNS firewall protections.- Returns:
this
-
name
Sets the value ofFirewallRuleGroupAssociationOptions.getName()
- Parameters:
name
- The name of the association.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<FirewallRuleGroupAssociationProps>
- Returns:
- a new instance of
FirewallRuleGroupAssociationProps
- Throws:
NullPointerException
- if any required attribute was not provided
-