AWS SDK for C++  1.9.71
AWS SDK for C++
CustomerGateway.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
11 #include <aws/ec2/model/Tag.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Xml
19 {
20  class XmlNode;
21 } // namespace Xml
22 } // namespace Utils
23 namespace EC2
24 {
25 namespace Model
26 {
27 
34  {
35  public:
39 
40  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41  void OutputToStream(Aws::OStream& oStream, const char* location) const;
42 
43 
48  inline const Aws::String& GetBgpAsn() const{ return m_bgpAsn; }
49 
54  inline bool BgpAsnHasBeenSet() const { return m_bgpAsnHasBeenSet; }
55 
60  inline void SetBgpAsn(const Aws::String& value) { m_bgpAsnHasBeenSet = true; m_bgpAsn = value; }
61 
66  inline void SetBgpAsn(Aws::String&& value) { m_bgpAsnHasBeenSet = true; m_bgpAsn = std::move(value); }
67 
72  inline void SetBgpAsn(const char* value) { m_bgpAsnHasBeenSet = true; m_bgpAsn.assign(value); }
73 
78  inline CustomerGateway& WithBgpAsn(const Aws::String& value) { SetBgpAsn(value); return *this;}
79 
84  inline CustomerGateway& WithBgpAsn(Aws::String&& value) { SetBgpAsn(std::move(value)); return *this;}
85 
90  inline CustomerGateway& WithBgpAsn(const char* value) { SetBgpAsn(value); return *this;}
91 
92 
96  inline const Aws::String& GetCustomerGatewayId() const{ return m_customerGatewayId; }
97 
101  inline bool CustomerGatewayIdHasBeenSet() const { return m_customerGatewayIdHasBeenSet; }
102 
106  inline void SetCustomerGatewayId(const Aws::String& value) { m_customerGatewayIdHasBeenSet = true; m_customerGatewayId = value; }
107 
111  inline void SetCustomerGatewayId(Aws::String&& value) { m_customerGatewayIdHasBeenSet = true; m_customerGatewayId = std::move(value); }
112 
116  inline void SetCustomerGatewayId(const char* value) { m_customerGatewayIdHasBeenSet = true; m_customerGatewayId.assign(value); }
117 
121  inline CustomerGateway& WithCustomerGatewayId(const Aws::String& value) { SetCustomerGatewayId(value); return *this;}
122 
126  inline CustomerGateway& WithCustomerGatewayId(Aws::String&& value) { SetCustomerGatewayId(std::move(value)); return *this;}
127 
131  inline CustomerGateway& WithCustomerGatewayId(const char* value) { SetCustomerGatewayId(value); return *this;}
132 
133 
138  inline const Aws::String& GetIpAddress() const{ return m_ipAddress; }
139 
144  inline bool IpAddressHasBeenSet() const { return m_ipAddressHasBeenSet; }
145 
150  inline void SetIpAddress(const Aws::String& value) { m_ipAddressHasBeenSet = true; m_ipAddress = value; }
151 
156  inline void SetIpAddress(Aws::String&& value) { m_ipAddressHasBeenSet = true; m_ipAddress = std::move(value); }
157 
162  inline void SetIpAddress(const char* value) { m_ipAddressHasBeenSet = true; m_ipAddress.assign(value); }
163 
168  inline CustomerGateway& WithIpAddress(const Aws::String& value) { SetIpAddress(value); return *this;}
169 
174  inline CustomerGateway& WithIpAddress(Aws::String&& value) { SetIpAddress(std::move(value)); return *this;}
175 
180  inline CustomerGateway& WithIpAddress(const char* value) { SetIpAddress(value); return *this;}
181 
182 
186  inline const Aws::String& GetCertificateArn() const{ return m_certificateArn; }
187 
191  inline bool CertificateArnHasBeenSet() const { return m_certificateArnHasBeenSet; }
192 
196  inline void SetCertificateArn(const Aws::String& value) { m_certificateArnHasBeenSet = true; m_certificateArn = value; }
197 
201  inline void SetCertificateArn(Aws::String&& value) { m_certificateArnHasBeenSet = true; m_certificateArn = std::move(value); }
202 
206  inline void SetCertificateArn(const char* value) { m_certificateArnHasBeenSet = true; m_certificateArn.assign(value); }
207 
211  inline CustomerGateway& WithCertificateArn(const Aws::String& value) { SetCertificateArn(value); return *this;}
212 
216  inline CustomerGateway& WithCertificateArn(Aws::String&& value) { SetCertificateArn(std::move(value)); return *this;}
217 
221  inline CustomerGateway& WithCertificateArn(const char* value) { SetCertificateArn(value); return *this;}
222 
223 
228  inline const Aws::String& GetState() const{ return m_state; }
229 
234  inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
235 
240  inline void SetState(const Aws::String& value) { m_stateHasBeenSet = true; m_state = value; }
241 
246  inline void SetState(Aws::String&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
247 
252  inline void SetState(const char* value) { m_stateHasBeenSet = true; m_state.assign(value); }
253 
258  inline CustomerGateway& WithState(const Aws::String& value) { SetState(value); return *this;}
259 
264  inline CustomerGateway& WithState(Aws::String&& value) { SetState(std::move(value)); return *this;}
265 
270  inline CustomerGateway& WithState(const char* value) { SetState(value); return *this;}
271 
272 
277  inline const Aws::String& GetType() const{ return m_type; }
278 
283  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
284 
289  inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
290 
295  inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
296 
301  inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
302 
307  inline CustomerGateway& WithType(const Aws::String& value) { SetType(value); return *this;}
308 
313  inline CustomerGateway& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
314 
319  inline CustomerGateway& WithType(const char* value) { SetType(value); return *this;}
320 
321 
325  inline const Aws::String& GetDeviceName() const{ return m_deviceName; }
326 
330  inline bool DeviceNameHasBeenSet() const { return m_deviceNameHasBeenSet; }
331 
335  inline void SetDeviceName(const Aws::String& value) { m_deviceNameHasBeenSet = true; m_deviceName = value; }
336 
340  inline void SetDeviceName(Aws::String&& value) { m_deviceNameHasBeenSet = true; m_deviceName = std::move(value); }
341 
345  inline void SetDeviceName(const char* value) { m_deviceNameHasBeenSet = true; m_deviceName.assign(value); }
346 
350  inline CustomerGateway& WithDeviceName(const Aws::String& value) { SetDeviceName(value); return *this;}
351 
355  inline CustomerGateway& WithDeviceName(Aws::String&& value) { SetDeviceName(std::move(value)); return *this;}
356 
360  inline CustomerGateway& WithDeviceName(const char* value) { SetDeviceName(value); return *this;}
361 
362 
366  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
367 
371  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
372 
376  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
377 
381  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
382 
386  inline CustomerGateway& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
387 
391  inline CustomerGateway& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
392 
396  inline CustomerGateway& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
397 
401  inline CustomerGateway& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
402 
403  private:
404 
405  Aws::String m_bgpAsn;
406  bool m_bgpAsnHasBeenSet;
407 
408  Aws::String m_customerGatewayId;
409  bool m_customerGatewayIdHasBeenSet;
410 
411  Aws::String m_ipAddress;
412  bool m_ipAddressHasBeenSet;
413 
414  Aws::String m_certificateArn;
415  bool m_certificateArnHasBeenSet;
416 
417  Aws::String m_state;
418  bool m_stateHasBeenSet;
419 
420  Aws::String m_type;
421  bool m_typeHasBeenSet;
422 
423  Aws::String m_deviceName;
424  bool m_deviceNameHasBeenSet;
425 
426  Aws::Vector<Tag> m_tags;
427  bool m_tagsHasBeenSet;
428  };
429 
430 } // namespace Model
431 } // namespace EC2
432 } // namespace Aws
Aws::EC2::Model::CustomerGateway::WithTags
CustomerGateway & WithTags(Aws::Vector< Tag > &&value)
Definition: CustomerGateway.h:391
Aws::EC2::Model::CustomerGateway::WithIpAddress
CustomerGateway & WithIpAddress(Aws::String &&value)
Definition: CustomerGateway.h:174
Aws::EC2::Model::CustomerGateway::WithState
CustomerGateway & WithState(Aws::String &&value)
Definition: CustomerGateway.h:264
Aws::EC2::Model::Tag
Definition: Tag.h:32
Aws::EC2::Model::CustomerGateway::SetState
void SetState(Aws::String &&value)
Definition: CustomerGateway.h:246
Aws::EC2::Model::CustomerGateway::SetCertificateArn
void SetCertificateArn(const char *value)
Definition: CustomerGateway.h:206
Aws::EC2::Model::CustomerGateway::WithBgpAsn
CustomerGateway & WithBgpAsn(const Aws::String &value)
Definition: CustomerGateway.h:78
Aws::EC2::Model::CustomerGateway::CustomerGateway
CustomerGateway()
Aws::EC2::Model::CustomerGateway::WithBgpAsn
CustomerGateway & WithBgpAsn(Aws::String &&value)
Definition: CustomerGateway.h:84
Aws::EC2::Model::CustomerGateway::WithCertificateArn
CustomerGateway & WithCertificateArn(const Aws::String &value)
Definition: CustomerGateway.h:211
Aws::EC2::Model::CustomerGateway::GetType
const Aws::String & GetType() const
Definition: CustomerGateway.h:277
Aws::EC2::Model::CustomerGateway::SetState
void SetState(const char *value)
Definition: CustomerGateway.h:252
Aws::EC2::Model::CustomerGateway::AddTags
CustomerGateway & AddTags(const Tag &value)
Definition: CustomerGateway.h:396
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::CustomerGateway::WithCertificateArn
CustomerGateway & WithCertificateArn(Aws::String &&value)
Definition: CustomerGateway.h:216
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::CustomerGateway::GetBgpAsn
const Aws::String & GetBgpAsn() const
Definition: CustomerGateway.h:48
AWSStreamFwd.h
Aws::EC2::Model::CustomerGateway::SetDeviceName
void SetDeviceName(Aws::String &&value)
Definition: CustomerGateway.h:340
Aws::EC2::Model::CustomerGateway::SetIpAddress
void SetIpAddress(const char *value)
Definition: CustomerGateway.h:162
Aws::EC2::Model::CustomerGateway::SetIpAddress
void SetIpAddress(const Aws::String &value)
Definition: CustomerGateway.h:150
AWSVector.h
Tag.h
Aws::EC2::Model::CustomerGateway::SetCertificateArn
void SetCertificateArn(Aws::String &&value)
Definition: CustomerGateway.h:201
Aws::EC2::Model::CustomerGateway::SetType
void SetType(const char *value)
Definition: CustomerGateway.h:301
Aws::EC2::Model::CustomerGateway::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CustomerGateway.h:366
Aws::EC2::Model::CustomerGateway::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CustomerGateway.h:381
Aws::EC2::Model::CustomerGateway::WithDeviceName
CustomerGateway & WithDeviceName(Aws::String &&value)
Definition: CustomerGateway.h:355
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::CustomerGateway::SetCustomerGatewayId
void SetCustomerGatewayId(Aws::String &&value)
Definition: CustomerGateway.h:111
Aws::EC2::Model::CustomerGateway::StateHasBeenSet
bool StateHasBeenSet() const
Definition: CustomerGateway.h:234
Aws::EC2::Model::CustomerGateway::SetBgpAsn
void SetBgpAsn(const Aws::String &value)
Definition: CustomerGateway.h:60
Aws::EC2::Model::CustomerGateway::WithDeviceName
CustomerGateway & WithDeviceName(const char *value)
Definition: CustomerGateway.h:360
Aws::EC2::Model::CustomerGateway::WithTags
CustomerGateway & WithTags(const Aws::Vector< Tag > &value)
Definition: CustomerGateway.h:386
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::CustomerGateway::GetCustomerGatewayId
const Aws::String & GetCustomerGatewayId() const
Definition: CustomerGateway.h:96
Aws::EC2::Model::CustomerGateway::BgpAsnHasBeenSet
bool BgpAsnHasBeenSet() const
Definition: CustomerGateway.h:54
Aws::EC2::Model::CustomerGateway::WithCertificateArn
CustomerGateway & WithCertificateArn(const char *value)
Definition: CustomerGateway.h:221
Aws::EC2::Model::CustomerGateway::CustomerGatewayIdHasBeenSet
bool CustomerGatewayIdHasBeenSet() const
Definition: CustomerGateway.h:101
Aws::EC2::Model::CustomerGateway::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CustomerGateway.h:371
Aws::EC2::Model::CustomerGateway::WithState
CustomerGateway & WithState(const char *value)
Definition: CustomerGateway.h:270
Aws::EC2::Model::CustomerGateway::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::CustomerGateway::DeviceNameHasBeenSet
bool DeviceNameHasBeenSet() const
Definition: CustomerGateway.h:330
Aws::EC2::Model::CustomerGateway::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: CustomerGateway.h:283
Aws::EC2::Model::CustomerGateway::SetBgpAsn
void SetBgpAsn(const char *value)
Definition: CustomerGateway.h:72
AWSString.h
Aws::EC2::Model::CustomerGateway::SetCustomerGatewayId
void SetCustomerGatewayId(const Aws::String &value)
Definition: CustomerGateway.h:106
Aws::EC2::Model::CustomerGateway::WithType
CustomerGateway & WithType(const Aws::String &value)
Definition: CustomerGateway.h:307
Aws::EC2::Model::CustomerGateway::WithType
CustomerGateway & WithType(const char *value)
Definition: CustomerGateway.h:319
Aws::EC2::Model::CustomerGateway::WithCustomerGatewayId
CustomerGateway & WithCustomerGatewayId(Aws::String &&value)
Definition: CustomerGateway.h:126
Aws::EC2::Model::CustomerGateway::IpAddressHasBeenSet
bool IpAddressHasBeenSet() const
Definition: CustomerGateway.h:144
Aws::EC2::Model::CustomerGateway::GetState
const Aws::String & GetState() const
Definition: CustomerGateway.h:228
Aws::EC2::Model::CustomerGateway::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::CustomerGateway::WithBgpAsn
CustomerGateway & WithBgpAsn(const char *value)
Definition: CustomerGateway.h:90
Aws::EC2::Model::CustomerGateway::WithIpAddress
CustomerGateway & WithIpAddress(const char *value)
Definition: CustomerGateway.h:180
Aws::EC2::Model::CustomerGateway::WithIpAddress
CustomerGateway & WithIpAddress(const Aws::String &value)
Definition: CustomerGateway.h:168
Aws::EC2::Model::CustomerGateway::WithCustomerGatewayId
CustomerGateway & WithCustomerGatewayId(const Aws::String &value)
Definition: CustomerGateway.h:121
Aws::EC2::Model::CustomerGateway::SetIpAddress
void SetIpAddress(Aws::String &&value)
Definition: CustomerGateway.h:156
Aws::EC2::Model::CustomerGateway::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CustomerGateway.h:376
Aws::EC2::Model::CustomerGateway::WithType
CustomerGateway & WithType(Aws::String &&value)
Definition: CustomerGateway.h:313
Aws::EC2::Model::CustomerGateway::operator=
CustomerGateway & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::CustomerGateway::SetCustomerGatewayId
void SetCustomerGatewayId(const char *value)
Definition: CustomerGateway.h:116
Aws::EC2::Model::CustomerGateway::GetCertificateArn
const Aws::String & GetCertificateArn() const
Definition: CustomerGateway.h:186
Aws::EC2::Model::CustomerGateway::AddTags
CustomerGateway & AddTags(Tag &&value)
Definition: CustomerGateway.h:401
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::CustomerGateway::WithCustomerGatewayId
CustomerGateway & WithCustomerGatewayId(const char *value)
Definition: CustomerGateway.h:131
Aws::EC2::Model::CustomerGateway::WithState
CustomerGateway & WithState(const Aws::String &value)
Definition: CustomerGateway.h:258
Aws::EC2::Model::CustomerGateway::GetDeviceName
const Aws::String & GetDeviceName() const
Definition: CustomerGateway.h:325
Aws::EC2::Model::CustomerGateway::SetType
void SetType(Aws::String &&value)
Definition: CustomerGateway.h:295
Aws::EC2::Model::CustomerGateway::SetCertificateArn
void SetCertificateArn(const Aws::String &value)
Definition: CustomerGateway.h:196
Aws::EC2::Model::CustomerGateway::CertificateArnHasBeenSet
bool CertificateArnHasBeenSet() const
Definition: CustomerGateway.h:191
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::CustomerGateway::SetType
void SetType(const Aws::String &value)
Definition: CustomerGateway.h:289
Aws::EC2::Model::CustomerGateway::GetIpAddress
const Aws::String & GetIpAddress() const
Definition: CustomerGateway.h:138
Aws::EC2::Model::CustomerGateway
Definition: CustomerGateway.h:34
EC2_EXPORTS.h
Aws::EC2::Model::CustomerGateway::WithDeviceName
CustomerGateway & WithDeviceName(const Aws::String &value)
Definition: CustomerGateway.h:350
Aws::EC2::Model::CustomerGateway::SetDeviceName
void SetDeviceName(const char *value)
Definition: CustomerGateway.h:345
Aws::EC2::Model::CustomerGateway::SetState
void SetState(const Aws::String &value)
Definition: CustomerGateway.h:240
Aws::EC2::Model::CustomerGateway::SetBgpAsn
void SetBgpAsn(Aws::String &&value)
Definition: CustomerGateway.h:66
Aws::EC2::Model::CustomerGateway::SetDeviceName
void SetDeviceName(const Aws::String &value)
Definition: CustomerGateway.h:335
Aws::EC2::Model::CustomerGateway::CustomerGateway
CustomerGateway(const Aws::Utils::Xml::XmlNode &xmlNode)