Class CfnPolicyPropsMixin.NetworkAclEntryProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.fms.CfnPolicyPropsMixin.NetworkAclEntryProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPolicyPropsMixin.NetworkAclEntryProperty>
- Enclosing interface:
CfnPolicyPropsMixin.NetworkAclEntryProperty
@Stability(Stable)
public static final class CfnPolicyPropsMixin.NetworkAclEntryProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPolicyPropsMixin.NetworkAclEntryProperty>
A builder for
CfnPolicyPropsMixin.NetworkAclEntryProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnPolicyPropsMixin.NetworkAclEntryProperty.getCidrBlock()Sets the value ofCfnPolicyPropsMixin.NetworkAclEntryProperty.getEgress()egress(IResolvable egress) Sets the value ofCfnPolicyPropsMixin.NetworkAclEntryProperty.getEgress()icmpTypeCode(CfnPolicyPropsMixin.IcmpTypeCodeProperty icmpTypeCode) Sets the value ofCfnPolicyPropsMixin.NetworkAclEntryProperty.getIcmpTypeCode()icmpTypeCode(IResolvable icmpTypeCode) Sets the value ofCfnPolicyPropsMixin.NetworkAclEntryProperty.getIcmpTypeCode()ipv6CidrBlock(String ipv6CidrBlock) Sets the value ofCfnPolicyPropsMixin.NetworkAclEntryProperty.getIpv6CidrBlock()portRange(CfnPolicyPropsMixin.PortRangeProperty portRange) Sets the value ofCfnPolicyPropsMixin.NetworkAclEntryProperty.getPortRange()portRange(IResolvable portRange) Sets the value ofCfnPolicyPropsMixin.NetworkAclEntryProperty.getPortRange()Sets the value ofCfnPolicyPropsMixin.NetworkAclEntryProperty.getProtocol()ruleAction(String ruleAction) Sets the value ofCfnPolicyPropsMixin.NetworkAclEntryProperty.getRuleAction()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
cidrBlock
@Stability(Stable) public CfnPolicyPropsMixin.NetworkAclEntryProperty.Builder cidrBlock(String cidrBlock) Sets the value ofCfnPolicyPropsMixin.NetworkAclEntryProperty.getCidrBlock()- Parameters:
cidrBlock- The IPv4 network range to allow or deny, in CIDR notation.- Returns:
this
-
egress
@Stability(Stable) public CfnPolicyPropsMixin.NetworkAclEntryProperty.Builder egress(Boolean egress) Sets the value ofCfnPolicyPropsMixin.NetworkAclEntryProperty.getEgress()- Parameters:
egress- Indicates whether the rule is an egress, or outbound, rule (applied to traffic leaving the subnet). If it's not an egress rule, then it's an ingress, or inbound, rule.- Returns:
this
-
egress
@Stability(Stable) public CfnPolicyPropsMixin.NetworkAclEntryProperty.Builder egress(IResolvable egress) Sets the value ofCfnPolicyPropsMixin.NetworkAclEntryProperty.getEgress()- Parameters:
egress- Indicates whether the rule is an egress, or outbound, rule (applied to traffic leaving the subnet). If it's not an egress rule, then it's an ingress, or inbound, rule.- Returns:
this
-
icmpTypeCode
@Stability(Stable) public CfnPolicyPropsMixin.NetworkAclEntryProperty.Builder icmpTypeCode(IResolvable icmpTypeCode) Sets the value ofCfnPolicyPropsMixin.NetworkAclEntryProperty.getIcmpTypeCode()- Parameters:
icmpTypeCode- ICMP protocol: The ICMP type and code.- Returns:
this
-
icmpTypeCode
@Stability(Stable) public CfnPolicyPropsMixin.NetworkAclEntryProperty.Builder icmpTypeCode(CfnPolicyPropsMixin.IcmpTypeCodeProperty icmpTypeCode) Sets the value ofCfnPolicyPropsMixin.NetworkAclEntryProperty.getIcmpTypeCode()- Parameters:
icmpTypeCode- ICMP protocol: The ICMP type and code.- Returns:
this
-
ipv6CidrBlock
@Stability(Stable) public CfnPolicyPropsMixin.NetworkAclEntryProperty.Builder ipv6CidrBlock(String ipv6CidrBlock) Sets the value ofCfnPolicyPropsMixin.NetworkAclEntryProperty.getIpv6CidrBlock()- Parameters:
ipv6CidrBlock- The IPv6 network range to allow or deny, in CIDR notation.- Returns:
this
-
portRange
@Stability(Stable) public CfnPolicyPropsMixin.NetworkAclEntryProperty.Builder portRange(IResolvable portRange) Sets the value ofCfnPolicyPropsMixin.NetworkAclEntryProperty.getPortRange()- Parameters:
portRange- TCP or UDP protocols: The range of ports the rule applies to.- Returns:
this
-
portRange
@Stability(Stable) public CfnPolicyPropsMixin.NetworkAclEntryProperty.Builder portRange(CfnPolicyPropsMixin.PortRangeProperty portRange) Sets the value ofCfnPolicyPropsMixin.NetworkAclEntryProperty.getPortRange()- Parameters:
portRange- TCP or UDP protocols: The range of ports the rule applies to.- Returns:
this
-
protocol
@Stability(Stable) public CfnPolicyPropsMixin.NetworkAclEntryProperty.Builder protocol(String protocol) Sets the value ofCfnPolicyPropsMixin.NetworkAclEntryProperty.getProtocol()- Parameters:
protocol- The protocol number. A value of "-1" means all protocols.- Returns:
this
-
ruleAction
@Stability(Stable) public CfnPolicyPropsMixin.NetworkAclEntryProperty.Builder ruleAction(String ruleAction) Sets the value ofCfnPolicyPropsMixin.NetworkAclEntryProperty.getRuleAction()- Parameters:
ruleAction- Indicates whether to allow or deny the traffic that matches the rule.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnPolicyPropsMixin.NetworkAclEntryProperty>- Returns:
- a new instance of
CfnPolicyPropsMixin.NetworkAclEntryProperty - Throws:
NullPointerException- if any required attribute was not provided
-