AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateVpnGatewayRequest.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ec2/model/GatewayType.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/ec2/model/TagSpecification.h>
13#include <utility>
14
15namespace Aws
16{
17namespace EC2
18{
19namespace Model
20{
21
28 {
29 public:
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CreateVpnGateway"; }
37
38 AWS_EC2_API Aws::String SerializePayload() const override;
39
40 protected:
41 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
42
43 public:
44
46
49 inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; }
50 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
51 inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; }
52 inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); }
53 inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); }
54 inline CreateVpnGatewayRequest& WithAvailabilityZone(const Aws::String& value) { SetAvailabilityZone(value); return *this;}
55 inline CreateVpnGatewayRequest& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;}
56 inline CreateVpnGatewayRequest& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;}
58
60
63 inline const GatewayType& GetType() const{ return m_type; }
64 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
65 inline void SetType(const GatewayType& value) { m_typeHasBeenSet = true; m_type = value; }
66 inline void SetType(GatewayType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
67 inline CreateVpnGatewayRequest& WithType(const GatewayType& value) { SetType(value); return *this;}
68 inline CreateVpnGatewayRequest& WithType(GatewayType&& value) { SetType(std::move(value)); return *this;}
70
72
75 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const{ return m_tagSpecifications; }
76 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
77 inline void SetTagSpecifications(const Aws::Vector<TagSpecification>& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = value; }
78 inline void SetTagSpecifications(Aws::Vector<TagSpecification>&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::move(value); }
81 inline CreateVpnGatewayRequest& AddTagSpecifications(const TagSpecification& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(value); return *this; }
82 inline CreateVpnGatewayRequest& AddTagSpecifications(TagSpecification&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(std::move(value)); return *this; }
84
86
92 inline long long GetAmazonSideAsn() const{ return m_amazonSideAsn; }
93 inline bool AmazonSideAsnHasBeenSet() const { return m_amazonSideAsnHasBeenSet; }
94 inline void SetAmazonSideAsn(long long value) { m_amazonSideAsnHasBeenSet = true; m_amazonSideAsn = value; }
95 inline CreateVpnGatewayRequest& WithAmazonSideAsn(long long value) { SetAmazonSideAsn(value); return *this;}
97
99
105 inline bool GetDryRun() const{ return m_dryRun; }
106 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
107 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
108 inline CreateVpnGatewayRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
110 private:
111
112 Aws::String m_availabilityZone;
113 bool m_availabilityZoneHasBeenSet = false;
114
115 GatewayType m_type;
116 bool m_typeHasBeenSet = false;
117
118 Aws::Vector<TagSpecification> m_tagSpecifications;
119 bool m_tagSpecificationsHasBeenSet = false;
120
121 long long m_amazonSideAsn;
122 bool m_amazonSideAsnHasBeenSet = false;
123
124 bool m_dryRun;
125 bool m_dryRunHasBeenSet = false;
126 };
127
128} // namespace Model
129} // namespace EC2
130} // namespace Aws
AWS_EC2_API Aws::String SerializePayload() const override
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
CreateVpnGatewayRequest & WithType(GatewayType &&value)
CreateVpnGatewayRequest & WithAmazonSideAsn(long long value)
virtual const char * GetServiceRequestName() const override
CreateVpnGatewayRequest & WithType(const GatewayType &value)
CreateVpnGatewayRequest & WithAvailabilityZone(const Aws::String &value)
CreateVpnGatewayRequest & WithAvailabilityZone(const char *value)
CreateVpnGatewayRequest & AddTagSpecifications(TagSpecification &&value)
CreateVpnGatewayRequest & AddTagSpecifications(const TagSpecification &value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateVpnGatewayRequest & WithTagSpecifications(const Aws::Vector< TagSpecification > &value)
CreateVpnGatewayRequest & WithTagSpecifications(Aws::Vector< TagSpecification > &&value)
CreateVpnGatewayRequest & WithDryRun(bool value)
void SetAvailabilityZone(const Aws::String &value)
void SetTagSpecifications(Aws::Vector< TagSpecification > &&value)
CreateVpnGatewayRequest & WithAvailabilityZone(Aws::String &&value)
void SetTagSpecifications(const Aws::Vector< TagSpecification > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector