/** * 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 { /** *

Contains the parameters for CreateVpnConnection.

See Also:

* AWS * API Reference

*/ class CreateVpnConnectionRequest : public EC2Request { public: AWS_EC2_API CreateVpnConnectionRequest(); // 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 "CreateVpnConnection"; } 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 customer gateway.

*/ inline const Aws::String& GetCustomerGatewayId() const{ return m_customerGatewayId; } /** *

The ID of the customer gateway.

*/ inline bool CustomerGatewayIdHasBeenSet() const { return m_customerGatewayIdHasBeenSet; } /** *

The ID of the customer gateway.

*/ inline void SetCustomerGatewayId(const Aws::String& value) { m_customerGatewayIdHasBeenSet = true; m_customerGatewayId = value; } /** *

The ID of the customer gateway.

*/ inline void SetCustomerGatewayId(Aws::String&& value) { m_customerGatewayIdHasBeenSet = true; m_customerGatewayId = std::move(value); } /** *

The ID of the customer gateway.

*/ inline void SetCustomerGatewayId(const char* value) { m_customerGatewayIdHasBeenSet = true; m_customerGatewayId.assign(value); } /** *

The ID of the customer gateway.

*/ inline CreateVpnConnectionRequest& WithCustomerGatewayId(const Aws::String& value) { SetCustomerGatewayId(value); return *this;} /** *

The ID of the customer gateway.

*/ inline CreateVpnConnectionRequest& WithCustomerGatewayId(Aws::String&& value) { SetCustomerGatewayId(std::move(value)); return *this;} /** *

The ID of the customer gateway.

*/ inline CreateVpnConnectionRequest& WithCustomerGatewayId(const char* value) { SetCustomerGatewayId(value); return *this;} /** *

The type of VPN connection (ipsec.1).

*/ inline const Aws::String& GetType() const{ return m_type; } /** *

The type of VPN connection (ipsec.1).

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The type of VPN connection (ipsec.1).

*/ inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The type of VPN connection (ipsec.1).

*/ inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The type of VPN connection (ipsec.1).

*/ inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); } /** *

The type of VPN connection (ipsec.1).

*/ inline CreateVpnConnectionRequest& WithType(const Aws::String& value) { SetType(value); return *this;} /** *

The type of VPN connection (ipsec.1).

*/ inline CreateVpnConnectionRequest& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;} /** *

The type of VPN connection (ipsec.1).

*/ inline CreateVpnConnectionRequest& WithType(const char* value) { SetType(value); return *this;} /** *

The ID of the virtual private gateway. If you specify a virtual private * gateway, you cannot specify a transit gateway.

*/ inline const Aws::String& GetVpnGatewayId() const{ return m_vpnGatewayId; } /** *

The ID of the virtual private gateway. If you specify a virtual private * gateway, you cannot specify a transit gateway.

*/ inline bool VpnGatewayIdHasBeenSet() const { return m_vpnGatewayIdHasBeenSet; } /** *

The ID of the virtual private gateway. If you specify a virtual private * gateway, you cannot specify a transit gateway.

*/ inline void SetVpnGatewayId(const Aws::String& value) { m_vpnGatewayIdHasBeenSet = true; m_vpnGatewayId = value; } /** *

The ID of the virtual private gateway. If you specify a virtual private * gateway, you cannot specify a transit gateway.

*/ inline void SetVpnGatewayId(Aws::String&& value) { m_vpnGatewayIdHasBeenSet = true; m_vpnGatewayId = std::move(value); } /** *

The ID of the virtual private gateway. If you specify a virtual private * gateway, you cannot specify a transit gateway.

*/ inline void SetVpnGatewayId(const char* value) { m_vpnGatewayIdHasBeenSet = true; m_vpnGatewayId.assign(value); } /** *

The ID of the virtual private gateway. If you specify a virtual private * gateway, you cannot specify a transit gateway.

*/ inline CreateVpnConnectionRequest& WithVpnGatewayId(const Aws::String& value) { SetVpnGatewayId(value); return *this;} /** *

The ID of the virtual private gateway. If you specify a virtual private * gateway, you cannot specify a transit gateway.

*/ inline CreateVpnConnectionRequest& WithVpnGatewayId(Aws::String&& value) { SetVpnGatewayId(std::move(value)); return *this;} /** *

The ID of the virtual private gateway. If you specify a virtual private * gateway, you cannot specify a transit gateway.

*/ inline CreateVpnConnectionRequest& WithVpnGatewayId(const char* value) { SetVpnGatewayId(value); return *this;} /** *

The ID of the transit gateway. If you specify a transit gateway, you cannot * specify a virtual private gateway.

*/ inline const Aws::String& GetTransitGatewayId() const{ return m_transitGatewayId; } /** *

The ID of the transit gateway. If you specify a transit gateway, you cannot * specify a virtual private gateway.

*/ inline bool TransitGatewayIdHasBeenSet() const { return m_transitGatewayIdHasBeenSet; } /** *

The ID of the transit gateway. If you specify a transit gateway, you cannot * specify a virtual private gateway.

*/ inline void SetTransitGatewayId(const Aws::String& value) { m_transitGatewayIdHasBeenSet = true; m_transitGatewayId = value; } /** *

The ID of the transit gateway. If you specify a transit gateway, you cannot * specify a virtual private gateway.

*/ inline void SetTransitGatewayId(Aws::String&& value) { m_transitGatewayIdHasBeenSet = true; m_transitGatewayId = std::move(value); } /** *

The ID of the transit gateway. If you specify a transit gateway, you cannot * specify a virtual private gateway.

*/ inline void SetTransitGatewayId(const char* value) { m_transitGatewayIdHasBeenSet = true; m_transitGatewayId.assign(value); } /** *

The ID of the transit gateway. If you specify a transit gateway, you cannot * specify a virtual private gateway.

*/ inline CreateVpnConnectionRequest& WithTransitGatewayId(const Aws::String& value) { SetTransitGatewayId(value); return *this;} /** *

The ID of the transit gateway. If you specify a transit gateway, you cannot * specify a virtual private gateway.

*/ inline CreateVpnConnectionRequest& WithTransitGatewayId(Aws::String&& value) { SetTransitGatewayId(std::move(value)); return *this;} /** *

The ID of the transit gateway. If you specify a transit gateway, you cannot * specify a virtual private gateway.

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

The options for the VPN connection.

*/ inline const VpnConnectionOptionsSpecification& GetOptions() const{ return m_options; } /** *

The options for the VPN connection.

*/ inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; } /** *

The options for the VPN connection.

*/ inline void SetOptions(const VpnConnectionOptionsSpecification& value) { m_optionsHasBeenSet = true; m_options = value; } /** *

The options for the VPN connection.

*/ inline void SetOptions(VpnConnectionOptionsSpecification&& value) { m_optionsHasBeenSet = true; m_options = std::move(value); } /** *

The options for the VPN connection.

*/ inline CreateVpnConnectionRequest& WithOptions(const VpnConnectionOptionsSpecification& value) { SetOptions(value); return *this;} /** *

The options for the VPN connection.

*/ inline CreateVpnConnectionRequest& WithOptions(VpnConnectionOptionsSpecification&& value) { SetOptions(std::move(value)); return *this;} /** *

The tags to apply to the VPN connection.

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

The tags to apply to the VPN connection.

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

The tags to apply to the VPN connection.

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

The tags to apply to the VPN connection.

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

The tags to apply to the VPN connection.

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

The tags to apply to the VPN connection.

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

The tags to apply to the VPN connection.

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

The tags to apply to the VPN connection.

*/ inline CreateVpnConnectionRequest& AddTagSpecifications(TagSpecification&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(std::move(value)); return *this; } private: Aws::String m_customerGatewayId; bool m_customerGatewayIdHasBeenSet = false; Aws::String m_type; bool m_typeHasBeenSet = false; Aws::String m_vpnGatewayId; bool m_vpnGatewayIdHasBeenSet = false; Aws::String m_transitGatewayId; bool m_transitGatewayIdHasBeenSet = false; bool m_dryRun; bool m_dryRunHasBeenSet = false; VpnConnectionOptionsSpecification m_options; bool m_optionsHasBeenSet = false; Aws::Vector m_tagSpecifications; bool m_tagSpecificationsHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws