AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateCustomerGatewayRequest.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
29 {
30 public:
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "CreateCustomerGateway"; }
38
39 AWS_EC2_API Aws::String SerializePayload() const override;
40
41 protected:
42 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
43
44 public:
45
47
55 inline int GetBgpAsn() const{ return m_bgpAsn; }
56 inline bool BgpAsnHasBeenSet() const { return m_bgpAsnHasBeenSet; }
57 inline void SetBgpAsn(int value) { m_bgpAsnHasBeenSet = true; m_bgpAsn = value; }
58 inline CreateCustomerGatewayRequest& WithBgpAsn(int value) { SetBgpAsn(value); return *this;}
60
62
66 inline const Aws::String& GetPublicIp() const{ return m_publicIp; }
67 inline bool PublicIpHasBeenSet() const { return m_publicIpHasBeenSet; }
68 inline void SetPublicIp(const Aws::String& value) { m_publicIpHasBeenSet = true; m_publicIp = value; }
69 inline void SetPublicIp(Aws::String&& value) { m_publicIpHasBeenSet = true; m_publicIp = std::move(value); }
70 inline void SetPublicIp(const char* value) { m_publicIpHasBeenSet = true; m_publicIp.assign(value); }
71 inline CreateCustomerGatewayRequest& WithPublicIp(const Aws::String& value) { SetPublicIp(value); return *this;}
72 inline CreateCustomerGatewayRequest& WithPublicIp(Aws::String&& value) { SetPublicIp(std::move(value)); return *this;}
73 inline CreateCustomerGatewayRequest& WithPublicIp(const char* value) { SetPublicIp(value); return *this;}
75
77
80 inline const Aws::String& GetCertificateArn() const{ return m_certificateArn; }
81 inline bool CertificateArnHasBeenSet() const { return m_certificateArnHasBeenSet; }
82 inline void SetCertificateArn(const Aws::String& value) { m_certificateArnHasBeenSet = true; m_certificateArn = value; }
83 inline void SetCertificateArn(Aws::String&& value) { m_certificateArnHasBeenSet = true; m_certificateArn = std::move(value); }
84 inline void SetCertificateArn(const char* value) { m_certificateArnHasBeenSet = true; m_certificateArn.assign(value); }
86 inline CreateCustomerGatewayRequest& WithCertificateArn(Aws::String&& value) { SetCertificateArn(std::move(value)); return *this;}
87 inline CreateCustomerGatewayRequest& WithCertificateArn(const char* value) { SetCertificateArn(value); return *this;}
89
91
95 inline const GatewayType& GetType() const{ return m_type; }
96 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
97 inline void SetType(const GatewayType& value) { m_typeHasBeenSet = true; m_type = value; }
98 inline void SetType(GatewayType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
99 inline CreateCustomerGatewayRequest& WithType(const GatewayType& value) { SetType(value); return *this;}
100 inline CreateCustomerGatewayRequest& WithType(GatewayType&& value) { SetType(std::move(value)); return *this;}
102
104
107 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const{ return m_tagSpecifications; }
108 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
109 inline void SetTagSpecifications(const Aws::Vector<TagSpecification>& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = value; }
110 inline void SetTagSpecifications(Aws::Vector<TagSpecification>&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::move(value); }
113 inline CreateCustomerGatewayRequest& AddTagSpecifications(const TagSpecification& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(value); return *this; }
114 inline CreateCustomerGatewayRequest& AddTagSpecifications(TagSpecification&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(std::move(value)); return *this; }
116
118
122 inline const Aws::String& GetDeviceName() const{ return m_deviceName; }
123 inline bool DeviceNameHasBeenSet() const { return m_deviceNameHasBeenSet; }
124 inline void SetDeviceName(const Aws::String& value) { m_deviceNameHasBeenSet = true; m_deviceName = value; }
125 inline void SetDeviceName(Aws::String&& value) { m_deviceNameHasBeenSet = true; m_deviceName = std::move(value); }
126 inline void SetDeviceName(const char* value) { m_deviceNameHasBeenSet = true; m_deviceName.assign(value); }
127 inline CreateCustomerGatewayRequest& WithDeviceName(const Aws::String& value) { SetDeviceName(value); return *this;}
128 inline CreateCustomerGatewayRequest& WithDeviceName(Aws::String&& value) { SetDeviceName(std::move(value)); return *this;}
129 inline CreateCustomerGatewayRequest& WithDeviceName(const char* value) { SetDeviceName(value); return *this;}
131
133
140 inline const Aws::String& GetIpAddress() const{ return m_ipAddress; }
141 inline bool IpAddressHasBeenSet() const { return m_ipAddressHasBeenSet; }
142 inline void SetIpAddress(const Aws::String& value) { m_ipAddressHasBeenSet = true; m_ipAddress = value; }
143 inline void SetIpAddress(Aws::String&& value) { m_ipAddressHasBeenSet = true; m_ipAddress = std::move(value); }
144 inline void SetIpAddress(const char* value) { m_ipAddressHasBeenSet = true; m_ipAddress.assign(value); }
145 inline CreateCustomerGatewayRequest& WithIpAddress(const Aws::String& value) { SetIpAddress(value); return *this;}
146 inline CreateCustomerGatewayRequest& WithIpAddress(Aws::String&& value) { SetIpAddress(std::move(value)); return *this;}
147 inline CreateCustomerGatewayRequest& WithIpAddress(const char* value) { SetIpAddress(value); return *this;}
149
151
158 inline long long GetBgpAsnExtended() const{ return m_bgpAsnExtended; }
159 inline bool BgpAsnExtendedHasBeenSet() const { return m_bgpAsnExtendedHasBeenSet; }
160 inline void SetBgpAsnExtended(long long value) { m_bgpAsnExtendedHasBeenSet = true; m_bgpAsnExtended = value; }
161 inline CreateCustomerGatewayRequest& WithBgpAsnExtended(long long value) { SetBgpAsnExtended(value); return *this;}
163
165
171 inline bool GetDryRun() const{ return m_dryRun; }
172 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
173 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
174 inline CreateCustomerGatewayRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
176 private:
177
178 int m_bgpAsn;
179 bool m_bgpAsnHasBeenSet = false;
180
181 Aws::String m_publicIp;
182 bool m_publicIpHasBeenSet = false;
183
184 Aws::String m_certificateArn;
185 bool m_certificateArnHasBeenSet = false;
186
187 GatewayType m_type;
188 bool m_typeHasBeenSet = false;
189
190 Aws::Vector<TagSpecification> m_tagSpecifications;
191 bool m_tagSpecificationsHasBeenSet = false;
192
193 Aws::String m_deviceName;
194 bool m_deviceNameHasBeenSet = false;
195
196 Aws::String m_ipAddress;
197 bool m_ipAddressHasBeenSet = false;
198
199 long long m_bgpAsnExtended;
200 bool m_bgpAsnExtendedHasBeenSet = false;
201
202 bool m_dryRun;
203 bool m_dryRunHasBeenSet = false;
204 };
205
206} // namespace Model
207} // namespace EC2
208} // namespace Aws
CreateCustomerGatewayRequest & WithType(GatewayType &&value)
CreateCustomerGatewayRequest & WithIpAddress(const char *value)
CreateCustomerGatewayRequest & WithPublicIp(const char *value)
CreateCustomerGatewayRequest & AddTagSpecifications(const TagSpecification &value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateCustomerGatewayRequest & WithDeviceName(const Aws::String &value)
CreateCustomerGatewayRequest & WithTagSpecifications(const Aws::Vector< TagSpecification > &value)
CreateCustomerGatewayRequest & WithDeviceName(const char *value)
CreateCustomerGatewayRequest & WithIpAddress(const Aws::String &value)
CreateCustomerGatewayRequest & WithIpAddress(Aws::String &&value)
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
CreateCustomerGatewayRequest & WithDeviceName(Aws::String &&value)
CreateCustomerGatewayRequest & WithPublicIp(Aws::String &&value)
CreateCustomerGatewayRequest & WithCertificateArn(Aws::String &&value)
CreateCustomerGatewayRequest & WithBgpAsn(int value)
virtual const char * GetServiceRequestName() const override
void SetTagSpecifications(Aws::Vector< TagSpecification > &&value)
CreateCustomerGatewayRequest & WithPublicIp(const Aws::String &value)
CreateCustomerGatewayRequest & AddTagSpecifications(TagSpecification &&value)
void SetTagSpecifications(const Aws::Vector< TagSpecification > &value)
AWS_EC2_API Aws::String SerializePayload() const override
CreateCustomerGatewayRequest & WithType(const GatewayType &value)
CreateCustomerGatewayRequest & WithCertificateArn(const char *value)
CreateCustomerGatewayRequest & WithBgpAsnExtended(long long value)
CreateCustomerGatewayRequest & WithCertificateArn(const Aws::String &value)
CreateCustomerGatewayRequest & WithDryRun(bool value)
CreateCustomerGatewayRequest & WithTagSpecifications(Aws::Vector< TagSpecification > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector