Interface NatRuleRequest.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<NatRuleRequest.Builder,,NatRuleRequest> SdkBuilder<NatRuleRequest.Builder,,NatRuleRequest> SdkPojo
- Enclosing class:
NatRuleRequest
@Mutable
@NotThreadSafe
public static interface NatRuleRequest.Builder
extends SdkPojo, CopyableBuilder<NatRuleRequest.Builder,NatRuleRequest>
-
Method Summary
Modifier and TypeMethodDescriptionmatchSourceCidr(String matchSourceCidr) The IPv4 CIDR block to match against the source address of traffic from the attachment.The IPv4 CIDR block to translate matching source addresses to.ruleNumber(Integer ruleNumber) The rule number, from 1 to 32766.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
-
ruleNumber
The rule number, from 1 to 32766. Each rule number must be unique for the attachment.
- Parameters:
ruleNumber- The rule number, from 1 to 32766. Each rule number must be unique for the attachment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
matchSourceCidr
The IPv4 CIDR block to match against the source address of traffic from the attachment. The CIDR block can't overlap with the multicast range (224.0.0.0/4).
- Parameters:
matchSourceCidr- The IPv4 CIDR block to match against the source address of traffic from the attachment. The CIDR block can't overlap with the multicast range (224.0.0.0/4).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
natCidr
The IPv4 CIDR block to translate matching source addresses to. The prefix length must be the same as the prefix length of
MatchSourceCidr. The CIDR block must be within a private (RFC 1918) or shared address space (RFC 6598) range. The CIDR blocks of the NAT rules of an attachment can't overlap with each other.- Parameters:
natCidr- The IPv4 CIDR block to translate matching source addresses to. The prefix length must be the same as the prefix length ofMatchSourceCidr. The CIDR block must be within a private (RFC 1918) or shared address space (RFC 6598) range. The CIDR blocks of the NAT rules of an attachment can't overlap with each other.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-