Interface ModifyTransitGatewayAttachmentNatConfigurationRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<ModifyTransitGatewayAttachmentNatConfigurationRequest.Builder,,ModifyTransitGatewayAttachmentNatConfigurationRequest> Ec2Request.Builder,SdkBuilder<ModifyTransitGatewayAttachmentNatConfigurationRequest.Builder,,ModifyTransitGatewayAttachmentNatConfigurationRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
ModifyTransitGatewayAttachmentNatConfigurationRequest
-
Method Summary
Modifier and TypeMethodDescriptionChecks whether you have the required permissions for the action, without actually making the request, and provides an error response.natGatewayRules(Collection<TransitGatewayNatRuleRequest> natGatewayRules) The NAT gateway rules for the attachment.natGatewayRules(Consumer<TransitGatewayNatRuleRequest.Builder>... natGatewayRules) The NAT gateway rules for the attachment.natGatewayRules(TransitGatewayNatRuleRequest... natGatewayRules) The NAT gateway rules for the attachment.natGatewaySupport(String natGatewaySupport) Specifies whether to enable or disable NAT gateway support for the attachment.natGatewaySupport(TransitGatewayAttachmentNatGatewaySupportValue natGatewaySupport) Specifies whether to enable or disable NAT gateway support for the attachment.natSystemRouteSupport(String natSystemRouteSupport) Specifies whether the transit gateway installs routes for the NAT CIDRs in the route tables to which the attachment propagates.natSystemRouteSupport(TransitGatewayAttachmentNatSystemRouteSupportValue natSystemRouteSupport) Specifies whether the transit gateway installs routes for the NAT CIDRs in the route tables to which the attachment propagates.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.resetNatGatewayRules(Boolean resetNatGatewayRules) Specifies whether to remove all NAT gateway rules from the attachment.transitGatewayAttachmentId(String transitGatewayAttachmentId) The ID of the transit gateway attachment.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.ec2.model.Ec2Request.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
-
transitGatewayAttachmentId
ModifyTransitGatewayAttachmentNatConfigurationRequest.Builder transitGatewayAttachmentId(String transitGatewayAttachmentId) The ID of the transit gateway attachment.
- Parameters:
transitGatewayAttachmentId- The ID of the transit gateway attachment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
natGatewaySupport
ModifyTransitGatewayAttachmentNatConfigurationRequest.Builder natGatewaySupport(String natGatewaySupport) Specifies whether to enable or disable NAT gateway support for the attachment. To enable NAT gateway support, the attachment must have at least one NAT gateway rule. You can't modify the NAT configuration while NAT gateway support is
enablingordisabling. If you omit this parameter, the current value doesn't change.- Parameters:
natGatewaySupport- Specifies whether to enable or disable NAT gateway support for the attachment. To enable NAT gateway support, the attachment must have at least one NAT gateway rule. You can't modify the NAT configuration while NAT gateway support isenablingordisabling. If you omit this parameter, the current value doesn't change.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
natGatewaySupport
ModifyTransitGatewayAttachmentNatConfigurationRequest.Builder natGatewaySupport(TransitGatewayAttachmentNatGatewaySupportValue natGatewaySupport) Specifies whether to enable or disable NAT gateway support for the attachment. To enable NAT gateway support, the attachment must have at least one NAT gateway rule. You can't modify the NAT configuration while NAT gateway support is
enablingordisabling. If you omit this parameter, the current value doesn't change.- Parameters:
natGatewaySupport- Specifies whether to enable or disable NAT gateway support for the attachment. To enable NAT gateway support, the attachment must have at least one NAT gateway rule. You can't modify the NAT configuration while NAT gateway support isenablingordisabling. If you omit this parameter, the current value doesn't change.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
natSystemRouteSupport
ModifyTransitGatewayAttachmentNatConfigurationRequest.Builder natSystemRouteSupport(String natSystemRouteSupport) Specifies whether the transit gateway installs routes for the NAT CIDRs in the route tables to which the attachment propagates. For VPC attachments, the transit gateway always installs these routes. You can enable or disable this option only for Amazon Web Services Direct Connect gateway attachments and Site-to-Site VPN attachments that use dynamic routing. For these attachments, the default is
enable. If you omit this parameter, the current value doesn't change.- Parameters:
natSystemRouteSupport- Specifies whether the transit gateway installs routes for the NAT CIDRs in the route tables to which the attachment propagates. For VPC attachments, the transit gateway always installs these routes. You can enable or disable this option only for Amazon Web Services Direct Connect gateway attachments and Site-to-Site VPN attachments that use dynamic routing. For these attachments, the default isenable. If you omit this parameter, the current value doesn't change.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
natSystemRouteSupport
ModifyTransitGatewayAttachmentNatConfigurationRequest.Builder natSystemRouteSupport(TransitGatewayAttachmentNatSystemRouteSupportValue natSystemRouteSupport) Specifies whether the transit gateway installs routes for the NAT CIDRs in the route tables to which the attachment propagates. For VPC attachments, the transit gateway always installs these routes. You can enable or disable this option only for Amazon Web Services Direct Connect gateway attachments and Site-to-Site VPN attachments that use dynamic routing. For these attachments, the default is
enable. If you omit this parameter, the current value doesn't change.- Parameters:
natSystemRouteSupport- Specifies whether the transit gateway installs routes for the NAT CIDRs in the route tables to which the attachment propagates. For VPC attachments, the transit gateway always installs these routes. You can enable or disable this option only for Amazon Web Services Direct Connect gateway attachments and Site-to-Site VPN attachments that use dynamic routing. For these attachments, the default isenable. If you omit this parameter, the current value doesn't change.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
natGatewayRules
ModifyTransitGatewayAttachmentNatConfigurationRequest.Builder natGatewayRules(Collection<TransitGatewayNatRuleRequest> natGatewayRules) The NAT gateway rules for the attachment. The rules that you specify replace all existing NAT gateway rules for the attachment. You can specify up to 50 rules for an attachment. If you omit this parameter, the existing rules don't change. To remove all rules, use
ResetNatGatewayRules.- Parameters:
natGatewayRules- The NAT gateway rules for the attachment. The rules that you specify replace all existing NAT gateway rules for the attachment. You can specify up to 50 rules for an attachment. If you omit this parameter, the existing rules don't change. To remove all rules, useResetNatGatewayRules.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
natGatewayRules
ModifyTransitGatewayAttachmentNatConfigurationRequest.Builder natGatewayRules(TransitGatewayNatRuleRequest... natGatewayRules) The NAT gateway rules for the attachment. The rules that you specify replace all existing NAT gateway rules for the attachment. You can specify up to 50 rules for an attachment. If you omit this parameter, the existing rules don't change. To remove all rules, use
ResetNatGatewayRules.- Parameters:
natGatewayRules- The NAT gateway rules for the attachment. The rules that you specify replace all existing NAT gateway rules for the attachment. You can specify up to 50 rules for an attachment. If you omit this parameter, the existing rules don't change. To remove all rules, useResetNatGatewayRules.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
natGatewayRules
ModifyTransitGatewayAttachmentNatConfigurationRequest.Builder natGatewayRules(Consumer<TransitGatewayNatRuleRequest.Builder>... natGatewayRules) The NAT gateway rules for the attachment. The rules that you specify replace all existing NAT gateway rules for the attachment. You can specify up to 50 rules for an attachment. If you omit this parameter, the existing rules don't change. To remove all rules, use
This is a convenience method that creates an instance of theResetNatGatewayRules.TransitGatewayNatRuleRequest.Builderavoiding the need to create one manually viaTransitGatewayNatRuleRequest.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tonatGatewayRules(List<TransitGatewayNatRuleRequest>).- Parameters:
natGatewayRules- a consumer that will call methods onTransitGatewayNatRuleRequest.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
resetNatGatewayRules
ModifyTransitGatewayAttachmentNatConfigurationRequest.Builder resetNatGatewayRules(Boolean resetNatGatewayRules) Specifies whether to remove all NAT gateway rules from the attachment. If you omit this parameter, the transit gateway doesn't remove any rules. You can't specify this parameter together with
NatGatewayRules. Because you can't enable NAT gateway support without rules, also setNatGatewaySupporttodisablein the same request if NAT gateway support is currently enabled.- Parameters:
resetNatGatewayRules- Specifies whether to remove all NAT gateway rules from the attachment. If you omit this parameter, the transit gateway doesn't remove any rules. You can't specify this parameter together withNatGatewayRules. Because you can't enable NAT gateway support without rules, also setNatGatewaySupporttodisablein the same request if NAT gateway support is currently enabled.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dryRun
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is
DryRunOperation. Otherwise, it isUnauthorizedOperation.- Parameters:
dryRun- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response isDryRunOperation. Otherwise, it isUnauthorizedOperation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
ModifyTransitGatewayAttachmentNatConfigurationRequest.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
ModifyTransitGatewayAttachmentNatConfigurationRequest.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.
-