AWS SDK for C++  1.9.69
AWS SDK for C++
LocalGatewayVirtualInterface.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 
47  inline const Aws::String& GetLocalGatewayVirtualInterfaceId() const{ return m_localGatewayVirtualInterfaceId; }
48 
52  inline bool LocalGatewayVirtualInterfaceIdHasBeenSet() const { return m_localGatewayVirtualInterfaceIdHasBeenSet; }
53 
57  inline void SetLocalGatewayVirtualInterfaceId(const Aws::String& value) { m_localGatewayVirtualInterfaceIdHasBeenSet = true; m_localGatewayVirtualInterfaceId = value; }
58 
62  inline void SetLocalGatewayVirtualInterfaceId(Aws::String&& value) { m_localGatewayVirtualInterfaceIdHasBeenSet = true; m_localGatewayVirtualInterfaceId = std::move(value); }
63 
67  inline void SetLocalGatewayVirtualInterfaceId(const char* value) { m_localGatewayVirtualInterfaceIdHasBeenSet = true; m_localGatewayVirtualInterfaceId.assign(value); }
68 
72  inline LocalGatewayVirtualInterface& WithLocalGatewayVirtualInterfaceId(const Aws::String& value) { SetLocalGatewayVirtualInterfaceId(value); return *this;}
73 
77  inline LocalGatewayVirtualInterface& WithLocalGatewayVirtualInterfaceId(Aws::String&& value) { SetLocalGatewayVirtualInterfaceId(std::move(value)); return *this;}
78 
82  inline LocalGatewayVirtualInterface& WithLocalGatewayVirtualInterfaceId(const char* value) { SetLocalGatewayVirtualInterfaceId(value); return *this;}
83 
84 
88  inline const Aws::String& GetLocalGatewayId() const{ return m_localGatewayId; }
89 
93  inline bool LocalGatewayIdHasBeenSet() const { return m_localGatewayIdHasBeenSet; }
94 
98  inline void SetLocalGatewayId(const Aws::String& value) { m_localGatewayIdHasBeenSet = true; m_localGatewayId = value; }
99 
103  inline void SetLocalGatewayId(Aws::String&& value) { m_localGatewayIdHasBeenSet = true; m_localGatewayId = std::move(value); }
104 
108  inline void SetLocalGatewayId(const char* value) { m_localGatewayIdHasBeenSet = true; m_localGatewayId.assign(value); }
109 
113  inline LocalGatewayVirtualInterface& WithLocalGatewayId(const Aws::String& value) { SetLocalGatewayId(value); return *this;}
114 
118  inline LocalGatewayVirtualInterface& WithLocalGatewayId(Aws::String&& value) { SetLocalGatewayId(std::move(value)); return *this;}
119 
123  inline LocalGatewayVirtualInterface& WithLocalGatewayId(const char* value) { SetLocalGatewayId(value); return *this;}
124 
125 
129  inline int GetVlan() const{ return m_vlan; }
130 
134  inline bool VlanHasBeenSet() const { return m_vlanHasBeenSet; }
135 
139  inline void SetVlan(int value) { m_vlanHasBeenSet = true; m_vlan = value; }
140 
144  inline LocalGatewayVirtualInterface& WithVlan(int value) { SetVlan(value); return *this;}
145 
146 
150  inline const Aws::String& GetLocalAddress() const{ return m_localAddress; }
151 
155  inline bool LocalAddressHasBeenSet() const { return m_localAddressHasBeenSet; }
156 
160  inline void SetLocalAddress(const Aws::String& value) { m_localAddressHasBeenSet = true; m_localAddress = value; }
161 
165  inline void SetLocalAddress(Aws::String&& value) { m_localAddressHasBeenSet = true; m_localAddress = std::move(value); }
166 
170  inline void SetLocalAddress(const char* value) { m_localAddressHasBeenSet = true; m_localAddress.assign(value); }
171 
175  inline LocalGatewayVirtualInterface& WithLocalAddress(const Aws::String& value) { SetLocalAddress(value); return *this;}
176 
180  inline LocalGatewayVirtualInterface& WithLocalAddress(Aws::String&& value) { SetLocalAddress(std::move(value)); return *this;}
181 
185  inline LocalGatewayVirtualInterface& WithLocalAddress(const char* value) { SetLocalAddress(value); return *this;}
186 
187 
191  inline const Aws::String& GetPeerAddress() const{ return m_peerAddress; }
192 
196  inline bool PeerAddressHasBeenSet() const { return m_peerAddressHasBeenSet; }
197 
201  inline void SetPeerAddress(const Aws::String& value) { m_peerAddressHasBeenSet = true; m_peerAddress = value; }
202 
206  inline void SetPeerAddress(Aws::String&& value) { m_peerAddressHasBeenSet = true; m_peerAddress = std::move(value); }
207 
211  inline void SetPeerAddress(const char* value) { m_peerAddressHasBeenSet = true; m_peerAddress.assign(value); }
212 
216  inline LocalGatewayVirtualInterface& WithPeerAddress(const Aws::String& value) { SetPeerAddress(value); return *this;}
217 
221  inline LocalGatewayVirtualInterface& WithPeerAddress(Aws::String&& value) { SetPeerAddress(std::move(value)); return *this;}
222 
226  inline LocalGatewayVirtualInterface& WithPeerAddress(const char* value) { SetPeerAddress(value); return *this;}
227 
228 
233  inline int GetLocalBgpAsn() const{ return m_localBgpAsn; }
234 
239  inline bool LocalBgpAsnHasBeenSet() const { return m_localBgpAsnHasBeenSet; }
240 
245  inline void SetLocalBgpAsn(int value) { m_localBgpAsnHasBeenSet = true; m_localBgpAsn = value; }
246 
251  inline LocalGatewayVirtualInterface& WithLocalBgpAsn(int value) { SetLocalBgpAsn(value); return *this;}
252 
253 
257  inline int GetPeerBgpAsn() const{ return m_peerBgpAsn; }
258 
262  inline bool PeerBgpAsnHasBeenSet() const { return m_peerBgpAsnHasBeenSet; }
263 
267  inline void SetPeerBgpAsn(int value) { m_peerBgpAsnHasBeenSet = true; m_peerBgpAsn = value; }
268 
272  inline LocalGatewayVirtualInterface& WithPeerBgpAsn(int value) { SetPeerBgpAsn(value); return *this;}
273 
274 
278  inline const Aws::String& GetOwnerId() const{ return m_ownerId; }
279 
283  inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
284 
288  inline void SetOwnerId(const Aws::String& value) { m_ownerIdHasBeenSet = true; m_ownerId = value; }
289 
293  inline void SetOwnerId(Aws::String&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::move(value); }
294 
298  inline void SetOwnerId(const char* value) { m_ownerIdHasBeenSet = true; m_ownerId.assign(value); }
299 
303  inline LocalGatewayVirtualInterface& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;}
304 
308  inline LocalGatewayVirtualInterface& WithOwnerId(Aws::String&& value) { SetOwnerId(std::move(value)); return *this;}
309 
313  inline LocalGatewayVirtualInterface& WithOwnerId(const char* value) { SetOwnerId(value); return *this;}
314 
315 
319  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
320 
324  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
325 
329  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
330 
334  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
335 
339  inline LocalGatewayVirtualInterface& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
340 
344  inline LocalGatewayVirtualInterface& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
345 
349  inline LocalGatewayVirtualInterface& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
350 
354  inline LocalGatewayVirtualInterface& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
355 
356  private:
357 
358  Aws::String m_localGatewayVirtualInterfaceId;
359  bool m_localGatewayVirtualInterfaceIdHasBeenSet;
360 
361  Aws::String m_localGatewayId;
362  bool m_localGatewayIdHasBeenSet;
363 
364  int m_vlan;
365  bool m_vlanHasBeenSet;
366 
367  Aws::String m_localAddress;
368  bool m_localAddressHasBeenSet;
369 
370  Aws::String m_peerAddress;
371  bool m_peerAddressHasBeenSet;
372 
373  int m_localBgpAsn;
374  bool m_localBgpAsnHasBeenSet;
375 
376  int m_peerBgpAsn;
377  bool m_peerBgpAsnHasBeenSet;
378 
379  Aws::String m_ownerId;
380  bool m_ownerIdHasBeenSet;
381 
382  Aws::Vector<Tag> m_tags;
383  bool m_tagsHasBeenSet;
384  };
385 
386 } // namespace Model
387 } // namespace EC2
388 } // namespace Aws
Aws::EC2::Model::LocalGatewayVirtualInterface::SetLocalGatewayVirtualInterfaceId
void SetLocalGatewayVirtualInterfaceId(Aws::String &&value)
Definition: LocalGatewayVirtualInterface.h:62
Aws::EC2::Model::LocalGatewayVirtualInterface::WithVlan
LocalGatewayVirtualInterface & WithVlan(int value)
Definition: LocalGatewayVirtualInterface.h:144
Aws::EC2::Model::LocalGatewayVirtualInterface::WithLocalAddress
LocalGatewayVirtualInterface & WithLocalAddress(const Aws::String &value)
Definition: LocalGatewayVirtualInterface.h:175
Aws::EC2::Model::LocalGatewayVirtualInterface::WithLocalGatewayVirtualInterfaceId
LocalGatewayVirtualInterface & WithLocalGatewayVirtualInterfaceId(const char *value)
Definition: LocalGatewayVirtualInterface.h:82
Aws::EC2::Model::Tag
Definition: Tag.h:32
Aws::EC2::Model::LocalGatewayVirtualInterface::GetOwnerId
const Aws::String & GetOwnerId() const
Definition: LocalGatewayVirtualInterface.h:278
Aws::EC2::Model::LocalGatewayVirtualInterface::WithLocalBgpAsn
LocalGatewayVirtualInterface & WithLocalBgpAsn(int value)
Definition: LocalGatewayVirtualInterface.h:251
Aws::EC2::Model::LocalGatewayVirtualInterface::WithLocalGatewayVirtualInterfaceId
LocalGatewayVirtualInterface & WithLocalGatewayVirtualInterfaceId(const Aws::String &value)
Definition: LocalGatewayVirtualInterface.h:72
Aws::EC2::Model::LocalGatewayVirtualInterface::SetVlan
void SetVlan(int value)
Definition: LocalGatewayVirtualInterface.h:139
Aws::EC2::Model::LocalGatewayVirtualInterface
Definition: LocalGatewayVirtualInterface.h:34
Aws::EC2::Model::LocalGatewayVirtualInterface::SetPeerAddress
void SetPeerAddress(Aws::String &&value)
Definition: LocalGatewayVirtualInterface.h:206
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::LocalGatewayVirtualInterface::WithTags
LocalGatewayVirtualInterface & WithTags(const Aws::Vector< Tag > &value)
Definition: LocalGatewayVirtualInterface.h:339
Aws::EC2::Model::LocalGatewayVirtualInterface::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: LocalGatewayVirtualInterface.h:329
Aws::EC2::Model::LocalGatewayVirtualInterface::PeerAddressHasBeenSet
bool PeerAddressHasBeenSet() const
Definition: LocalGatewayVirtualInterface.h:196
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::LocalGatewayVirtualInterface::WithTags
LocalGatewayVirtualInterface & WithTags(Aws::Vector< Tag > &&value)
Definition: LocalGatewayVirtualInterface.h:344
Aws::EC2::Model::LocalGatewayVirtualInterface::LocalGatewayVirtualInterface
LocalGatewayVirtualInterface()
AWSStreamFwd.h
Aws::EC2::Model::LocalGatewayVirtualInterface::WithLocalGatewayVirtualInterfaceId
LocalGatewayVirtualInterface & WithLocalGatewayVirtualInterfaceId(Aws::String &&value)
Definition: LocalGatewayVirtualInterface.h:77
AWSVector.h
Tag.h
Aws::EC2::Model::LocalGatewayVirtualInterface::LocalGatewayIdHasBeenSet
bool LocalGatewayIdHasBeenSet() const
Definition: LocalGatewayVirtualInterface.h:93
Aws::EC2::Model::LocalGatewayVirtualInterface::GetLocalGatewayId
const Aws::String & GetLocalGatewayId() const
Definition: LocalGatewayVirtualInterface.h:88
Aws::EC2::Model::LocalGatewayVirtualInterface::SetLocalGatewayId
void SetLocalGatewayId(const Aws::String &value)
Definition: LocalGatewayVirtualInterface.h:98
Aws::EC2::Model::LocalGatewayVirtualInterface::WithLocalGatewayId
LocalGatewayVirtualInterface & WithLocalGatewayId(const Aws::String &value)
Definition: LocalGatewayVirtualInterface.h:113
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::LocalGatewayVirtualInterface::SetLocalBgpAsn
void SetLocalBgpAsn(int value)
Definition: LocalGatewayVirtualInterface.h:245
Aws::EC2::Model::LocalGatewayVirtualInterface::WithOwnerId
LocalGatewayVirtualInterface & WithOwnerId(const Aws::String &value)
Definition: LocalGatewayVirtualInterface.h:303
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::LocalGatewayVirtualInterface::WithPeerAddress
LocalGatewayVirtualInterface & WithPeerAddress(const Aws::String &value)
Definition: LocalGatewayVirtualInterface.h:216
Aws::EC2::Model::LocalGatewayVirtualInterface::GetLocalAddress
const Aws::String & GetLocalAddress() const
Definition: LocalGatewayVirtualInterface.h:150
Aws::EC2::Model::LocalGatewayVirtualInterface::WithLocalGatewayId
LocalGatewayVirtualInterface & WithLocalGatewayId(const char *value)
Definition: LocalGatewayVirtualInterface.h:123
Aws::EC2::Model::LocalGatewayVirtualInterface::GetPeerBgpAsn
int GetPeerBgpAsn() const
Definition: LocalGatewayVirtualInterface.h:257
Aws::EC2::Model::LocalGatewayVirtualInterface::SetOwnerId
void SetOwnerId(const Aws::String &value)
Definition: LocalGatewayVirtualInterface.h:288
Aws::EC2::Model::LocalGatewayVirtualInterface::WithPeerAddress
LocalGatewayVirtualInterface & WithPeerAddress(Aws::String &&value)
Definition: LocalGatewayVirtualInterface.h:221
Aws::EC2::Model::LocalGatewayVirtualInterface::GetPeerAddress
const Aws::String & GetPeerAddress() const
Definition: LocalGatewayVirtualInterface.h:191
Aws::EC2::Model::LocalGatewayVirtualInterface::VlanHasBeenSet
bool VlanHasBeenSet() const
Definition: LocalGatewayVirtualInterface.h:134
Aws::EC2::Model::LocalGatewayVirtualInterface::SetLocalAddress
void SetLocalAddress(const Aws::String &value)
Definition: LocalGatewayVirtualInterface.h:160
Aws::EC2::Model::LocalGatewayVirtualInterface::SetPeerBgpAsn
void SetPeerBgpAsn(int value)
Definition: LocalGatewayVirtualInterface.h:267
Aws::EC2::Model::LocalGatewayVirtualInterface::SetLocalAddress
void SetLocalAddress(Aws::String &&value)
Definition: LocalGatewayVirtualInterface.h:165
Aws::EC2::Model::LocalGatewayVirtualInterface::LocalBgpAsnHasBeenSet
bool LocalBgpAsnHasBeenSet() const
Definition: LocalGatewayVirtualInterface.h:239
AWSString.h
Aws::EC2::Model::LocalGatewayVirtualInterface::SetLocalGatewayId
void SetLocalGatewayId(const char *value)
Definition: LocalGatewayVirtualInterface.h:108
Aws::EC2::Model::LocalGatewayVirtualInterface::SetLocalGatewayId
void SetLocalGatewayId(Aws::String &&value)
Definition: LocalGatewayVirtualInterface.h:103
Aws::EC2::Model::LocalGatewayVirtualInterface::SetPeerAddress
void SetPeerAddress(const Aws::String &value)
Definition: LocalGatewayVirtualInterface.h:201
Aws::EC2::Model::LocalGatewayVirtualInterface::LocalGatewayVirtualInterface
LocalGatewayVirtualInterface(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::LocalGatewayVirtualInterface::WithLocalGatewayId
LocalGatewayVirtualInterface & WithLocalGatewayId(Aws::String &&value)
Definition: LocalGatewayVirtualInterface.h:118
Aws::EC2::Model::LocalGatewayVirtualInterface::SetOwnerId
void SetOwnerId(const char *value)
Definition: LocalGatewayVirtualInterface.h:298
Aws::EC2::Model::LocalGatewayVirtualInterface::GetVlan
int GetVlan() const
Definition: LocalGatewayVirtualInterface.h:129
Aws::EC2::Model::LocalGatewayVirtualInterface::GetLocalGatewayVirtualInterfaceId
const Aws::String & GetLocalGatewayVirtualInterfaceId() const
Definition: LocalGatewayVirtualInterface.h:47
Aws::EC2::Model::LocalGatewayVirtualInterface::PeerBgpAsnHasBeenSet
bool PeerBgpAsnHasBeenSet() const
Definition: LocalGatewayVirtualInterface.h:262
Aws::EC2::Model::LocalGatewayVirtualInterface::operator=
LocalGatewayVirtualInterface & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::LocalGatewayVirtualInterface::SetOwnerId
void SetOwnerId(Aws::String &&value)
Definition: LocalGatewayVirtualInterface.h:293
Aws::EC2::Model::LocalGatewayVirtualInterface::SetLocalGatewayVirtualInterfaceId
void SetLocalGatewayVirtualInterfaceId(const char *value)
Definition: LocalGatewayVirtualInterface.h:67
Aws::EC2::Model::LocalGatewayVirtualInterface::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: LocalGatewayVirtualInterface.h:319
Aws::EC2::Model::LocalGatewayVirtualInterface::WithOwnerId
LocalGatewayVirtualInterface & WithOwnerId(Aws::String &&value)
Definition: LocalGatewayVirtualInterface.h:308
Aws::EC2::Model::LocalGatewayVirtualInterface::GetLocalBgpAsn
int GetLocalBgpAsn() const
Definition: LocalGatewayVirtualInterface.h:233
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::LocalGatewayVirtualInterface::WithPeerBgpAsn
LocalGatewayVirtualInterface & WithPeerBgpAsn(int value)
Definition: LocalGatewayVirtualInterface.h:272
Aws::EC2::Model::LocalGatewayVirtualInterface::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: LocalGatewayVirtualInterface.h:324
Aws::EC2::Model::LocalGatewayVirtualInterface::WithOwnerId
LocalGatewayVirtualInterface & WithOwnerId(const char *value)
Definition: LocalGatewayVirtualInterface.h:313
Aws::EC2::Model::LocalGatewayVirtualInterface::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::LocalGatewayVirtualInterface::WithLocalAddress
LocalGatewayVirtualInterface & WithLocalAddress(const char *value)
Definition: LocalGatewayVirtualInterface.h:185
Aws::EC2::Model::LocalGatewayVirtualInterface::SetLocalAddress
void SetLocalAddress(const char *value)
Definition: LocalGatewayVirtualInterface.h:170
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::LocalGatewayVirtualInterface::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::LocalGatewayVirtualInterface::WithPeerAddress
LocalGatewayVirtualInterface & WithPeerAddress(const char *value)
Definition: LocalGatewayVirtualInterface.h:226
Aws::EC2::Model::LocalGatewayVirtualInterface::SetLocalGatewayVirtualInterfaceId
void SetLocalGatewayVirtualInterfaceId(const Aws::String &value)
Definition: LocalGatewayVirtualInterface.h:57
Aws::EC2::Model::LocalGatewayVirtualInterface::LocalGatewayVirtualInterfaceIdHasBeenSet
bool LocalGatewayVirtualInterfaceIdHasBeenSet() const
Definition: LocalGatewayVirtualInterface.h:52
Aws::EC2::Model::LocalGatewayVirtualInterface::WithLocalAddress
LocalGatewayVirtualInterface & WithLocalAddress(Aws::String &&value)
Definition: LocalGatewayVirtualInterface.h:180
Aws::EC2::Model::LocalGatewayVirtualInterface::OwnerIdHasBeenSet
bool OwnerIdHasBeenSet() const
Definition: LocalGatewayVirtualInterface.h:283
Aws::EC2::Model::LocalGatewayVirtualInterface::LocalAddressHasBeenSet
bool LocalAddressHasBeenSet() const
Definition: LocalGatewayVirtualInterface.h:155
Aws::EC2::Model::LocalGatewayVirtualInterface::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: LocalGatewayVirtualInterface.h:334
Aws::EC2::Model::LocalGatewayVirtualInterface::AddTags
LocalGatewayVirtualInterface & AddTags(const Tag &value)
Definition: LocalGatewayVirtualInterface.h:349
EC2_EXPORTS.h
Aws::EC2::Model::LocalGatewayVirtualInterface::AddTags
LocalGatewayVirtualInterface & AddTags(Tag &&value)
Definition: LocalGatewayVirtualInterface.h:354
Aws::EC2::Model::LocalGatewayVirtualInterface::SetPeerAddress
void SetPeerAddress(const char *value)
Definition: LocalGatewayVirtualInterface.h:211