Interface SecondaryNetworkAclEntryRequest.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<SecondaryNetworkAclEntryRequest.Builder,,SecondaryNetworkAclEntryRequest> SdkBuilder<SecondaryNetworkAclEntryRequest.Builder,,SecondaryNetworkAclEntryRequest> SdkPojo
- Enclosing class:
SecondaryNetworkAclEntryRequest
-
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.The ICMP type and code that the entry applies to.icmpTypeCode(SecondaryNetworkAclEntryIcmpTypeCodeRequest 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 range of ports that the entry applies to.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.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
-
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:
-
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:
-
icmpTypeCode
SecondaryNetworkAclEntryRequest.Builder icmpTypeCode(SecondaryNetworkAclEntryIcmpTypeCodeRequest icmpTypeCode) The ICMP type and code that the entry applies to. An ICMP type and code is required for ICMP (protocol 1) and ICMPv6 (protocol 58), and isn't accepted for any other protocol.
- Parameters:
icmpTypeCode- The ICMP type and code that the entry applies to. An ICMP type and code is required for ICMP (protocol 1) and ICMPv6 (protocol 58), and isn't accepted for any other protocol.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
icmpTypeCode
default SecondaryNetworkAclEntryRequest.Builder icmpTypeCode(Consumer<SecondaryNetworkAclEntryIcmpTypeCodeRequest.Builder> icmpTypeCode) The ICMP type and code that the entry applies to. An ICMP type and code is required for ICMP (protocol 1) and ICMPv6 (protocol 58), and isn't accepted for any other protocol.
This is a convenience method that creates an instance of theSecondaryNetworkAclEntryIcmpTypeCodeRequest.Builderavoiding the need to create one manually viaSecondaryNetworkAclEntryIcmpTypeCodeRequest.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toicmpTypeCode(SecondaryNetworkAclEntryIcmpTypeCodeRequest).- Parameters:
icmpTypeCode- a consumer that will call methods onSecondaryNetworkAclEntryIcmpTypeCodeRequest.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. You must specify either
Ipv4CidrBlockorIpv6CidrBlock, but not both, and it must match the address family of the secondary network ACL.- Parameters:
ipv4CidrBlock- The IPv4 CIDR block that the entry matches. You must specify eitherIpv4CidrBlockorIpv6CidrBlock, but not both, and it must match the address family of the secondary network ACL.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ipv6CidrBlock
The IPv6 CIDR block that the entry matches. You must specify either
Ipv4CidrBlockorIpv6CidrBlock, but not both, and it must match the address family of the secondary network ACL.- Parameters:
ipv6CidrBlock- The IPv6 CIDR block that the entry matches. You must specify eitherIpv4CidrBlockorIpv6CidrBlock, but not both, and it must match the address family of the secondary network ACL.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
portRange
SecondaryNetworkAclEntryRequest.Builder portRange(SecondaryNetworkAclEntryPortRangeRequest portRange) The range of ports that the entry applies to. A port range is required for TCP (protocol 6) and UDP (protocol 17), and isn't accepted for any other protocol.
- Parameters:
portRange- The range of ports that the entry applies to. A port range is required for TCP (protocol 6) and UDP (protocol 17), and isn't accepted for any other protocol.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
portRange
default SecondaryNetworkAclEntryRequest.Builder portRange(Consumer<SecondaryNetworkAclEntryPortRangeRequest.Builder> portRange) The range of ports that the entry applies to. A port range is required for TCP (protocol 6) and UDP (protocol 17), and isn't accepted for any other protocol.
This is a convenience method that creates an instance of theSecondaryNetworkAclEntryPortRangeRequest.Builderavoiding the need to create one manually viaSecondaryNetworkAclEntryPortRangeRequest.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toportRange(SecondaryNetworkAclEntryPortRangeRequest).- Parameters:
portRange- a consumer that will call methods onSecondaryNetworkAclEntryPortRangeRequest.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
protocol
The protocol number that the entry applies to. Specify
-1for all protocols, or a protocol number from 0 to 255.- Parameters:
protocol- The protocol number that the entry applies to. Specify-1for all protocols, or a protocol number from 0 to 255.- 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.
Constraints: Positive integer from 1 to 32766.
- Parameters:
ruleNumber- The rule number of the entry. Entries are evaluated in order, starting with the lowest rule number.Constraints: Positive integer from 1 to 32766.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-