Interface ModifyTransitGatewayAttachmentNatConfigurationRequest.Builder

  • 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

      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 enabling or disabling. 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 is enabling or disabling. 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

      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 enabling or disabling. 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 is enabling or disabling. 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 is enable. 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

      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 is enable. 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

      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, use ResetNatGatewayRules .
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • 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, use ResetNatGatewayRules .
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • 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.

      This is a convenience method that creates an instance of the TransitGatewayNatRuleRequest.Builder avoiding the need to create one manually via TransitGatewayNatRuleRequest.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to natGatewayRules(List<TransitGatewayNatRuleRequest>).

      Parameters:
      natGatewayRules - a consumer that will call methods on TransitGatewayNatRuleRequest.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 set NatGatewaySupport to disable in 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 with NatGatewayRules. Because you can't enable NAT gateway support without rules, also set NatGatewaySupport to disable in 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 is UnauthorizedOperation.

      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 is DryRunOperation. Otherwise, it is UnauthorizedOperation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.