This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-ec2/include/aws/ec2/model/CreateVpnGatewayRequest.h

244 lines
9.4 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/ec2/EC2_EXPORTS.h>
#include <aws/ec2/EC2Request.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/ec2/model/GatewayType.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/ec2/model/TagSpecification.h>
#include <utility>
namespace Aws
{
namespace EC2
{
namespace Model
{
/**
* <p>Contains the parameters for CreateVpnGateway.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpnGatewayRequest">AWS
* API Reference</a></p>
*/
class AWS_EC2_API CreateVpnGatewayRequest : public EC2Request
{
public:
CreateVpnGatewayRequest();
// 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 "CreateVpnGateway"; }
Aws::String SerializePayload() const override;
protected:
void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
public:
/**
* <p>The Availability Zone for the virtual private gateway.</p>
*/
inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; }
/**
* <p>The Availability Zone for the virtual private gateway.</p>
*/
inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
/**
* <p>The Availability Zone for the virtual private gateway.</p>
*/
inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; }
/**
* <p>The Availability Zone for the virtual private gateway.</p>
*/
inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); }
/**
* <p>The Availability Zone for the virtual private gateway.</p>
*/
inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); }
/**
* <p>The Availability Zone for the virtual private gateway.</p>
*/
inline CreateVpnGatewayRequest& WithAvailabilityZone(const Aws::String& value) { SetAvailabilityZone(value); return *this;}
/**
* <p>The Availability Zone for the virtual private gateway.</p>
*/
inline CreateVpnGatewayRequest& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;}
/**
* <p>The Availability Zone for the virtual private gateway.</p>
*/
inline CreateVpnGatewayRequest& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;}
/**
* <p>The type of VPN connection this virtual private gateway supports.</p>
*/
inline const GatewayType& GetType() const{ return m_type; }
/**
* <p>The type of VPN connection this virtual private gateway supports.</p>
*/
inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
/**
* <p>The type of VPN connection this virtual private gateway supports.</p>
*/
inline void SetType(const GatewayType& value) { m_typeHasBeenSet = true; m_type = value; }
/**
* <p>The type of VPN connection this virtual private gateway supports.</p>
*/
inline void SetType(GatewayType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
/**
* <p>The type of VPN connection this virtual private gateway supports.</p>
*/
inline CreateVpnGatewayRequest& WithType(const GatewayType& value) { SetType(value); return *this;}
/**
* <p>The type of VPN connection this virtual private gateway supports.</p>
*/
inline CreateVpnGatewayRequest& WithType(GatewayType&& value) { SetType(std::move(value)); return *this;}
/**
* <p>The tags to apply to the virtual private gateway.</p>
*/
inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const{ return m_tagSpecifications; }
/**
* <p>The tags to apply to the virtual private gateway.</p>
*/
inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
/**
* <p>The tags to apply to the virtual private gateway.</p>
*/
inline void SetTagSpecifications(const Aws::Vector<TagSpecification>& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = value; }
/**
* <p>The tags to apply to the virtual private gateway.</p>
*/
inline void SetTagSpecifications(Aws::Vector<TagSpecification>&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::move(value); }
/**
* <p>The tags to apply to the virtual private gateway.</p>
*/
inline CreateVpnGatewayRequest& WithTagSpecifications(const Aws::Vector<TagSpecification>& value) { SetTagSpecifications(value); return *this;}
/**
* <p>The tags to apply to the virtual private gateway.</p>
*/
inline CreateVpnGatewayRequest& WithTagSpecifications(Aws::Vector<TagSpecification>&& value) { SetTagSpecifications(std::move(value)); return *this;}
/**
* <p>The tags to apply to the virtual private gateway.</p>
*/
inline CreateVpnGatewayRequest& AddTagSpecifications(const TagSpecification& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(value); return *this; }
/**
* <p>The tags to apply to the virtual private gateway.</p>
*/
inline CreateVpnGatewayRequest& AddTagSpecifications(TagSpecification&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(std::move(value)); return *this; }
/**
* <p>A private Autonomous System Number (ASN) for the Amazon side of a BGP
* session. If you're using a 16-bit ASN, it must be in the 64512 to 65534 range.
* If you're using a 32-bit ASN, it must be in the 4200000000 to 4294967294
* range.</p> <p>Default: 64512</p>
*/
inline long long GetAmazonSideAsn() const{ return m_amazonSideAsn; }
/**
* <p>A private Autonomous System Number (ASN) for the Amazon side of a BGP
* session. If you're using a 16-bit ASN, it must be in the 64512 to 65534 range.
* If you're using a 32-bit ASN, it must be in the 4200000000 to 4294967294
* range.</p> <p>Default: 64512</p>
*/
inline bool AmazonSideAsnHasBeenSet() const { return m_amazonSideAsnHasBeenSet; }
/**
* <p>A private Autonomous System Number (ASN) for the Amazon side of a BGP
* session. If you're using a 16-bit ASN, it must be in the 64512 to 65534 range.
* If you're using a 32-bit ASN, it must be in the 4200000000 to 4294967294
* range.</p> <p>Default: 64512</p>
*/
inline void SetAmazonSideAsn(long long value) { m_amazonSideAsnHasBeenSet = true; m_amazonSideAsn = value; }
/**
* <p>A private Autonomous System Number (ASN) for the Amazon side of a BGP
* session. If you're using a 16-bit ASN, it must be in the 64512 to 65534 range.
* If you're using a 32-bit ASN, it must be in the 4200000000 to 4294967294
* range.</p> <p>Default: 64512</p>
*/
inline CreateVpnGatewayRequest& WithAmazonSideAsn(long long value) { SetAmazonSideAsn(value); return *this;}
/**
* <p>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 <code>DryRunOperation</code>.
* Otherwise, it is <code>UnauthorizedOperation</code>.</p>
*/
inline bool GetDryRun() const{ return m_dryRun; }
/**
* <p>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 <code>DryRunOperation</code>.
* Otherwise, it is <code>UnauthorizedOperation</code>.</p>
*/
inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
/**
* <p>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 <code>DryRunOperation</code>.
* Otherwise, it is <code>UnauthorizedOperation</code>.</p>
*/
inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
/**
* <p>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 <code>DryRunOperation</code>.
* Otherwise, it is <code>UnauthorizedOperation</code>.</p>
*/
inline CreateVpnGatewayRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
private:
Aws::String m_availabilityZone;
bool m_availabilityZoneHasBeenSet;
GatewayType m_type;
bool m_typeHasBeenSet;
Aws::Vector<TagSpecification> m_tagSpecifications;
bool m_tagSpecificationsHasBeenSet;
long long m_amazonSideAsn;
bool m_amazonSideAsnHasBeenSet;
bool m_dryRun;
bool m_dryRunHasBeenSet;
};
} // namespace Model
} // namespace EC2
} // namespace Aws