Class CfnNetworkInsightsAnalysis.AnalysisAclRuleProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnNetworkInsightsAnalysis.AnalysisAclRuleProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnNetworkInsightsAnalysis.AnalysisAclRuleProperty>
- Enclosing interface:
CfnNetworkInsightsAnalysis.AnalysisAclRuleProperty
@Stability(Stable)
public static final class CfnNetworkInsightsAnalysis.AnalysisAclRuleProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnNetworkInsightsAnalysis.AnalysisAclRuleProperty>
A builder for
CfnNetworkInsightsAnalysis.AnalysisAclRuleProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnNetworkInsightsAnalysis.AnalysisAclRuleProperty.getCidr()
Sets the value ofCfnNetworkInsightsAnalysis.AnalysisAclRuleProperty.getEgress()
egress
(IResolvable egress) Sets the value ofCfnNetworkInsightsAnalysis.AnalysisAclRuleProperty.getEgress()
portRange
(IResolvable portRange) Sets the value ofCfnNetworkInsightsAnalysis.AnalysisAclRuleProperty.getPortRange()
Sets the value ofCfnNetworkInsightsAnalysis.AnalysisAclRuleProperty.getPortRange()
Sets the value ofCfnNetworkInsightsAnalysis.AnalysisAclRuleProperty.getProtocol()
ruleAction
(String ruleAction) Sets the value ofCfnNetworkInsightsAnalysis.AnalysisAclRuleProperty.getRuleAction()
ruleNumber
(Number ruleNumber) Sets the value ofCfnNetworkInsightsAnalysis.AnalysisAclRuleProperty.getRuleNumber()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
cidr
@Stability(Stable) public CfnNetworkInsightsAnalysis.AnalysisAclRuleProperty.Builder cidr(String cidr) Sets the value ofCfnNetworkInsightsAnalysis.AnalysisAclRuleProperty.getCidr()
- Parameters:
cidr
- The IPv4 address range, in CIDR notation.- Returns:
this
-
egress
@Stability(Stable) public CfnNetworkInsightsAnalysis.AnalysisAclRuleProperty.Builder egress(Boolean egress) Sets the value ofCfnNetworkInsightsAnalysis.AnalysisAclRuleProperty.getEgress()
- Parameters:
egress
- Indicates whether the rule is an outbound rule.- Returns:
this
-
egress
@Stability(Stable) public CfnNetworkInsightsAnalysis.AnalysisAclRuleProperty.Builder egress(IResolvable egress) Sets the value ofCfnNetworkInsightsAnalysis.AnalysisAclRuleProperty.getEgress()
- Parameters:
egress
- Indicates whether the rule is an outbound rule.- Returns:
this
-
portRange
@Stability(Stable) public CfnNetworkInsightsAnalysis.AnalysisAclRuleProperty.Builder portRange(IResolvable portRange) Sets the value ofCfnNetworkInsightsAnalysis.AnalysisAclRuleProperty.getPortRange()
- Parameters:
portRange
- The range of ports.- Returns:
this
-
portRange
@Stability(Stable) public CfnNetworkInsightsAnalysis.AnalysisAclRuleProperty.Builder portRange(CfnNetworkInsightsAnalysis.PortRangeProperty portRange) Sets the value ofCfnNetworkInsightsAnalysis.AnalysisAclRuleProperty.getPortRange()
- Parameters:
portRange
- The range of ports.- Returns:
this
-
protocol
@Stability(Stable) public CfnNetworkInsightsAnalysis.AnalysisAclRuleProperty.Builder protocol(String protocol) Sets the value ofCfnNetworkInsightsAnalysis.AnalysisAclRuleProperty.getProtocol()
- Parameters:
protocol
- The protocol.- Returns:
this
-
ruleAction
@Stability(Stable) public CfnNetworkInsightsAnalysis.AnalysisAclRuleProperty.Builder ruleAction(String ruleAction) Sets the value ofCfnNetworkInsightsAnalysis.AnalysisAclRuleProperty.getRuleAction()
- Parameters:
ruleAction
- Indicates whether to allow or deny traffic that matches the rule.- Returns:
this
-
ruleNumber
@Stability(Stable) public CfnNetworkInsightsAnalysis.AnalysisAclRuleProperty.Builder ruleNumber(Number ruleNumber) Sets the value ofCfnNetworkInsightsAnalysis.AnalysisAclRuleProperty.getRuleNumber()
- Parameters:
ruleNumber
- The rule number.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnNetworkInsightsAnalysis.AnalysisAclRuleProperty>
- Returns:
- a new instance of
CfnNetworkInsightsAnalysis.AnalysisAclRuleProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-