Interface NatRule.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<NatRule.Builder,,NatRule> SdkBuilder<NatRule.Builder,,NatRule> SdkPojo
- Enclosing class:
NatRule
-
Method Summary
Modifier and TypeMethodDescriptionmatchSourceCidr(String matchSourceCidr) The source CIDR block that the rule matches for traffic from the attachment.The CIDR block that matching source addresses are translated to.ruleNumber(Integer ruleNumber) The rule number.The state of the NAT rule.state(NatRuleState state) The state of the NAT rule.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. Rule numbers identify the rules of an attachment and don't set the order in which rules are evaluated.
- Parameters:
ruleNumber- The rule number. Rule numbers identify the rules of an attachment and don't set the order in which rules are evaluated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
matchSourceCidr
The source CIDR block that the rule matches for traffic from the attachment.
- Parameters:
matchSourceCidr- The source CIDR block that the rule matches for traffic from the attachment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
natCidr
The CIDR block that matching source addresses are translated to.
- Parameters:
natCidr- The CIDR block that matching source addresses are translated to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
state
The state of the NAT rule. The possible values are the following:
-
CREATING: The rule is being created. -
MODIFYING: The rule is being modified. -
DELETING: The rule is being deleted. -
ACTIVATING: NAT gateway support is being enabled, and the rule is being applied. -
ACTIVATED: NAT gateway support is enabled, and the rule is applied. -
DEACTIVATING: NAT gateway support is being disabled, and the rule is being removed from use. -
DEACTIVATED: NAT gateway support is disabled, and the rule isn't applied. -
FAILED: The attachment failed to be created, and the rule isn't applied. -
PENDING_ATTACHMENT_ACCEPTANCE: The attachment is pending acceptance. The rule is applied after the attachment is accepted.
- Parameters:
state- The state of the NAT rule. The possible values are the following:-
CREATING: The rule is being created. -
MODIFYING: The rule is being modified. -
DELETING: The rule is being deleted. -
ACTIVATING: NAT gateway support is being enabled, and the rule is being applied. -
ACTIVATED: NAT gateway support is enabled, and the rule is applied. -
DEACTIVATING: NAT gateway support is being disabled, and the rule is being removed from use. -
DEACTIVATED: NAT gateway support is disabled, and the rule isn't applied. -
FAILED: The attachment failed to be created, and the rule isn't applied. -
PENDING_ATTACHMENT_ACCEPTANCE: The attachment is pending acceptance. The rule is applied after the attachment is accepted.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
state
The state of the NAT rule. The possible values are the following:
-
CREATING: The rule is being created. -
MODIFYING: The rule is being modified. -
DELETING: The rule is being deleted. -
ACTIVATING: NAT gateway support is being enabled, and the rule is being applied. -
ACTIVATED: NAT gateway support is enabled, and the rule is applied. -
DEACTIVATING: NAT gateway support is being disabled, and the rule is being removed from use. -
DEACTIVATED: NAT gateway support is disabled, and the rule isn't applied. -
FAILED: The attachment failed to be created, and the rule isn't applied. -
PENDING_ATTACHMENT_ACCEPTANCE: The attachment is pending acceptance. The rule is applied after the attachment is accepted.
- Parameters:
state- The state of the NAT rule. The possible values are the following:-
CREATING: The rule is being created. -
MODIFYING: The rule is being modified. -
DELETING: The rule is being deleted. -
ACTIVATING: NAT gateway support is being enabled, and the rule is being applied. -
ACTIVATED: NAT gateway support is enabled, and the rule is applied. -
DEACTIVATING: NAT gateway support is being disabled, and the rule is being removed from use. -
DEACTIVATED: NAT gateway support is disabled, and the rule isn't applied. -
FAILED: The attachment failed to be created, and the rule isn't applied. -
PENDING_ATTACHMENT_ACCEPTANCE: The attachment is pending acceptance. The rule is applied after the attachment is accepted.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-