public static interface NetworkAclEntry.Builder extends SdkPojo, CopyableBuilder<NetworkAclEntry.Builder,NetworkAclEntry>
Modifier and Type | Method and Description |
---|---|
NetworkAclEntry.Builder |
cidrBlock(String cidrBlock)
The IPv4 network range to allow or deny, in CIDR notation.
|
NetworkAclEntry.Builder |
egress(Boolean egress)
Indicates whether the rule is an egress rule (applied to traffic leaving the subnet).
|
default NetworkAclEntry.Builder |
icmpTypeCode(Consumer<IcmpTypeCode.Builder> icmpTypeCode)
ICMP protocol: The ICMP type and code.
|
NetworkAclEntry.Builder |
icmpTypeCode(IcmpTypeCode icmpTypeCode)
ICMP protocol: The ICMP type and code.
|
NetworkAclEntry.Builder |
ipv6CidrBlock(String ipv6CidrBlock)
The IPv6 network range to allow or deny, in CIDR notation.
|
default NetworkAclEntry.Builder |
portRange(Consumer<PortRange.Builder> portRange)
TCP or UDP protocols: The range of ports the rule applies to.
|
NetworkAclEntry.Builder |
portRange(PortRange portRange)
TCP or UDP protocols: The range of ports the rule applies to.
|
NetworkAclEntry.Builder |
protocol(String protocol)
The protocol number.
|
NetworkAclEntry.Builder |
ruleAction(RuleAction ruleAction)
Indicates whether to allow or deny the traffic that matches the rule.
|
NetworkAclEntry.Builder |
ruleAction(String ruleAction)
Indicates whether to allow or deny the traffic that matches the rule.
|
NetworkAclEntry.Builder |
ruleNumber(Integer ruleNumber)
The rule number for the entry.
|
copy
applyMutation, build
NetworkAclEntry.Builder cidrBlock(String cidrBlock)
The IPv4 network range to allow or deny, in CIDR notation.
cidrBlock
- The IPv4 network range to allow or deny, in CIDR notation.NetworkAclEntry.Builder egress(Boolean egress)
Indicates whether the rule is an egress rule (applied to traffic leaving the subnet).
egress
- Indicates whether the rule is an egress rule (applied to traffic leaving the subnet).NetworkAclEntry.Builder icmpTypeCode(IcmpTypeCode icmpTypeCode)
ICMP protocol: The ICMP type and code.
icmpTypeCode
- ICMP protocol: The ICMP type and code.default NetworkAclEntry.Builder icmpTypeCode(Consumer<IcmpTypeCode.Builder> icmpTypeCode)
ICMP protocol: The ICMP type and code.
This is a convenience that creates an instance of theIcmpTypeCode.Builder
avoiding the need to
create one manually via IcmpTypeCode.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to icmpTypeCode(IcmpTypeCode)
.icmpTypeCode
- a consumer that will call methods on IcmpTypeCode.Builder
icmpTypeCode(IcmpTypeCode)
NetworkAclEntry.Builder ipv6CidrBlock(String ipv6CidrBlock)
The IPv6 network range to allow or deny, in CIDR notation.
ipv6CidrBlock
- The IPv6 network range to allow or deny, in CIDR notation.NetworkAclEntry.Builder portRange(PortRange portRange)
TCP or UDP protocols: The range of ports the rule applies to.
portRange
- TCP or UDP protocols: The range of ports the rule applies to.default NetworkAclEntry.Builder portRange(Consumer<PortRange.Builder> portRange)
TCP or UDP protocols: The range of ports the rule applies to.
This is a convenience that creates an instance of thePortRange.Builder
avoiding the need to create
one manually via PortRange.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its result
is passed to portRange(PortRange)
.portRange
- a consumer that will call methods on PortRange.Builder
portRange(PortRange)
NetworkAclEntry.Builder protocol(String protocol)
The protocol number. A value of "-1" means all protocols.
protocol
- The protocol number. A value of "-1" means all protocols.NetworkAclEntry.Builder ruleAction(String ruleAction)
Indicates whether to allow or deny the traffic that matches the rule.
ruleAction
- Indicates whether to allow or deny the traffic that matches the rule.RuleAction
,
RuleAction
NetworkAclEntry.Builder ruleAction(RuleAction ruleAction)
Indicates whether to allow or deny the traffic that matches the rule.
ruleAction
- Indicates whether to allow or deny the traffic that matches the rule.RuleAction
,
RuleAction
NetworkAclEntry.Builder ruleNumber(Integer ruleNumber)
The rule number for the entry. ACL entries are processed in ascending order by rule number.
ruleNumber
- The rule number for the entry. ACL entries are processed in ascending order by rule number.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.