AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ManagedPrefixList.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/PrefixListState.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
31 public:
32 AWS_EC2_API ManagedPrefixList() = default;
33 AWS_EC2_API ManagedPrefixList(const Aws::Utils::Xml::XmlNode& xmlNode);
35
36 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
37 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
38
40
43 inline const Aws::String& GetPrefixListId() const { return m_prefixListId; }
44 inline bool PrefixListIdHasBeenSet() const { return m_prefixListIdHasBeenSet; }
45 template <typename PrefixListIdT = Aws::String>
46 void SetPrefixListId(PrefixListIdT&& value) {
47 m_prefixListIdHasBeenSet = true;
48 m_prefixListId = std::forward<PrefixListIdT>(value);
49 }
50 template <typename PrefixListIdT = Aws::String>
51 ManagedPrefixList& WithPrefixListId(PrefixListIdT&& value) {
52 SetPrefixListId(std::forward<PrefixListIdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetAddressFamily() const { return m_addressFamily; }
62 inline bool AddressFamilyHasBeenSet() const { return m_addressFamilyHasBeenSet; }
63 template <typename AddressFamilyT = Aws::String>
64 void SetAddressFamily(AddressFamilyT&& value) {
65 m_addressFamilyHasBeenSet = true;
66 m_addressFamily = std::forward<AddressFamilyT>(value);
67 }
68 template <typename AddressFamilyT = Aws::String>
69 ManagedPrefixList& WithAddressFamily(AddressFamilyT&& value) {
70 SetAddressFamily(std::forward<AddressFamilyT>(value));
71 return *this;
72 }
74
76
79 inline PrefixListState GetState() const { return m_state; }
80 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
81 inline void SetState(PrefixListState value) {
82 m_stateHasBeenSet = true;
83 m_state = value;
84 }
86 SetState(value);
87 return *this;
88 }
90
92
95 inline const Aws::String& GetStateMessage() const { return m_stateMessage; }
96 inline bool StateMessageHasBeenSet() const { return m_stateMessageHasBeenSet; }
97 template <typename StateMessageT = Aws::String>
98 void SetStateMessage(StateMessageT&& value) {
99 m_stateMessageHasBeenSet = true;
100 m_stateMessage = std::forward<StateMessageT>(value);
101 }
102 template <typename StateMessageT = Aws::String>
103 ManagedPrefixList& WithStateMessage(StateMessageT&& value) {
104 SetStateMessage(std::forward<StateMessageT>(value));
105 return *this;
106 }
108
110
113 inline const Aws::String& GetPrefixListArn() const { return m_prefixListArn; }
114 inline bool PrefixListArnHasBeenSet() const { return m_prefixListArnHasBeenSet; }
115 template <typename PrefixListArnT = Aws::String>
116 void SetPrefixListArn(PrefixListArnT&& value) {
117 m_prefixListArnHasBeenSet = true;
118 m_prefixListArn = std::forward<PrefixListArnT>(value);
119 }
120 template <typename PrefixListArnT = Aws::String>
121 ManagedPrefixList& WithPrefixListArn(PrefixListArnT&& value) {
122 SetPrefixListArn(std::forward<PrefixListArnT>(value));
123 return *this;
124 }
126
128
131 inline const Aws::String& GetPrefixListName() const { return m_prefixListName; }
132 inline bool PrefixListNameHasBeenSet() const { return m_prefixListNameHasBeenSet; }
133 template <typename PrefixListNameT = Aws::String>
134 void SetPrefixListName(PrefixListNameT&& value) {
135 m_prefixListNameHasBeenSet = true;
136 m_prefixListName = std::forward<PrefixListNameT>(value);
137 }
138 template <typename PrefixListNameT = Aws::String>
139 ManagedPrefixList& WithPrefixListName(PrefixListNameT&& value) {
140 SetPrefixListName(std::forward<PrefixListNameT>(value));
141 return *this;
142 }
144
146
149 inline int GetMaxEntries() const { return m_maxEntries; }
150 inline bool MaxEntriesHasBeenSet() const { return m_maxEntriesHasBeenSet; }
151 inline void SetMaxEntries(int value) {
152 m_maxEntriesHasBeenSet = true;
153 m_maxEntries = value;
154 }
156 SetMaxEntries(value);
157 return *this;
158 }
160
162
165 inline long long GetVersion() const { return m_version; }
166 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
167 inline void SetVersion(long long value) {
168 m_versionHasBeenSet = true;
169 m_version = value;
170 }
171 inline ManagedPrefixList& WithVersion(long long value) {
172 SetVersion(value);
173 return *this;
174 }
176
178
181 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
182 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
183 template <typename TagsT = Aws::Vector<Tag>>
184 void SetTags(TagsT&& value) {
185 m_tagsHasBeenSet = true;
186 m_tags = std::forward<TagsT>(value);
187 }
188 template <typename TagsT = Aws::Vector<Tag>>
189 ManagedPrefixList& WithTags(TagsT&& value) {
190 SetTags(std::forward<TagsT>(value));
191 return *this;
192 }
193 template <typename TagsT = Tag>
194 ManagedPrefixList& AddTags(TagsT&& value) {
195 m_tagsHasBeenSet = true;
196 m_tags.emplace_back(std::forward<TagsT>(value));
197 return *this;
198 }
200
202
205 inline const Aws::String& GetOwnerId() const { return m_ownerId; }
206 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
207 template <typename OwnerIdT = Aws::String>
208 void SetOwnerId(OwnerIdT&& value) {
209 m_ownerIdHasBeenSet = true;
210 m_ownerId = std::forward<OwnerIdT>(value);
211 }
212 template <typename OwnerIdT = Aws::String>
213 ManagedPrefixList& WithOwnerId(OwnerIdT&& value) {
214 SetOwnerId(std::forward<OwnerIdT>(value));
215 return *this;
216 }
218
220
229 inline const Aws::String& GetIpamPrefixListResolverTargetId() const { return m_ipamPrefixListResolverTargetId; }
230 inline bool IpamPrefixListResolverTargetIdHasBeenSet() const { return m_ipamPrefixListResolverTargetIdHasBeenSet; }
231 template <typename IpamPrefixListResolverTargetIdT = Aws::String>
232 void SetIpamPrefixListResolverTargetId(IpamPrefixListResolverTargetIdT&& value) {
233 m_ipamPrefixListResolverTargetIdHasBeenSet = true;
234 m_ipamPrefixListResolverTargetId = std::forward<IpamPrefixListResolverTargetIdT>(value);
235 }
236 template <typename IpamPrefixListResolverTargetIdT = Aws::String>
237 ManagedPrefixList& WithIpamPrefixListResolverTargetId(IpamPrefixListResolverTargetIdT&& value) {
238 SetIpamPrefixListResolverTargetId(std::forward<IpamPrefixListResolverTargetIdT>(value));
239 return *this;
240 }
242
244
249 inline bool GetIpamPrefixListResolverSyncEnabled() const { return m_ipamPrefixListResolverSyncEnabled; }
250 inline bool IpamPrefixListResolverSyncEnabledHasBeenSet() const { return m_ipamPrefixListResolverSyncEnabledHasBeenSet; }
251 inline void SetIpamPrefixListResolverSyncEnabled(bool value) {
252 m_ipamPrefixListResolverSyncEnabledHasBeenSet = true;
253 m_ipamPrefixListResolverSyncEnabled = value;
254 }
257 return *this;
258 }
260 private:
261 Aws::String m_prefixListId;
262
263 Aws::String m_addressFamily;
264
266
267 Aws::String m_stateMessage;
268
269 Aws::String m_prefixListArn;
270
271 Aws::String m_prefixListName;
272
273 int m_maxEntries{0};
274
275 long long m_version{0};
276
277 Aws::Vector<Tag> m_tags;
278
279 Aws::String m_ownerId;
280
281 Aws::String m_ipamPrefixListResolverTargetId;
282
283 bool m_ipamPrefixListResolverSyncEnabled{false};
284 bool m_prefixListIdHasBeenSet = false;
285 bool m_addressFamilyHasBeenSet = false;
286 bool m_stateHasBeenSet = false;
287 bool m_stateMessageHasBeenSet = false;
288 bool m_prefixListArnHasBeenSet = false;
289 bool m_prefixListNameHasBeenSet = false;
290 bool m_maxEntriesHasBeenSet = false;
291 bool m_versionHasBeenSet = false;
292 bool m_tagsHasBeenSet = false;
293 bool m_ownerIdHasBeenSet = false;
294 bool m_ipamPrefixListResolverTargetIdHasBeenSet = false;
295 bool m_ipamPrefixListResolverSyncEnabledHasBeenSet = false;
296};
297
298} // namespace Model
299} // namespace EC2
300} // namespace Aws
const Aws::Vector< Tag > & GetTags() const
ManagedPrefixList & WithPrefixListArn(PrefixListArnT &&value)
void SetPrefixListId(PrefixListIdT &&value)
AWS_EC2_API ManagedPrefixList(const Aws::Utils::Xml::XmlNode &xmlNode)
ManagedPrefixList & WithOwnerId(OwnerIdT &&value)
void SetState(PrefixListState value)
const Aws::String & GetPrefixListId() const
void SetStateMessage(StateMessageT &&value)
void SetIpamPrefixListResolverTargetId(IpamPrefixListResolverTargetIdT &&value)
AWS_EC2_API ManagedPrefixList()=default
ManagedPrefixList & WithStateMessage(StateMessageT &&value)
ManagedPrefixList & WithState(PrefixListState value)
const Aws::String & GetAddressFamily() const
ManagedPrefixList & WithIpamPrefixListResolverSyncEnabled(bool value)
const Aws::String & GetPrefixListArn() const
ManagedPrefixList & WithPrefixListName(PrefixListNameT &&value)
void SetAddressFamily(AddressFamilyT &&value)
void SetPrefixListArn(PrefixListArnT &&value)
ManagedPrefixList & WithMaxEntries(int value)
const Aws::String & GetOwnerId() const
ManagedPrefixList & WithTags(TagsT &&value)
void SetPrefixListName(PrefixListNameT &&value)
const Aws::String & GetStateMessage() const
void SetIpamPrefixListResolverSyncEnabled(bool value)
const Aws::String & GetIpamPrefixListResolverTargetId() const
ManagedPrefixList & WithAddressFamily(AddressFamilyT &&value)
ManagedPrefixList & WithVersion(long long value)
const Aws::String & GetPrefixListName() const
ManagedPrefixList & WithIpamPrefixListResolverTargetId(IpamPrefixListResolverTargetIdT &&value)
AWS_EC2_API ManagedPrefixList & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ManagedPrefixList & WithPrefixListId(PrefixListIdT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
ManagedPrefixList & AddTags(TagsT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
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