/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace EC2 { namespace Model { /** */ class DisassociateNatGatewayAddressRequest : public EC2Request { public: AWS_EC2_API DisassociateNatGatewayAddressRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "DisassociateNatGatewayAddress"; } AWS_EC2_API Aws::String SerializePayload() const override; protected: AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

The ID of the NAT gateway.

*/ inline const Aws::String& GetNatGatewayId() const{ return m_natGatewayId; } /** *

The ID of the NAT gateway.

*/ inline bool NatGatewayIdHasBeenSet() const { return m_natGatewayIdHasBeenSet; } /** *

The ID of the NAT gateway.

*/ inline void SetNatGatewayId(const Aws::String& value) { m_natGatewayIdHasBeenSet = true; m_natGatewayId = value; } /** *

The ID of the NAT gateway.

*/ inline void SetNatGatewayId(Aws::String&& value) { m_natGatewayIdHasBeenSet = true; m_natGatewayId = std::move(value); } /** *

The ID of the NAT gateway.

*/ inline void SetNatGatewayId(const char* value) { m_natGatewayIdHasBeenSet = true; m_natGatewayId.assign(value); } /** *

The ID of the NAT gateway.

*/ inline DisassociateNatGatewayAddressRequest& WithNatGatewayId(const Aws::String& value) { SetNatGatewayId(value); return *this;} /** *

The ID of the NAT gateway.

*/ inline DisassociateNatGatewayAddressRequest& WithNatGatewayId(Aws::String&& value) { SetNatGatewayId(std::move(value)); return *this;} /** *

The ID of the NAT gateway.

*/ inline DisassociateNatGatewayAddressRequest& WithNatGatewayId(const char* value) { SetNatGatewayId(value); return *this;} /** *

The association IDs of EIPs that have been associated with the NAT * gateway.

*/ inline const Aws::Vector& GetAssociationIds() const{ return m_associationIds; } /** *

The association IDs of EIPs that have been associated with the NAT * gateway.

*/ inline bool AssociationIdsHasBeenSet() const { return m_associationIdsHasBeenSet; } /** *

The association IDs of EIPs that have been associated with the NAT * gateway.

*/ inline void SetAssociationIds(const Aws::Vector& value) { m_associationIdsHasBeenSet = true; m_associationIds = value; } /** *

The association IDs of EIPs that have been associated with the NAT * gateway.

*/ inline void SetAssociationIds(Aws::Vector&& value) { m_associationIdsHasBeenSet = true; m_associationIds = std::move(value); } /** *

The association IDs of EIPs that have been associated with the NAT * gateway.

*/ inline DisassociateNatGatewayAddressRequest& WithAssociationIds(const Aws::Vector& value) { SetAssociationIds(value); return *this;} /** *

The association IDs of EIPs that have been associated with the NAT * gateway.

*/ inline DisassociateNatGatewayAddressRequest& WithAssociationIds(Aws::Vector&& value) { SetAssociationIds(std::move(value)); return *this;} /** *

The association IDs of EIPs that have been associated with the NAT * gateway.

*/ inline DisassociateNatGatewayAddressRequest& AddAssociationIds(const Aws::String& value) { m_associationIdsHasBeenSet = true; m_associationIds.push_back(value); return *this; } /** *

The association IDs of EIPs that have been associated with the NAT * gateway.

*/ inline DisassociateNatGatewayAddressRequest& AddAssociationIds(Aws::String&& value) { m_associationIdsHasBeenSet = true; m_associationIds.push_back(std::move(value)); return *this; } /** *

The association IDs of EIPs that have been associated with the NAT * gateway.

*/ inline DisassociateNatGatewayAddressRequest& AddAssociationIds(const char* value) { m_associationIdsHasBeenSet = true; m_associationIds.push_back(value); return *this; } /** *

The maximum amount of time to wait (in seconds) before forcibly releasing the * IP addresses if connections are still in progress. Default value is 350 * seconds.

*/ inline int GetMaxDrainDurationSeconds() const{ return m_maxDrainDurationSeconds; } /** *

The maximum amount of time to wait (in seconds) before forcibly releasing the * IP addresses if connections are still in progress. Default value is 350 * seconds.

*/ inline bool MaxDrainDurationSecondsHasBeenSet() const { return m_maxDrainDurationSecondsHasBeenSet; } /** *

The maximum amount of time to wait (in seconds) before forcibly releasing the * IP addresses if connections are still in progress. Default value is 350 * seconds.

*/ inline void SetMaxDrainDurationSeconds(int value) { m_maxDrainDurationSecondsHasBeenSet = true; m_maxDrainDurationSeconds = value; } /** *

The maximum amount of time to wait (in seconds) before forcibly releasing the * IP addresses if connections are still in progress. Default value is 350 * seconds.

*/ inline DisassociateNatGatewayAddressRequest& WithMaxDrainDurationSeconds(int value) { SetMaxDrainDurationSeconds(value); return *this;} /** *

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.

*/ inline bool GetDryRun() const{ return m_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.

*/ inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; } /** *

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.

*/ inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; } /** *

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.

*/ inline DisassociateNatGatewayAddressRequest& WithDryRun(bool value) { SetDryRun(value); return *this;} private: Aws::String m_natGatewayId; bool m_natGatewayIdHasBeenSet = false; Aws::Vector m_associationIds; bool m_associationIdsHasBeenSet = false; int m_maxDrainDurationSeconds; bool m_maxDrainDurationSecondsHasBeenSet = false; bool m_dryRun; bool m_dryRunHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws