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