Interface NetworkACLEntry.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<NetworkACLEntry.Builder,
,NetworkACLEntry> SdkBuilder<NetworkACLEntry.Builder,
,NetworkACLEntry> SdkPojo
- Enclosing class:
NetworkACLEntry
-
Method Summary
Modifier and TypeMethodDescriptionThe IPv4 network range to allow or deny, in CIDR notation.default NetworkACLEntry.Builder
icmpTypeCode
(Consumer<IcmpTypeCode.Builder> icmpTypeCode) Defines the ICMP protocol that consists of the ICMP type and code.icmpTypeCode
(IcmpTypeCode icmpTypeCode) Defines the ICMP protocol that consists of the ICMP type and code.default NetworkACLEntry.Builder
portRange
(Consumer<PortRange.Builder> portRange) The range of ports the rule applies to.The range of ports the rule applies to.The protocol number.ruleAction
(String ruleAction) Indicates whether to allow or deny the traffic that matches the rule.ruleAction
(RuleAction ruleAction) Indicates whether to allow or deny the traffic that matches the rule.ruleNumber
(Integer ruleNumber) The rule number for the entry.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
ruleNumber
The rule number for the entry. For example 100. All the network ACL entries are processed in ascending order by rule number.
- Parameters:
ruleNumber
- The rule number for the entry. For example 100. All the network ACL entries are processed in ascending order by rule number.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
protocol
The protocol number. A value of -1 means all the protocols.
- Parameters:
protocol
- The protocol number. A value of -1 means all the protocols.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ruleAction
Indicates whether to allow or deny the traffic that matches the rule.
- Parameters:
ruleAction
- Indicates whether to allow or deny the traffic that matches the rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
ruleAction
Indicates whether to allow or deny the traffic that matches the rule.
- Parameters:
ruleAction
- Indicates whether to allow or deny the traffic that matches the rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
portRange
The range of ports the rule applies to.
- Parameters:
portRange
- The range of ports the rule applies to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
portRange
The range of ports the rule applies to.
This is a convenience method that creates an instance of thePortRange.Builder
avoiding the need to create one manually viaPortRange.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toportRange(PortRange)
.- Parameters:
portRange
- a consumer that will call methods onPortRange.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
icmpTypeCode
Defines the ICMP protocol that consists of the ICMP type and code.
- Parameters:
icmpTypeCode
- Defines the ICMP protocol that consists of the ICMP type and code.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
icmpTypeCode
Defines the ICMP protocol that consists of the ICMP type and code.
This is a convenience method that creates an instance of theIcmpTypeCode.Builder
avoiding the need to create one manually viaIcmpTypeCode.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toicmpTypeCode(IcmpTypeCode)
.- Parameters:
icmpTypeCode
- a consumer that will call methods onIcmpTypeCode.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
cidrBlock
The IPv4 network range to allow or deny, in CIDR notation. For example,
172.16.0.0/24
. We modify the specified CIDR block to its canonical form. For example, if you specify100.68.0.18/18
, we modify it to100.68.0.0/18
.- Parameters:
cidrBlock
- The IPv4 network range to allow or deny, in CIDR notation. For example,172.16.0.0/24
. We modify the specified CIDR block to its canonical form. For example, if you specify100.68.0.18/18
, we modify it to100.68.0.0/18
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-