/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include namespace Aws { namespace EC2 { namespace Model { /** */ class CreateNatGatewayRequest : public EC2Request { public: AWS_EC2_API CreateNatGatewayRequest(); // 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 "CreateNatGateway"; } AWS_EC2_API Aws::String SerializePayload() const override; protected: AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

[Public NAT gateways only] The allocation ID of an Elastic IP address to * associate with the NAT gateway. You cannot specify an Elastic IP address with a * private NAT gateway. If the Elastic IP address is associated with another * resource, you must first disassociate it.

*/ inline const Aws::String& GetAllocationId() const{ return m_allocationId; } /** *

[Public NAT gateways only] The allocation ID of an Elastic IP address to * associate with the NAT gateway. You cannot specify an Elastic IP address with a * private NAT gateway. If the Elastic IP address is associated with another * resource, you must first disassociate it.

*/ inline bool AllocationIdHasBeenSet() const { return m_allocationIdHasBeenSet; } /** *

[Public NAT gateways only] The allocation ID of an Elastic IP address to * associate with the NAT gateway. You cannot specify an Elastic IP address with a * private NAT gateway. If the Elastic IP address is associated with another * resource, you must first disassociate it.

*/ inline void SetAllocationId(const Aws::String& value) { m_allocationIdHasBeenSet = true; m_allocationId = value; } /** *

[Public NAT gateways only] The allocation ID of an Elastic IP address to * associate with the NAT gateway. You cannot specify an Elastic IP address with a * private NAT gateway. If the Elastic IP address is associated with another * resource, you must first disassociate it.

*/ inline void SetAllocationId(Aws::String&& value) { m_allocationIdHasBeenSet = true; m_allocationId = std::move(value); } /** *

[Public NAT gateways only] The allocation ID of an Elastic IP address to * associate with the NAT gateway. You cannot specify an Elastic IP address with a * private NAT gateway. If the Elastic IP address is associated with another * resource, you must first disassociate it.

*/ inline void SetAllocationId(const char* value) { m_allocationIdHasBeenSet = true; m_allocationId.assign(value); } /** *

[Public NAT gateways only] The allocation ID of an Elastic IP address to * associate with the NAT gateway. You cannot specify an Elastic IP address with a * private NAT gateway. If the Elastic IP address is associated with another * resource, you must first disassociate it.

*/ inline CreateNatGatewayRequest& WithAllocationId(const Aws::String& value) { SetAllocationId(value); return *this;} /** *

[Public NAT gateways only] The allocation ID of an Elastic IP address to * associate with the NAT gateway. You cannot specify an Elastic IP address with a * private NAT gateway. If the Elastic IP address is associated with another * resource, you must first disassociate it.

*/ inline CreateNatGatewayRequest& WithAllocationId(Aws::String&& value) { SetAllocationId(std::move(value)); return *this;} /** *

[Public NAT gateways only] The allocation ID of an Elastic IP address to * associate with the NAT gateway. You cannot specify an Elastic IP address with a * private NAT gateway. If the Elastic IP address is associated with another * resource, you must first disassociate it.

*/ inline CreateNatGatewayRequest& WithAllocationId(const char* value) { SetAllocationId(value); return *this;} /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request. For more information, see How * to ensure idempotency.

Constraint: Maximum 64 ASCII characters.

*/ inline const Aws::String& GetClientToken() const{ return m_clientToken; } /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request. For more information, see How * to ensure idempotency.

Constraint: Maximum 64 ASCII characters.

*/ inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request. For more information, see How * to ensure idempotency.

Constraint: Maximum 64 ASCII characters.

*/ inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request. For more information, see How * to ensure idempotency.

Constraint: Maximum 64 ASCII characters.

*/ inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request. For more information, see How * to ensure idempotency.

Constraint: Maximum 64 ASCII characters.

*/ inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request. For more information, see How * to ensure idempotency.

Constraint: Maximum 64 ASCII characters.

*/ inline CreateNatGatewayRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request. For more information, see How * to ensure idempotency.

Constraint: Maximum 64 ASCII characters.

*/ inline CreateNatGatewayRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request. For more information, see How * to ensure idempotency.

Constraint: Maximum 64 ASCII characters.

*/ inline CreateNatGatewayRequest& WithClientToken(const char* value) { SetClientToken(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 CreateNatGatewayRequest& WithDryRun(bool value) { SetDryRun(value); return *this;} /** *

The ID of the subnet in which to create the NAT gateway.

*/ inline const Aws::String& GetSubnetId() const{ return m_subnetId; } /** *

The ID of the subnet in which to create the NAT gateway.

*/ inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; } /** *

The ID of the subnet in which to create the NAT gateway.

*/ inline void SetSubnetId(const Aws::String& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; } /** *

The ID of the subnet in which to create the NAT gateway.

*/ inline void SetSubnetId(Aws::String&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::move(value); } /** *

The ID of the subnet in which to create the NAT gateway.

*/ inline void SetSubnetId(const char* value) { m_subnetIdHasBeenSet = true; m_subnetId.assign(value); } /** *

The ID of the subnet in which to create the NAT gateway.

*/ inline CreateNatGatewayRequest& WithSubnetId(const Aws::String& value) { SetSubnetId(value); return *this;} /** *

The ID of the subnet in which to create the NAT gateway.

*/ inline CreateNatGatewayRequest& WithSubnetId(Aws::String&& value) { SetSubnetId(std::move(value)); return *this;} /** *

The ID of the subnet in which to create the NAT gateway.

*/ inline CreateNatGatewayRequest& WithSubnetId(const char* value) { SetSubnetId(value); return *this;} /** *

The tags to assign to the NAT gateway.

*/ inline const Aws::Vector& GetTagSpecifications() const{ return m_tagSpecifications; } /** *

The tags to assign to the NAT gateway.

*/ inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; } /** *

The tags to assign to the NAT gateway.

*/ inline void SetTagSpecifications(const Aws::Vector& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = value; } /** *

The tags to assign to the NAT gateway.

*/ inline void SetTagSpecifications(Aws::Vector&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::move(value); } /** *

The tags to assign to the NAT gateway.

*/ inline CreateNatGatewayRequest& WithTagSpecifications(const Aws::Vector& value) { SetTagSpecifications(value); return *this;} /** *

The tags to assign to the NAT gateway.

*/ inline CreateNatGatewayRequest& WithTagSpecifications(Aws::Vector&& value) { SetTagSpecifications(std::move(value)); return *this;} /** *

The tags to assign to the NAT gateway.

*/ inline CreateNatGatewayRequest& AddTagSpecifications(const TagSpecification& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(value); return *this; } /** *

The tags to assign to the NAT gateway.

*/ inline CreateNatGatewayRequest& AddTagSpecifications(TagSpecification&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(std::move(value)); return *this; } /** *

Indicates whether the NAT gateway supports public or private connectivity. * The default is public connectivity.

*/ inline const ConnectivityType& GetConnectivityType() const{ return m_connectivityType; } /** *

Indicates whether the NAT gateway supports public or private connectivity. * The default is public connectivity.

*/ inline bool ConnectivityTypeHasBeenSet() const { return m_connectivityTypeHasBeenSet; } /** *

Indicates whether the NAT gateway supports public or private connectivity. * The default is public connectivity.

*/ inline void SetConnectivityType(const ConnectivityType& value) { m_connectivityTypeHasBeenSet = true; m_connectivityType = value; } /** *

Indicates whether the NAT gateway supports public or private connectivity. * The default is public connectivity.

*/ inline void SetConnectivityType(ConnectivityType&& value) { m_connectivityTypeHasBeenSet = true; m_connectivityType = std::move(value); } /** *

Indicates whether the NAT gateway supports public or private connectivity. * The default is public connectivity.

*/ inline CreateNatGatewayRequest& WithConnectivityType(const ConnectivityType& value) { SetConnectivityType(value); return *this;} /** *

Indicates whether the NAT gateway supports public or private connectivity. * The default is public connectivity.

*/ inline CreateNatGatewayRequest& WithConnectivityType(ConnectivityType&& value) { SetConnectivityType(std::move(value)); return *this;} /** *

The private IPv4 address to assign to the NAT gateway. If you don't provide * an address, a private IPv4 address will be automatically assigned.

*/ inline const Aws::String& GetPrivateIpAddress() const{ return m_privateIpAddress; } /** *

The private IPv4 address to assign to the NAT gateway. If you don't provide * an address, a private IPv4 address will be automatically assigned.

*/ inline bool PrivateIpAddressHasBeenSet() const { return m_privateIpAddressHasBeenSet; } /** *

The private IPv4 address to assign to the NAT gateway. If you don't provide * an address, a private IPv4 address will be automatically assigned.

*/ inline void SetPrivateIpAddress(const Aws::String& value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress = value; } /** *

The private IPv4 address to assign to the NAT gateway. If you don't provide * an address, a private IPv4 address will be automatically assigned.

*/ inline void SetPrivateIpAddress(Aws::String&& value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress = std::move(value); } /** *

The private IPv4 address to assign to the NAT gateway. If you don't provide * an address, a private IPv4 address will be automatically assigned.

*/ inline void SetPrivateIpAddress(const char* value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress.assign(value); } /** *

The private IPv4 address to assign to the NAT gateway. If you don't provide * an address, a private IPv4 address will be automatically assigned.

*/ inline CreateNatGatewayRequest& WithPrivateIpAddress(const Aws::String& value) { SetPrivateIpAddress(value); return *this;} /** *

The private IPv4 address to assign to the NAT gateway. If you don't provide * an address, a private IPv4 address will be automatically assigned.

*/ inline CreateNatGatewayRequest& WithPrivateIpAddress(Aws::String&& value) { SetPrivateIpAddress(std::move(value)); return *this;} /** *

The private IPv4 address to assign to the NAT gateway. If you don't provide * an address, a private IPv4 address will be automatically assigned.

*/ inline CreateNatGatewayRequest& WithPrivateIpAddress(const char* value) { SetPrivateIpAddress(value); return *this;} /** *

Secondary EIP allocation IDs. For more information, see Create * a NAT gateway in the Amazon VPC User Guide.

*/ inline const Aws::Vector& GetSecondaryAllocationIds() const{ return m_secondaryAllocationIds; } /** *

Secondary EIP allocation IDs. For more information, see Create * a NAT gateway in the Amazon VPC User Guide.

*/ inline bool SecondaryAllocationIdsHasBeenSet() const { return m_secondaryAllocationIdsHasBeenSet; } /** *

Secondary EIP allocation IDs. For more information, see Create * a NAT gateway in the Amazon VPC User Guide.

*/ inline void SetSecondaryAllocationIds(const Aws::Vector& value) { m_secondaryAllocationIdsHasBeenSet = true; m_secondaryAllocationIds = value; } /** *

Secondary EIP allocation IDs. For more information, see Create * a NAT gateway in the Amazon VPC User Guide.

*/ inline void SetSecondaryAllocationIds(Aws::Vector&& value) { m_secondaryAllocationIdsHasBeenSet = true; m_secondaryAllocationIds = std::move(value); } /** *

Secondary EIP allocation IDs. For more information, see Create * a NAT gateway in the Amazon VPC User Guide.

*/ inline CreateNatGatewayRequest& WithSecondaryAllocationIds(const Aws::Vector& value) { SetSecondaryAllocationIds(value); return *this;} /** *

Secondary EIP allocation IDs. For more information, see Create * a NAT gateway in the Amazon VPC User Guide.

*/ inline CreateNatGatewayRequest& WithSecondaryAllocationIds(Aws::Vector&& value) { SetSecondaryAllocationIds(std::move(value)); return *this;} /** *

Secondary EIP allocation IDs. For more information, see Create * a NAT gateway in the Amazon VPC User Guide.

*/ inline CreateNatGatewayRequest& AddSecondaryAllocationIds(const Aws::String& value) { m_secondaryAllocationIdsHasBeenSet = true; m_secondaryAllocationIds.push_back(value); return *this; } /** *

Secondary EIP allocation IDs. For more information, see Create * a NAT gateway in the Amazon VPC User Guide.

*/ inline CreateNatGatewayRequest& AddSecondaryAllocationIds(Aws::String&& value) { m_secondaryAllocationIdsHasBeenSet = true; m_secondaryAllocationIds.push_back(std::move(value)); return *this; } /** *

Secondary EIP allocation IDs. For more information, see Create * a NAT gateway in the Amazon VPC User Guide.

*/ inline CreateNatGatewayRequest& AddSecondaryAllocationIds(const char* value) { m_secondaryAllocationIdsHasBeenSet = true; m_secondaryAllocationIds.push_back(value); return *this; } /** *

Secondary private IPv4 addresses. For more information about secondary * addresses, see Create * a NAT gateway in the Amazon VPC User Guide.

*/ inline const Aws::Vector& GetSecondaryPrivateIpAddresses() const{ return m_secondaryPrivateIpAddresses; } /** *

Secondary private IPv4 addresses. For more information about secondary * addresses, see Create * a NAT gateway in the Amazon VPC User Guide.

*/ inline bool SecondaryPrivateIpAddressesHasBeenSet() const { return m_secondaryPrivateIpAddressesHasBeenSet; } /** *

Secondary private IPv4 addresses. For more information about secondary * addresses, see Create * a NAT gateway in the Amazon VPC User Guide.

*/ inline void SetSecondaryPrivateIpAddresses(const Aws::Vector& value) { m_secondaryPrivateIpAddressesHasBeenSet = true; m_secondaryPrivateIpAddresses = value; } /** *

Secondary private IPv4 addresses. For more information about secondary * addresses, see Create * a NAT gateway in the Amazon VPC User Guide.

*/ inline void SetSecondaryPrivateIpAddresses(Aws::Vector&& value) { m_secondaryPrivateIpAddressesHasBeenSet = true; m_secondaryPrivateIpAddresses = std::move(value); } /** *

Secondary private IPv4 addresses. For more information about secondary * addresses, see Create * a NAT gateway in the Amazon VPC User Guide.

*/ inline CreateNatGatewayRequest& WithSecondaryPrivateIpAddresses(const Aws::Vector& value) { SetSecondaryPrivateIpAddresses(value); return *this;} /** *

Secondary private IPv4 addresses. For more information about secondary * addresses, see Create * a NAT gateway in the Amazon VPC User Guide.

*/ inline CreateNatGatewayRequest& WithSecondaryPrivateIpAddresses(Aws::Vector&& value) { SetSecondaryPrivateIpAddresses(std::move(value)); return *this;} /** *

Secondary private IPv4 addresses. For more information about secondary * addresses, see Create * a NAT gateway in the Amazon VPC User Guide.

*/ inline CreateNatGatewayRequest& AddSecondaryPrivateIpAddresses(const Aws::String& value) { m_secondaryPrivateIpAddressesHasBeenSet = true; m_secondaryPrivateIpAddresses.push_back(value); return *this; } /** *

Secondary private IPv4 addresses. For more information about secondary * addresses, see Create * a NAT gateway in the Amazon VPC User Guide.

*/ inline CreateNatGatewayRequest& AddSecondaryPrivateIpAddresses(Aws::String&& value) { m_secondaryPrivateIpAddressesHasBeenSet = true; m_secondaryPrivateIpAddresses.push_back(std::move(value)); return *this; } /** *

Secondary private IPv4 addresses. For more information about secondary * addresses, see Create * a NAT gateway in the Amazon VPC User Guide.

*/ inline CreateNatGatewayRequest& AddSecondaryPrivateIpAddresses(const char* value) { m_secondaryPrivateIpAddressesHasBeenSet = true; m_secondaryPrivateIpAddresses.push_back(value); return *this; } /** *

[Private NAT gateway only] The number of secondary private IPv4 addresses you * want to assign to the NAT gateway. For more information about secondary * addresses, see Create * a NAT gateway in the Amazon VPC User Guide.

*/ inline int GetSecondaryPrivateIpAddressCount() const{ return m_secondaryPrivateIpAddressCount; } /** *

[Private NAT gateway only] The number of secondary private IPv4 addresses you * want to assign to the NAT gateway. For more information about secondary * addresses, see Create * a NAT gateway in the Amazon VPC User Guide.

*/ inline bool SecondaryPrivateIpAddressCountHasBeenSet() const { return m_secondaryPrivateIpAddressCountHasBeenSet; } /** *

[Private NAT gateway only] The number of secondary private IPv4 addresses you * want to assign to the NAT gateway. For more information about secondary * addresses, see Create * a NAT gateway in the Amazon VPC User Guide.

*/ inline void SetSecondaryPrivateIpAddressCount(int value) { m_secondaryPrivateIpAddressCountHasBeenSet = true; m_secondaryPrivateIpAddressCount = value; } /** *

[Private NAT gateway only] The number of secondary private IPv4 addresses you * want to assign to the NAT gateway. For more information about secondary * addresses, see Create * a NAT gateway in the Amazon VPC User Guide.

*/ inline CreateNatGatewayRequest& WithSecondaryPrivateIpAddressCount(int value) { SetSecondaryPrivateIpAddressCount(value); return *this;} private: Aws::String m_allocationId; bool m_allocationIdHasBeenSet = false; Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; bool m_dryRun; bool m_dryRunHasBeenSet = false; Aws::String m_subnetId; bool m_subnetIdHasBeenSet = false; Aws::Vector m_tagSpecifications; bool m_tagSpecificationsHasBeenSet = false; ConnectivityType m_connectivityType; bool m_connectivityTypeHasBeenSet = false; Aws::String m_privateIpAddress; bool m_privateIpAddressHasBeenSet = false; Aws::Vector m_secondaryAllocationIds; bool m_secondaryAllocationIdsHasBeenSet = false; Aws::Vector m_secondaryPrivateIpAddresses; bool m_secondaryPrivateIpAddressesHasBeenSet = false; int m_secondaryPrivateIpAddressCount; bool m_secondaryPrivateIpAddressCountHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws