/** * 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 AssignPrivateNatGatewayAddressRequest : public EC2Request { public: AWS_EC2_API AssignPrivateNatGatewayAddressRequest(); // 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 "AssignPrivateNatGatewayAddress"; } 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 AssignPrivateNatGatewayAddressRequest& WithNatGatewayId(const Aws::String& value) { SetNatGatewayId(value); return *this;} /** *

The ID of the NAT gateway.

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

The ID of the NAT gateway.

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

The private IPv4 addresses you want to assign to the private NAT gateway.

*/ inline const Aws::Vector& GetPrivateIpAddresses() const{ return m_privateIpAddresses; } /** *

The private IPv4 addresses you want to assign to the private NAT gateway.

*/ inline bool PrivateIpAddressesHasBeenSet() const { return m_privateIpAddressesHasBeenSet; } /** *

The private IPv4 addresses you want to assign to the private NAT gateway.

*/ inline void SetPrivateIpAddresses(const Aws::Vector& value) { m_privateIpAddressesHasBeenSet = true; m_privateIpAddresses = value; } /** *

The private IPv4 addresses you want to assign to the private NAT gateway.

*/ inline void SetPrivateIpAddresses(Aws::Vector&& value) { m_privateIpAddressesHasBeenSet = true; m_privateIpAddresses = std::move(value); } /** *

The private IPv4 addresses you want to assign to the private NAT gateway.

*/ inline AssignPrivateNatGatewayAddressRequest& WithPrivateIpAddresses(const Aws::Vector& value) { SetPrivateIpAddresses(value); return *this;} /** *

The private IPv4 addresses you want to assign to the private NAT gateway.

*/ inline AssignPrivateNatGatewayAddressRequest& WithPrivateIpAddresses(Aws::Vector&& value) { SetPrivateIpAddresses(std::move(value)); return *this;} /** *

The private IPv4 addresses you want to assign to the private NAT gateway.

*/ inline AssignPrivateNatGatewayAddressRequest& AddPrivateIpAddresses(const Aws::String& value) { m_privateIpAddressesHasBeenSet = true; m_privateIpAddresses.push_back(value); return *this; } /** *

The private IPv4 addresses you want to assign to the private NAT gateway.

*/ inline AssignPrivateNatGatewayAddressRequest& AddPrivateIpAddresses(Aws::String&& value) { m_privateIpAddressesHasBeenSet = true; m_privateIpAddresses.push_back(std::move(value)); return *this; } /** *

The private IPv4 addresses you want to assign to the private NAT gateway.

*/ inline AssignPrivateNatGatewayAddressRequest& AddPrivateIpAddresses(const char* value) { m_privateIpAddressesHasBeenSet = true; m_privateIpAddresses.push_back(value); return *this; } /** *

The number of private IP addresses to assign to the NAT gateway. You can't * specify this parameter when also specifying private IP addresses.

*/ inline int GetPrivateIpAddressCount() const{ return m_privateIpAddressCount; } /** *

The number of private IP addresses to assign to the NAT gateway. You can't * specify this parameter when also specifying private IP addresses.

*/ inline bool PrivateIpAddressCountHasBeenSet() const { return m_privateIpAddressCountHasBeenSet; } /** *

The number of private IP addresses to assign to the NAT gateway. You can't * specify this parameter when also specifying private IP addresses.

*/ inline void SetPrivateIpAddressCount(int value) { m_privateIpAddressCountHasBeenSet = true; m_privateIpAddressCount = value; } /** *

The number of private IP addresses to assign to the NAT gateway. You can't * specify this parameter when also specifying private IP addresses.

*/ inline AssignPrivateNatGatewayAddressRequest& WithPrivateIpAddressCount(int value) { SetPrivateIpAddressCount(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 AssignPrivateNatGatewayAddressRequest& WithDryRun(bool value) { SetDryRun(value); return *this;} private: Aws::String m_natGatewayId; bool m_natGatewayIdHasBeenSet = false; Aws::Vector m_privateIpAddresses; bool m_privateIpAddressesHasBeenSet = false; int m_privateIpAddressCount; bool m_privateIpAddressCountHasBeenSet = false; bool m_dryRun; bool m_dryRunHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws