Class CfnFirewallRuleGroupAssociationProps.Builder
java.lang.Object
software.amazon.awscdk.services.route53resolver.CfnFirewallRuleGroupAssociationProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFirewallRuleGroupAssociationProps>
- Enclosing interface:
CfnFirewallRuleGroupAssociationProps
@Stability(Stable)
public static final class CfnFirewallRuleGroupAssociationProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFirewallRuleGroupAssociationProps>
A builder for
CfnFirewallRuleGroupAssociationProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.firewallRuleGroupId
(String firewallRuleGroupId) Sets the value ofCfnFirewallRuleGroupAssociationProps.getFirewallRuleGroupId()
mutationProtection
(String mutationProtection) Sets the value ofCfnFirewallRuleGroupAssociationProps.getMutationProtection()
Sets the value ofCfnFirewallRuleGroupAssociationProps.getName()
Sets the value ofCfnFirewallRuleGroupAssociationProps.getPriority()
Sets the value ofCfnFirewallRuleGroupAssociationProps.getTags()
Sets the value ofCfnFirewallRuleGroupAssociationProps.getVpcId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
firewallRuleGroupId
@Stability(Stable) public CfnFirewallRuleGroupAssociationProps.Builder firewallRuleGroupId(String firewallRuleGroupId) Sets the value ofCfnFirewallRuleGroupAssociationProps.getFirewallRuleGroupId()
- Parameters:
firewallRuleGroupId
- The unique identifier of the firewall rule group. This parameter is required.- Returns:
this
-
priority
Sets the value ofCfnFirewallRuleGroupAssociationProps.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.You must specify a unique priority for each rule group that you associate with a single VPC. To make it easier to insert rule groups later, leave space between the numbers, for example, use 101, 200, and so on. You can change the priority setting for a rule group association after you create it.
The allowed values for
Priority
are between 100 and 9900 (excluding 100 and 9900).- Returns:
this
-
vpcId
Sets the value ofCfnFirewallRuleGroupAssociationProps.getVpcId()
- Parameters:
vpcId
- The unique identifier of the VPC that is associated with the rule group. This parameter is required.- Returns:
this
-
mutationProtection
@Stability(Stable) public CfnFirewallRuleGroupAssociationProps.Builder mutationProtection(String mutationProtection) Sets the value ofCfnFirewallRuleGroupAssociationProps.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 ofCfnFirewallRuleGroupAssociationProps.getName()
- Parameters:
name
- The name of the association.- Returns:
this
-
tags
@Stability(Stable) public CfnFirewallRuleGroupAssociationProps.Builder tags(List<? extends CfnTag> tags) Sets the value ofCfnFirewallRuleGroupAssociationProps.getTags()
- Parameters:
tags
- A list of the tag keys and values that you want to associate with the rule group.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnFirewallRuleGroupAssociationProps>
- Returns:
- a new instance of
CfnFirewallRuleGroupAssociationProps
- Throws:
NullPointerException
- if any required attribute was not provided
-