Interface UpdateAttachmentNatConfigurationRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<UpdateAttachmentNatConfigurationRequest.Builder,,UpdateAttachmentNatConfigurationRequest> NetworkManagerRequest.Builder,SdkBuilder<UpdateAttachmentNatConfigurationRequest.Builder,,UpdateAttachmentNatConfigurationRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
UpdateAttachmentNatConfigurationRequest
-
Method Summary
Modifier and TypeMethodDescriptionattachmentId(String attachmentId) The ID of the attachment to update the NAT configuration for.clientToken(String clientToken) The client token associated with the request.natGatewayRules(Collection<NatRuleRequest> natGatewayRules) The complete set of NAT rules for the attachment, up to 50 rules.natGatewayRules(Consumer<NatRuleRequest.Builder>... natGatewayRules) The complete set of NAT rules for the attachment, up to 50 rules.natGatewayRules(NatRuleRequest... natGatewayRules) The complete set of NAT rules for the attachment, up to 50 rules.natGatewaySupport(String natGatewaySupport) Specifies whether to enable or disable NAT gateway support on the attachment.natGatewaySupport(NatGatewaySupportValue natGatewaySupport) Specifies whether to enable or disable NAT gateway support on the attachment.natSystemRouteSupport(Boolean natSystemRouteSupport) Specifies whether the core network installs system routes for the NAT CIDR blocks of the attachment's NAT rules.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.networkmanager.model.NetworkManagerRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
attachmentId
The ID of the attachment to update the NAT configuration for.
- Parameters:
attachmentId- The ID of the attachment to update the NAT configuration for.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
natGatewaySupport
Specifies whether to enable or disable NAT gateway support on the attachment. When you disable NAT gateway support, the attachment keeps its NAT rules but doesn't apply them. To enable NAT gateway support, the attachment must have at least one NAT rule, either specified in this request or already configured on the attachment. If you omit this parameter, NAT gateway support is unchanged.
- Parameters:
natGatewaySupport- Specifies whether to enable or disable NAT gateway support on the attachment. When you disable NAT gateway support, the attachment keeps its NAT rules but doesn't apply them. To enable NAT gateway support, the attachment must have at least one NAT rule, either specified in this request or already configured on the attachment. If you omit this parameter, NAT gateway support is unchanged.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
natGatewaySupport
UpdateAttachmentNatConfigurationRequest.Builder natGatewaySupport(NatGatewaySupportValue natGatewaySupport) Specifies whether to enable or disable NAT gateway support on the attachment. When you disable NAT gateway support, the attachment keeps its NAT rules but doesn't apply them. To enable NAT gateway support, the attachment must have at least one NAT rule, either specified in this request or already configured on the attachment. If you omit this parameter, NAT gateway support is unchanged.
- Parameters:
natGatewaySupport- Specifies whether to enable or disable NAT gateway support on the attachment. When you disable NAT gateway support, the attachment keeps its NAT rules but doesn't apply them. To enable NAT gateway support, the attachment must have at least one NAT rule, either specified in this request or already configured on the attachment. If you omit this parameter, NAT gateway support is unchanged.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
natSystemRouteSupport
UpdateAttachmentNatConfigurationRequest.Builder natSystemRouteSupport(Boolean natSystemRouteSupport) Specifies whether the core network installs system routes for the NAT CIDR blocks of the attachment's NAT rules. System routes have a route type of
SYSTEM. NAT is applied to traffic whether or not this option is enabled. If you omit this parameter, the current value is unchanged.- Parameters:
natSystemRouteSupport- Specifies whether the core network installs system routes for the NAT CIDR blocks of the attachment's NAT rules. System routes have a route type ofSYSTEM. NAT is applied to traffic whether or not this option is enabled. If you omit this parameter, the current value is unchanged.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
natGatewayRules
UpdateAttachmentNatConfigurationRequest.Builder natGatewayRules(Collection<NatRuleRequest> natGatewayRules) The complete set of NAT rules for the attachment, up to 50 rules. The rules that you specify replace the existing rules of the attachment, matched by rule number. Existing rules that aren't included in the request are deleted. To delete all NAT rules, specify an empty list. You can delete all NAT rules only when NAT gateway support is disabled, or when you disable it in the same request. If you omit this parameter, the existing rules are unchanged.
- Parameters:
natGatewayRules- The complete set of NAT rules for the attachment, up to 50 rules. The rules that you specify replace the existing rules of the attachment, matched by rule number. Existing rules that aren't included in the request are deleted. To delete all NAT rules, specify an empty list. You can delete all NAT rules only when NAT gateway support is disabled, or when you disable it in the same request. If you omit this parameter, the existing rules are unchanged.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
natGatewayRules
The complete set of NAT rules for the attachment, up to 50 rules. The rules that you specify replace the existing rules of the attachment, matched by rule number. Existing rules that aren't included in the request are deleted. To delete all NAT rules, specify an empty list. You can delete all NAT rules only when NAT gateway support is disabled, or when you disable it in the same request. If you omit this parameter, the existing rules are unchanged.
- Parameters:
natGatewayRules- The complete set of NAT rules for the attachment, up to 50 rules. The rules that you specify replace the existing rules of the attachment, matched by rule number. Existing rules that aren't included in the request are deleted. To delete all NAT rules, specify an empty list. You can delete all NAT rules only when NAT gateway support is disabled, or when you disable it in the same request. If you omit this parameter, the existing rules are unchanged.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
natGatewayRules
UpdateAttachmentNatConfigurationRequest.Builder natGatewayRules(Consumer<NatRuleRequest.Builder>... natGatewayRules) The complete set of NAT rules for the attachment, up to 50 rules. The rules that you specify replace the existing rules of the attachment, matched by rule number. Existing rules that aren't included in the request are deleted. To delete all NAT rules, specify an empty list. You can delete all NAT rules only when NAT gateway support is disabled, or when you disable it in the same request. If you omit this parameter, the existing rules are unchanged.
This is a convenience method that creates an instance of theNatRuleRequest.Builderavoiding the need to create one manually viaNatRuleRequest.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tonatGatewayRules(List<NatRuleRequest>).- Parameters:
natGatewayRules- a consumer that will call methods onNatRuleRequest.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
clientToken
The client token associated with the request.
- Parameters:
clientToken- The client token associated with the request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
UpdateAttachmentNatConfigurationRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
UpdateAttachmentNatConfigurationRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-