Interface AwsEc2NetworkAclEntry.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<AwsEc2NetworkAclEntry.Builder,
,AwsEc2NetworkAclEntry> SdkBuilder<AwsEc2NetworkAclEntry.Builder,
,AwsEc2NetworkAclEntry> SdkPojo
- Enclosing class:
AwsEc2NetworkAclEntry
-
Method Summary
Modifier and TypeMethodDescriptionThe IPV4 network range for which to deny or allow access.Whether the rule is an egress rule.default AwsEc2NetworkAclEntry.Builder
icmpTypeCode
(Consumer<IcmpTypeCode.Builder> icmpTypeCode) The Internet Control Message Protocol (ICMP) type and code for which to deny or allow access.icmpTypeCode
(IcmpTypeCode icmpTypeCode) The Internet Control Message Protocol (ICMP) type and code for which to deny or allow access.ipv6CidrBlock
(String ipv6CidrBlock) The IPV6 network range for which to deny or allow access.default AwsEc2NetworkAclEntry.Builder
portRange
(Consumer<PortRangeFromTo.Builder> portRange) For TCP or UDP protocols, the range of ports that the rule applies to.portRange
(PortRangeFromTo portRange) For TCP or UDP protocols, the range of ports that the rule applies to.The protocol that the rule applies to.ruleAction
(String ruleAction) Whether the rule is used to allow access or deny access.ruleNumber
(Integer ruleNumber) The rule number.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
-
cidrBlock
The IPV4 network range for which to deny or allow access.
- Parameters:
cidrBlock
- The IPV4 network range for which to deny or allow access.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
egress
Whether the rule is an egress rule. An egress rule is a rule that applies to traffic that leaves the subnet.
- Parameters:
egress
- Whether the rule is an egress rule. An egress rule is a rule that applies to traffic that leaves the subnet.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
icmpTypeCode
The Internet Control Message Protocol (ICMP) type and code for which to deny or allow access.
- Parameters:
icmpTypeCode
- The Internet Control Message Protocol (ICMP) type and code for which to deny or allow access.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
icmpTypeCode
The Internet Control Message Protocol (ICMP) type and code for which to deny or allow access.
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:
-
ipv6CidrBlock
The IPV6 network range for which to deny or allow access.
- Parameters:
ipv6CidrBlock
- The IPV6 network range for which to deny or allow access.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
portRange
For TCP or UDP protocols, the range of ports that the rule applies to.
- Parameters:
portRange
- For TCP or UDP protocols, the range of ports that the rule applies to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
portRange
For TCP or UDP protocols, the range of ports that the rule applies to.
This is a convenience method that creates an instance of thePortRangeFromTo.Builder
avoiding the need to create one manually viaPortRangeFromTo.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toportRange(PortRangeFromTo)
.- Parameters:
portRange
- a consumer that will call methods onPortRangeFromTo.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
protocol
The protocol that the rule applies to. To deny or allow access to all protocols, use the value
-1
.- Parameters:
protocol
- The protocol that the rule applies to. To deny or allow access to all protocols, use the value-1
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ruleAction
Whether the rule is used to allow access or deny access.
- Parameters:
ruleAction
- Whether the rule is used to allow access or deny access.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ruleNumber
The rule number. The rules are processed in order by their number.
- Parameters:
ruleNumber
- The rule number. The rules are processed in order by their number.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-