AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
LocalGatewayVirtualInterfaceGroup.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11#include <aws/ec2/model/LocalGatewayVirtualInterfaceGroupConfigurationState.h>
12#include <aws/ec2/model/Tag.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Xml {
19class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace EC2 {
23namespace Model {
24
32 public:
33 AWS_EC2_API LocalGatewayVirtualInterfaceGroup() = default;
36
37 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
38 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
39
41
44 inline const Aws::String& GetLocalGatewayVirtualInterfaceGroupId() const { return m_localGatewayVirtualInterfaceGroupId; }
45 inline bool LocalGatewayVirtualInterfaceGroupIdHasBeenSet() const { return m_localGatewayVirtualInterfaceGroupIdHasBeenSet; }
46 template <typename LocalGatewayVirtualInterfaceGroupIdT = Aws::String>
47 void SetLocalGatewayVirtualInterfaceGroupId(LocalGatewayVirtualInterfaceGroupIdT&& value) {
48 m_localGatewayVirtualInterfaceGroupIdHasBeenSet = true;
49 m_localGatewayVirtualInterfaceGroupId = std::forward<LocalGatewayVirtualInterfaceGroupIdT>(value);
50 }
51 template <typename LocalGatewayVirtualInterfaceGroupIdT = Aws::String>
52 LocalGatewayVirtualInterfaceGroup& WithLocalGatewayVirtualInterfaceGroupId(LocalGatewayVirtualInterfaceGroupIdT&& value) {
53 SetLocalGatewayVirtualInterfaceGroupId(std::forward<LocalGatewayVirtualInterfaceGroupIdT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::Vector<Aws::String>& GetLocalGatewayVirtualInterfaceIds() const { return m_localGatewayVirtualInterfaceIds; }
63 inline bool LocalGatewayVirtualInterfaceIdsHasBeenSet() const { return m_localGatewayVirtualInterfaceIdsHasBeenSet; }
64 template <typename LocalGatewayVirtualInterfaceIdsT = Aws::Vector<Aws::String>>
65 void SetLocalGatewayVirtualInterfaceIds(LocalGatewayVirtualInterfaceIdsT&& value) {
66 m_localGatewayVirtualInterfaceIdsHasBeenSet = true;
67 m_localGatewayVirtualInterfaceIds = std::forward<LocalGatewayVirtualInterfaceIdsT>(value);
68 }
69 template <typename LocalGatewayVirtualInterfaceIdsT = Aws::Vector<Aws::String>>
71 SetLocalGatewayVirtualInterfaceIds(std::forward<LocalGatewayVirtualInterfaceIdsT>(value));
72 return *this;
73 }
74 template <typename LocalGatewayVirtualInterfaceIdsT = Aws::String>
75 LocalGatewayVirtualInterfaceGroup& AddLocalGatewayVirtualInterfaceIds(LocalGatewayVirtualInterfaceIdsT&& value) {
76 m_localGatewayVirtualInterfaceIdsHasBeenSet = true;
77 m_localGatewayVirtualInterfaceIds.emplace_back(std::forward<LocalGatewayVirtualInterfaceIdsT>(value));
78 return *this;
79 }
81
83
86 inline const Aws::String& GetLocalGatewayId() const { return m_localGatewayId; }
87 inline bool LocalGatewayIdHasBeenSet() const { return m_localGatewayIdHasBeenSet; }
88 template <typename LocalGatewayIdT = Aws::String>
89 void SetLocalGatewayId(LocalGatewayIdT&& value) {
90 m_localGatewayIdHasBeenSet = true;
91 m_localGatewayId = std::forward<LocalGatewayIdT>(value);
92 }
93 template <typename LocalGatewayIdT = Aws::String>
95 SetLocalGatewayId(std::forward<LocalGatewayIdT>(value));
96 return *this;
97 }
99
101
105 inline const Aws::String& GetOwnerId() const { return m_ownerId; }
106 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
107 template <typename OwnerIdT = Aws::String>
108 void SetOwnerId(OwnerIdT&& value) {
109 m_ownerIdHasBeenSet = true;
110 m_ownerId = std::forward<OwnerIdT>(value);
111 }
112 template <typename OwnerIdT = Aws::String>
114 SetOwnerId(std::forward<OwnerIdT>(value));
115 return *this;
116 }
118
120
124 inline int GetLocalBgpAsn() const { return m_localBgpAsn; }
125 inline bool LocalBgpAsnHasBeenSet() const { return m_localBgpAsnHasBeenSet; }
126 inline void SetLocalBgpAsn(int value) {
127 m_localBgpAsnHasBeenSet = true;
128 m_localBgpAsn = value;
129 }
131 SetLocalBgpAsn(value);
132 return *this;
133 }
135
137
140 inline long long GetLocalBgpAsnExtended() const { return m_localBgpAsnExtended; }
141 inline bool LocalBgpAsnExtendedHasBeenSet() const { return m_localBgpAsnExtendedHasBeenSet; }
142 inline void SetLocalBgpAsnExtended(long long value) {
143 m_localBgpAsnExtendedHasBeenSet = true;
144 m_localBgpAsnExtended = value;
145 }
148 return *this;
149 }
151
153
157 inline const Aws::String& GetLocalGatewayVirtualInterfaceGroupArn() const { return m_localGatewayVirtualInterfaceGroupArn; }
158 inline bool LocalGatewayVirtualInterfaceGroupArnHasBeenSet() const { return m_localGatewayVirtualInterfaceGroupArnHasBeenSet; }
159 template <typename LocalGatewayVirtualInterfaceGroupArnT = Aws::String>
160 void SetLocalGatewayVirtualInterfaceGroupArn(LocalGatewayVirtualInterfaceGroupArnT&& value) {
161 m_localGatewayVirtualInterfaceGroupArnHasBeenSet = true;
162 m_localGatewayVirtualInterfaceGroupArn = std::forward<LocalGatewayVirtualInterfaceGroupArnT>(value);
163 }
164 template <typename LocalGatewayVirtualInterfaceGroupArnT = Aws::String>
165 LocalGatewayVirtualInterfaceGroup& WithLocalGatewayVirtualInterfaceGroupArn(LocalGatewayVirtualInterfaceGroupArnT&& value) {
166 SetLocalGatewayVirtualInterfaceGroupArn(std::forward<LocalGatewayVirtualInterfaceGroupArnT>(value));
167 return *this;
168 }
170
172
175 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
176 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
177 template <typename TagsT = Aws::Vector<Tag>>
178 void SetTags(TagsT&& value) {
179 m_tagsHasBeenSet = true;
180 m_tags = std::forward<TagsT>(value);
181 }
182 template <typename TagsT = Aws::Vector<Tag>>
184 SetTags(std::forward<TagsT>(value));
185 return *this;
186 }
187 template <typename TagsT = Tag>
189 m_tagsHasBeenSet = true;
190 m_tags.emplace_back(std::forward<TagsT>(value));
191 return *this;
192 }
194
196
200 inline bool ConfigurationStateHasBeenSet() const { return m_configurationStateHasBeenSet; }
202 m_configurationStateHasBeenSet = true;
203 m_configurationState = value;
204 }
207 return *this;
208 }
210 private:
211 Aws::String m_localGatewayVirtualInterfaceGroupId;
212
213 Aws::Vector<Aws::String> m_localGatewayVirtualInterfaceIds;
214
215 Aws::String m_localGatewayId;
216
217 Aws::String m_ownerId;
218
219 int m_localBgpAsn{0};
220
221 long long m_localBgpAsnExtended{0};
222
223 Aws::String m_localGatewayVirtualInterfaceGroupArn;
224
225 Aws::Vector<Tag> m_tags;
226
228 bool m_localGatewayVirtualInterfaceGroupIdHasBeenSet = false;
229 bool m_localGatewayVirtualInterfaceIdsHasBeenSet = false;
230 bool m_localGatewayIdHasBeenSet = false;
231 bool m_ownerIdHasBeenSet = false;
232 bool m_localBgpAsnHasBeenSet = false;
233 bool m_localBgpAsnExtendedHasBeenSet = false;
234 bool m_localGatewayVirtualInterfaceGroupArnHasBeenSet = false;
235 bool m_tagsHasBeenSet = false;
236 bool m_configurationStateHasBeenSet = false;
237};
238
239} // namespace Model
240} // namespace EC2
241} // namespace Aws
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
LocalGatewayVirtualInterfaceGroup & WithLocalGatewayId(LocalGatewayIdT &&value)
LocalGatewayVirtualInterfaceGroup & WithLocalGatewayVirtualInterfaceIds(LocalGatewayVirtualInterfaceIdsT &&value)
LocalGatewayVirtualInterfaceGroup & WithLocalBgpAsn(int value)
LocalGatewayVirtualInterfaceGroup & WithLocalGatewayVirtualInterfaceGroupArn(LocalGatewayVirtualInterfaceGroupArnT &&value)
LocalGatewayVirtualInterfaceGroup & WithLocalGatewayVirtualInterfaceGroupId(LocalGatewayVirtualInterfaceGroupIdT &&value)
LocalGatewayVirtualInterfaceGroup & WithTags(TagsT &&value)
LocalGatewayVirtualInterfaceGroup & WithLocalBgpAsnExtended(long long value)
LocalGatewayVirtualInterfaceGroupConfigurationState GetConfigurationState() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetConfigurationState(LocalGatewayVirtualInterfaceGroupConfigurationState value)
LocalGatewayVirtualInterfaceGroup & AddTags(TagsT &&value)
AWS_EC2_API LocalGatewayVirtualInterfaceGroup & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API LocalGatewayVirtualInterfaceGroup(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetLocalGatewayVirtualInterfaceGroupId(LocalGatewayVirtualInterfaceGroupIdT &&value)
const Aws::Vector< Aws::String > & GetLocalGatewayVirtualInterfaceIds() const
void SetLocalGatewayVirtualInterfaceIds(LocalGatewayVirtualInterfaceIdsT &&value)
LocalGatewayVirtualInterfaceGroup & WithOwnerId(OwnerIdT &&value)
void SetLocalGatewayVirtualInterfaceGroupArn(LocalGatewayVirtualInterfaceGroupArnT &&value)
LocalGatewayVirtualInterfaceGroup & WithConfigurationState(LocalGatewayVirtualInterfaceGroupConfigurationState value)
LocalGatewayVirtualInterfaceGroup & AddLocalGatewayVirtualInterfaceIds(LocalGatewayVirtualInterfaceIdsT &&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