Interface SecondaryNetworkAclEntry.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<SecondaryNetworkAclEntry.Builder,,SecondaryNetworkAclEntry> SdkBuilder<SecondaryNetworkAclEntry.Builder,,SecondaryNetworkAclEntry> SdkPojo
- Enclosing class:
SecondaryNetworkAclEntry
-
Method Summary
Modifier and TypeMethodDescriptionThe action to take on traffic that matches the entry.action(SecondaryNetworkAclEntryAction action) The action to take on traffic that matches the entry.The direction of traffic that the entry applies to.direction(SecondaryNetworkAclEntryDirection direction) The direction of traffic that the entry applies to.default SecondaryNetworkAclEntry.BuildericmpTypeCode(Consumer<SecondaryNetworkAclEntryIcmpTypeCode.Builder> icmpTypeCode) The ICMP type and code that the entry applies to.icmpTypeCode(SecondaryNetworkAclEntryIcmpTypeCode icmpTypeCode) The ICMP type and code that the entry applies to.ipv4CidrBlock(String ipv4CidrBlock) The IPv4 CIDR block that the entry matches.ipv6CidrBlock(String ipv6CidrBlock) The IPv6 CIDR block that the entry matches.The ID of the Amazon Web Services account that owns the secondary network ACL.default SecondaryNetworkAclEntry.BuilderThe range of ports that the entry applies to.portRange(SecondaryNetworkAclEntryPortRange portRange) The range of ports that the entry applies to.The protocol number that the entry applies to.ruleNumber(Integer ruleNumber) The rule number of the entry.secondaryNetworkAclId(String secondaryNetworkAclId) The ID of the secondary network ACL.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
secondaryNetworkAclId
The ID of the secondary network ACL.
- Parameters:
secondaryNetworkAclId- The ID of the secondary network ACL.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ruleNumber
The rule number of the entry. Entries are evaluated in order, starting with the lowest rule number.
- Parameters:
ruleNumber- The rule number of the entry. Entries are evaluated in order, starting with the lowest rule number.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
protocol
The protocol number that the entry applies to.
- Parameters:
protocol- The protocol number that the entry applies to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
portRange
The range of ports that the entry applies to. For a protocol other than TCP (protocol 6) or UDP (protocol 17),
fromandtoare both-1.- Parameters:
portRange- The range of ports that the entry applies to. For a protocol other than TCP (protocol 6) or UDP (protocol 17),fromandtoare both-1.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
portRange
default SecondaryNetworkAclEntry.Builder portRange(Consumer<SecondaryNetworkAclEntryPortRange.Builder> portRange) The range of ports that the entry applies to. For a protocol other than TCP (protocol 6) or UDP (protocol 17),
This is a convenience method that creates an instance of thefromandtoare both-1.SecondaryNetworkAclEntryPortRange.Builderavoiding the need to create one manually viaSecondaryNetworkAclEntryPortRange.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toportRange(SecondaryNetworkAclEntryPortRange).- Parameters:
portRange- a consumer that will call methods onSecondaryNetworkAclEntryPortRange.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
icmpTypeCode
The ICMP type and code that the entry applies to. Returned only for entries that specify the ICMP (protocol 1) or ICMPv6 (protocol 58) protocol.
- Parameters:
icmpTypeCode- The ICMP type and code that the entry applies to. Returned only for entries that specify the ICMP (protocol 1) or ICMPv6 (protocol 58) protocol.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
icmpTypeCode
default SecondaryNetworkAclEntry.Builder icmpTypeCode(Consumer<SecondaryNetworkAclEntryIcmpTypeCode.Builder> icmpTypeCode) The ICMP type and code that the entry applies to. Returned only for entries that specify the ICMP (protocol 1) or ICMPv6 (protocol 58) protocol.
This is a convenience method that creates an instance of theSecondaryNetworkAclEntryIcmpTypeCode.Builderavoiding the need to create one manually viaSecondaryNetworkAclEntryIcmpTypeCode.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toicmpTypeCode(SecondaryNetworkAclEntryIcmpTypeCode).- Parameters:
icmpTypeCode- a consumer that will call methods onSecondaryNetworkAclEntryIcmpTypeCode.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
ipv4CidrBlock
The IPv4 CIDR block that the entry matches.
- Parameters:
ipv4CidrBlock- The IPv4 CIDR block that the entry matches.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ipv6CidrBlock
The IPv6 CIDR block that the entry matches.
- Parameters:
ipv6CidrBlock- The IPv6 CIDR block that the entry matches.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
direction
The direction of traffic that the entry applies to.
- Parameters:
direction- The direction of traffic that the entry applies to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
direction
The direction of traffic that the entry applies to.
- Parameters:
direction- The direction of traffic that the entry applies to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
action
The action to take on traffic that matches the entry.
- Parameters:
action- The action to take on traffic that matches the entry.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
action
The action to take on traffic that matches the entry.
- Parameters:
action- The action to take on traffic that matches the entry.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
ownerId
The ID of the Amazon Web Services account that owns the secondary network ACL.
- Parameters:
ownerId- The ID of the Amazon Web Services account that owns the secondary network ACL.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-