AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
LocalGatewayVirtualInterface.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ec2/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace EC2
24{
25namespace Model
26{
27
34 {
35 public:
39
40 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
48 inline const Aws::String& GetLocalGatewayVirtualInterfaceId() const{ return m_localGatewayVirtualInterfaceId; }
49 inline bool LocalGatewayVirtualInterfaceIdHasBeenSet() const { return m_localGatewayVirtualInterfaceIdHasBeenSet; }
50 inline void SetLocalGatewayVirtualInterfaceId(const Aws::String& value) { m_localGatewayVirtualInterfaceIdHasBeenSet = true; m_localGatewayVirtualInterfaceId = value; }
51 inline void SetLocalGatewayVirtualInterfaceId(Aws::String&& value) { m_localGatewayVirtualInterfaceIdHasBeenSet = true; m_localGatewayVirtualInterfaceId = std::move(value); }
52 inline void SetLocalGatewayVirtualInterfaceId(const char* value) { m_localGatewayVirtualInterfaceIdHasBeenSet = true; m_localGatewayVirtualInterfaceId.assign(value); }
57
59
62 inline const Aws::String& GetLocalGatewayId() const{ return m_localGatewayId; }
63 inline bool LocalGatewayIdHasBeenSet() const { return m_localGatewayIdHasBeenSet; }
64 inline void SetLocalGatewayId(const Aws::String& value) { m_localGatewayIdHasBeenSet = true; m_localGatewayId = value; }
65 inline void SetLocalGatewayId(Aws::String&& value) { m_localGatewayIdHasBeenSet = true; m_localGatewayId = std::move(value); }
66 inline void SetLocalGatewayId(const char* value) { m_localGatewayIdHasBeenSet = true; m_localGatewayId.assign(value); }
68 inline LocalGatewayVirtualInterface& WithLocalGatewayId(Aws::String&& value) { SetLocalGatewayId(std::move(value)); return *this;}
69 inline LocalGatewayVirtualInterface& WithLocalGatewayId(const char* value) { SetLocalGatewayId(value); return *this;}
71
73
76 inline int GetVlan() const{ return m_vlan; }
77 inline bool VlanHasBeenSet() const { return m_vlanHasBeenSet; }
78 inline void SetVlan(int value) { m_vlanHasBeenSet = true; m_vlan = value; }
79 inline LocalGatewayVirtualInterface& WithVlan(int value) { SetVlan(value); return *this;}
81
83
86 inline const Aws::String& GetLocalAddress() const{ return m_localAddress; }
87 inline bool LocalAddressHasBeenSet() const { return m_localAddressHasBeenSet; }
88 inline void SetLocalAddress(const Aws::String& value) { m_localAddressHasBeenSet = true; m_localAddress = value; }
89 inline void SetLocalAddress(Aws::String&& value) { m_localAddressHasBeenSet = true; m_localAddress = std::move(value); }
90 inline void SetLocalAddress(const char* value) { m_localAddressHasBeenSet = true; m_localAddress.assign(value); }
91 inline LocalGatewayVirtualInterface& WithLocalAddress(const Aws::String& value) { SetLocalAddress(value); return *this;}
92 inline LocalGatewayVirtualInterface& WithLocalAddress(Aws::String&& value) { SetLocalAddress(std::move(value)); return *this;}
93 inline LocalGatewayVirtualInterface& WithLocalAddress(const char* value) { SetLocalAddress(value); return *this;}
95
97
100 inline const Aws::String& GetPeerAddress() const{ return m_peerAddress; }
101 inline bool PeerAddressHasBeenSet() const { return m_peerAddressHasBeenSet; }
102 inline void SetPeerAddress(const Aws::String& value) { m_peerAddressHasBeenSet = true; m_peerAddress = value; }
103 inline void SetPeerAddress(Aws::String&& value) { m_peerAddressHasBeenSet = true; m_peerAddress = std::move(value); }
104 inline void SetPeerAddress(const char* value) { m_peerAddressHasBeenSet = true; m_peerAddress.assign(value); }
105 inline LocalGatewayVirtualInterface& WithPeerAddress(const Aws::String& value) { SetPeerAddress(value); return *this;}
106 inline LocalGatewayVirtualInterface& WithPeerAddress(Aws::String&& value) { SetPeerAddress(std::move(value)); return *this;}
107 inline LocalGatewayVirtualInterface& WithPeerAddress(const char* value) { SetPeerAddress(value); return *this;}
109
111
115 inline int GetLocalBgpAsn() const{ return m_localBgpAsn; }
116 inline bool LocalBgpAsnHasBeenSet() const { return m_localBgpAsnHasBeenSet; }
117 inline void SetLocalBgpAsn(int value) { m_localBgpAsnHasBeenSet = true; m_localBgpAsn = value; }
118 inline LocalGatewayVirtualInterface& WithLocalBgpAsn(int value) { SetLocalBgpAsn(value); return *this;}
120
122
125 inline int GetPeerBgpAsn() const{ return m_peerBgpAsn; }
126 inline bool PeerBgpAsnHasBeenSet() const { return m_peerBgpAsnHasBeenSet; }
127 inline void SetPeerBgpAsn(int value) { m_peerBgpAsnHasBeenSet = true; m_peerBgpAsn = value; }
128 inline LocalGatewayVirtualInterface& WithPeerBgpAsn(int value) { SetPeerBgpAsn(value); return *this;}
130
132
136 inline const Aws::String& GetOwnerId() const{ return m_ownerId; }
137 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
138 inline void SetOwnerId(const Aws::String& value) { m_ownerIdHasBeenSet = true; m_ownerId = value; }
139 inline void SetOwnerId(Aws::String&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::move(value); }
140 inline void SetOwnerId(const char* value) { m_ownerIdHasBeenSet = true; m_ownerId.assign(value); }
141 inline LocalGatewayVirtualInterface& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;}
142 inline LocalGatewayVirtualInterface& WithOwnerId(Aws::String&& value) { SetOwnerId(std::move(value)); return *this;}
143 inline LocalGatewayVirtualInterface& WithOwnerId(const char* value) { SetOwnerId(value); return *this;}
145
147
150 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
151 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
152 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
153 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
154 inline LocalGatewayVirtualInterface& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
155 inline LocalGatewayVirtualInterface& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
156 inline LocalGatewayVirtualInterface& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
157 inline LocalGatewayVirtualInterface& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
159 private:
160
161 Aws::String m_localGatewayVirtualInterfaceId;
162 bool m_localGatewayVirtualInterfaceIdHasBeenSet = false;
163
164 Aws::String m_localGatewayId;
165 bool m_localGatewayIdHasBeenSet = false;
166
167 int m_vlan;
168 bool m_vlanHasBeenSet = false;
169
170 Aws::String m_localAddress;
171 bool m_localAddressHasBeenSet = false;
172
173 Aws::String m_peerAddress;
174 bool m_peerAddressHasBeenSet = false;
175
176 int m_localBgpAsn;
177 bool m_localBgpAsnHasBeenSet = false;
178
179 int m_peerBgpAsn;
180 bool m_peerBgpAsnHasBeenSet = false;
181
182 Aws::String m_ownerId;
183 bool m_ownerIdHasBeenSet = false;
184
185 Aws::Vector<Tag> m_tags;
186 bool m_tagsHasBeenSet = false;
187 };
188
189} // namespace Model
190} // namespace EC2
191} // namespace Aws
LocalGatewayVirtualInterface & WithOwnerId(const Aws::String &value)
AWS_EC2_API LocalGatewayVirtualInterface & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
LocalGatewayVirtualInterface & WithPeerAddress(Aws::String &&value)
LocalGatewayVirtualInterface & AddTags(Tag &&value)
LocalGatewayVirtualInterface & WithLocalGatewayId(const Aws::String &value)
LocalGatewayVirtualInterface & WithVlan(int value)
LocalGatewayVirtualInterface & WithLocalGatewayVirtualInterfaceId(Aws::String &&value)
LocalGatewayVirtualInterface & WithLocalBgpAsn(int value)
LocalGatewayVirtualInterface & WithLocalGatewayVirtualInterfaceId(const Aws::String &value)
LocalGatewayVirtualInterface & WithLocalGatewayId(Aws::String &&value)
LocalGatewayVirtualInterface & AddTags(const Tag &value)
LocalGatewayVirtualInterface & WithLocalGatewayId(const char *value)
LocalGatewayVirtualInterface & WithLocalAddress(Aws::String &&value)
LocalGatewayVirtualInterface & WithLocalGatewayVirtualInterfaceId(const char *value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
LocalGatewayVirtualInterface & WithPeerAddress(const char *value)
LocalGatewayVirtualInterface & WithLocalAddress(const Aws::String &value)
LocalGatewayVirtualInterface & WithLocalAddress(const char *value)
LocalGatewayVirtualInterface & WithOwnerId(Aws::String &&value)
AWS_EC2_API LocalGatewayVirtualInterface(const Aws::Utils::Xml::XmlNode &xmlNode)
LocalGatewayVirtualInterface & WithPeerBgpAsn(int value)
LocalGatewayVirtualInterface & WithPeerAddress(const Aws::String &value)
LocalGatewayVirtualInterface & WithOwnerId(const char *value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
LocalGatewayVirtualInterface & WithTags(Aws::Vector< Tag > &&value)
LocalGatewayVirtualInterface & WithTags(const Aws::Vector< Tag > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream