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