/** * 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 namespace Aws { namespace EC2 { namespace Model { /** */ class AWS_EC2_API CreateNatGatewayRequest : public EC2Request { public: 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::String SerializePayload() const override; protected: void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

The allocation ID of an Elastic IP address to associate with the 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; } /** *

The allocation ID of an Elastic IP address to associate with the NAT gateway. * If the Elastic IP address is associated with another resource, you must first * disassociate it.

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

The allocation ID of an Elastic IP address to associate with the 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; } /** *

The allocation ID of an Elastic IP address to associate with the 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); } /** *

The allocation ID of an Elastic IP address to associate with the 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); } /** *

The allocation ID of an Elastic IP address to associate with the 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;} /** *

The allocation ID of an Elastic IP address to associate with the 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;} /** *

The allocation ID of an Elastic IP address to associate with the 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 subnet in which to create the NAT gateway.

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

The subnet in which to create the NAT gateway.

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

The subnet in which to create the NAT gateway.

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

The subnet in which to create the NAT gateway.

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

The subnet in which to create the NAT gateway.

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

The subnet in which to create the NAT gateway.

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

The subnet in which to create the NAT gateway.

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

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; } private: Aws::String m_allocationId; bool m_allocationIdHasBeenSet; Aws::String m_clientToken; bool m_clientTokenHasBeenSet; bool m_dryRun; bool m_dryRunHasBeenSet; Aws::String m_subnetId; bool m_subnetIdHasBeenSet; Aws::Vector m_tagSpecifications; bool m_tagSpecificationsHasBeenSet; }; } // namespace Model } // namespace EC2 } // namespace Aws