AWS SDK for C++  1.9.105
AWS SDK for C++
ManagedPrefixList.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
12 #include <aws/ec2/model/Tag.h>
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace Utils
18 {
19 namespace Xml
20 {
21  class XmlNode;
22 } // namespace Xml
23 } // namespace Utils
24 namespace EC2
25 {
26 namespace Model
27 {
28 
35  {
36  public:
40 
41  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42  void OutputToStream(Aws::OStream& oStream, const char* location) const;
43 
44 
48  inline const Aws::String& GetPrefixListId() const{ return m_prefixListId; }
49 
53  inline bool PrefixListIdHasBeenSet() const { return m_prefixListIdHasBeenSet; }
54 
58  inline void SetPrefixListId(const Aws::String& value) { m_prefixListIdHasBeenSet = true; m_prefixListId = value; }
59 
63  inline void SetPrefixListId(Aws::String&& value) { m_prefixListIdHasBeenSet = true; m_prefixListId = std::move(value); }
64 
68  inline void SetPrefixListId(const char* value) { m_prefixListIdHasBeenSet = true; m_prefixListId.assign(value); }
69 
73  inline ManagedPrefixList& WithPrefixListId(const Aws::String& value) { SetPrefixListId(value); return *this;}
74 
78  inline ManagedPrefixList& WithPrefixListId(Aws::String&& value) { SetPrefixListId(std::move(value)); return *this;}
79 
83  inline ManagedPrefixList& WithPrefixListId(const char* value) { SetPrefixListId(value); return *this;}
84 
85 
89  inline const Aws::String& GetAddressFamily() const{ return m_addressFamily; }
90 
94  inline bool AddressFamilyHasBeenSet() const { return m_addressFamilyHasBeenSet; }
95 
99  inline void SetAddressFamily(const Aws::String& value) { m_addressFamilyHasBeenSet = true; m_addressFamily = value; }
100 
104  inline void SetAddressFamily(Aws::String&& value) { m_addressFamilyHasBeenSet = true; m_addressFamily = std::move(value); }
105 
109  inline void SetAddressFamily(const char* value) { m_addressFamilyHasBeenSet = true; m_addressFamily.assign(value); }
110 
114  inline ManagedPrefixList& WithAddressFamily(const Aws::String& value) { SetAddressFamily(value); return *this;}
115 
119  inline ManagedPrefixList& WithAddressFamily(Aws::String&& value) { SetAddressFamily(std::move(value)); return *this;}
120 
124  inline ManagedPrefixList& WithAddressFamily(const char* value) { SetAddressFamily(value); return *this;}
125 
126 
130  inline const PrefixListState& GetState() const{ return m_state; }
131 
135  inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
136 
140  inline void SetState(const PrefixListState& value) { m_stateHasBeenSet = true; m_state = value; }
141 
145  inline void SetState(PrefixListState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
146 
150  inline ManagedPrefixList& WithState(const PrefixListState& value) { SetState(value); return *this;}
151 
155  inline ManagedPrefixList& WithState(PrefixListState&& value) { SetState(std::move(value)); return *this;}
156 
157 
161  inline const Aws::String& GetStateMessage() const{ return m_stateMessage; }
162 
166  inline bool StateMessageHasBeenSet() const { return m_stateMessageHasBeenSet; }
167 
171  inline void SetStateMessage(const Aws::String& value) { m_stateMessageHasBeenSet = true; m_stateMessage = value; }
172 
176  inline void SetStateMessage(Aws::String&& value) { m_stateMessageHasBeenSet = true; m_stateMessage = std::move(value); }
177 
181  inline void SetStateMessage(const char* value) { m_stateMessageHasBeenSet = true; m_stateMessage.assign(value); }
182 
186  inline ManagedPrefixList& WithStateMessage(const Aws::String& value) { SetStateMessage(value); return *this;}
187 
191  inline ManagedPrefixList& WithStateMessage(Aws::String&& value) { SetStateMessage(std::move(value)); return *this;}
192 
196  inline ManagedPrefixList& WithStateMessage(const char* value) { SetStateMessage(value); return *this;}
197 
198 
202  inline const Aws::String& GetPrefixListArn() const{ return m_prefixListArn; }
203 
207  inline bool PrefixListArnHasBeenSet() const { return m_prefixListArnHasBeenSet; }
208 
212  inline void SetPrefixListArn(const Aws::String& value) { m_prefixListArnHasBeenSet = true; m_prefixListArn = value; }
213 
217  inline void SetPrefixListArn(Aws::String&& value) { m_prefixListArnHasBeenSet = true; m_prefixListArn = std::move(value); }
218 
222  inline void SetPrefixListArn(const char* value) { m_prefixListArnHasBeenSet = true; m_prefixListArn.assign(value); }
223 
227  inline ManagedPrefixList& WithPrefixListArn(const Aws::String& value) { SetPrefixListArn(value); return *this;}
228 
232  inline ManagedPrefixList& WithPrefixListArn(Aws::String&& value) { SetPrefixListArn(std::move(value)); return *this;}
233 
237  inline ManagedPrefixList& WithPrefixListArn(const char* value) { SetPrefixListArn(value); return *this;}
238 
239 
243  inline const Aws::String& GetPrefixListName() const{ return m_prefixListName; }
244 
248  inline bool PrefixListNameHasBeenSet() const { return m_prefixListNameHasBeenSet; }
249 
253  inline void SetPrefixListName(const Aws::String& value) { m_prefixListNameHasBeenSet = true; m_prefixListName = value; }
254 
258  inline void SetPrefixListName(Aws::String&& value) { m_prefixListNameHasBeenSet = true; m_prefixListName = std::move(value); }
259 
263  inline void SetPrefixListName(const char* value) { m_prefixListNameHasBeenSet = true; m_prefixListName.assign(value); }
264 
268  inline ManagedPrefixList& WithPrefixListName(const Aws::String& value) { SetPrefixListName(value); return *this;}
269 
273  inline ManagedPrefixList& WithPrefixListName(Aws::String&& value) { SetPrefixListName(std::move(value)); return *this;}
274 
278  inline ManagedPrefixList& WithPrefixListName(const char* value) { SetPrefixListName(value); return *this;}
279 
280 
284  inline int GetMaxEntries() const{ return m_maxEntries; }
285 
289  inline bool MaxEntriesHasBeenSet() const { return m_maxEntriesHasBeenSet; }
290 
294  inline void SetMaxEntries(int value) { m_maxEntriesHasBeenSet = true; m_maxEntries = value; }
295 
299  inline ManagedPrefixList& WithMaxEntries(int value) { SetMaxEntries(value); return *this;}
300 
301 
305  inline long long GetVersion() const{ return m_version; }
306 
310  inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
311 
315  inline void SetVersion(long long value) { m_versionHasBeenSet = true; m_version = value; }
316 
320  inline ManagedPrefixList& WithVersion(long long value) { SetVersion(value); return *this;}
321 
322 
326  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
327 
331  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
332 
336  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
337 
341  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
342 
346  inline ManagedPrefixList& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
347 
351  inline ManagedPrefixList& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
352 
356  inline ManagedPrefixList& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
357 
361  inline ManagedPrefixList& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
362 
363 
367  inline const Aws::String& GetOwnerId() const{ return m_ownerId; }
368 
372  inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
373 
377  inline void SetOwnerId(const Aws::String& value) { m_ownerIdHasBeenSet = true; m_ownerId = value; }
378 
382  inline void SetOwnerId(Aws::String&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::move(value); }
383 
387  inline void SetOwnerId(const char* value) { m_ownerIdHasBeenSet = true; m_ownerId.assign(value); }
388 
392  inline ManagedPrefixList& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;}
393 
397  inline ManagedPrefixList& WithOwnerId(Aws::String&& value) { SetOwnerId(std::move(value)); return *this;}
398 
402  inline ManagedPrefixList& WithOwnerId(const char* value) { SetOwnerId(value); return *this;}
403 
404  private:
405 
406  Aws::String m_prefixListId;
407  bool m_prefixListIdHasBeenSet;
408 
409  Aws::String m_addressFamily;
410  bool m_addressFamilyHasBeenSet;
411 
412  PrefixListState m_state;
413  bool m_stateHasBeenSet;
414 
415  Aws::String m_stateMessage;
416  bool m_stateMessageHasBeenSet;
417 
418  Aws::String m_prefixListArn;
419  bool m_prefixListArnHasBeenSet;
420 
421  Aws::String m_prefixListName;
422  bool m_prefixListNameHasBeenSet;
423 
424  int m_maxEntries;
425  bool m_maxEntriesHasBeenSet;
426 
427  long long m_version;
428  bool m_versionHasBeenSet;
429 
430  Aws::Vector<Tag> m_tags;
431  bool m_tagsHasBeenSet;
432 
433  Aws::String m_ownerId;
434  bool m_ownerIdHasBeenSet;
435  };
436 
437 } // namespace Model
438 } // namespace EC2
439 } // namespace Aws
Aws::EC2::Model::ManagedPrefixList::WithPrefixListName
ManagedPrefixList & WithPrefixListName(Aws::String &&value)
Definition: ManagedPrefixList.h:273
Aws::EC2::Model::ManagedPrefixList::SetAddressFamily
void SetAddressFamily(const Aws::String &value)
Definition: ManagedPrefixList.h:99
Aws::EC2::Model::ManagedPrefixList::VersionHasBeenSet
bool VersionHasBeenSet() const
Definition: ManagedPrefixList.h:310
Aws::EC2::Model::ManagedPrefixList::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::ManagedPrefixList::PrefixListNameHasBeenSet
bool PrefixListNameHasBeenSet() const
Definition: ManagedPrefixList.h:248
Aws::EC2::Model::ManagedPrefixList::SetOwnerId
void SetOwnerId(const Aws::String &value)
Definition: ManagedPrefixList.h:377
Aws::EC2::Model::ManagedPrefixList::SetPrefixListId
void SetPrefixListId(Aws::String &&value)
Definition: ManagedPrefixList.h:63
Aws::EC2::Model::ManagedPrefixList::PrefixListArnHasBeenSet
bool PrefixListArnHasBeenSet() const
Definition: ManagedPrefixList.h:207
Aws::EC2::Model::Tag
Definition: Tag.h:32
Aws::EC2::Model::ManagedPrefixList::AddTags
ManagedPrefixList & AddTags(const Tag &value)
Definition: ManagedPrefixList.h:356
Aws::EC2::Model::ManagedPrefixList::MaxEntriesHasBeenSet
bool MaxEntriesHasBeenSet() const
Definition: ManagedPrefixList.h:289
Aws::EC2::Model::ManagedPrefixList::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: ManagedPrefixList.h:336
Aws::EC2::Model::ManagedPrefixList::operator=
ManagedPrefixList & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::ManagedPrefixList::WithPrefixListName
ManagedPrefixList & WithPrefixListName(const char *value)
Definition: ManagedPrefixList.h:278
Aws::EC2::Model::ManagedPrefixList::WithOwnerId
ManagedPrefixList & WithOwnerId(const char *value)
Definition: ManagedPrefixList.h:402
Aws::EC2::Model::ManagedPrefixList::AddTags
ManagedPrefixList & AddTags(Tag &&value)
Definition: ManagedPrefixList.h:361
Aws::EC2::Model::ManagedPrefixList::AddressFamilyHasBeenSet
bool AddressFamilyHasBeenSet() const
Definition: ManagedPrefixList.h:94
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::ManagedPrefixList::SetState
void SetState(PrefixListState &&value)
Definition: ManagedPrefixList.h:145
Aws::EC2::Model::ManagedPrefixList::SetPrefixListId
void SetPrefixListId(const char *value)
Definition: ManagedPrefixList.h:68
Aws::EC2::Model::ManagedPrefixList::ManagedPrefixList
ManagedPrefixList()
Aws::EC2::Model::ManagedPrefixList::SetStateMessage
void SetStateMessage(const char *value)
Definition: ManagedPrefixList.h:181
Aws::EC2::Model::ManagedPrefixList::WithMaxEntries
ManagedPrefixList & WithMaxEntries(int value)
Definition: ManagedPrefixList.h:299
Aws::EC2::Model::ManagedPrefixList::SetStateMessage
void SetStateMessage(const Aws::String &value)
Definition: ManagedPrefixList.h:171
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::ManagedPrefixList::GetPrefixListArn
const Aws::String & GetPrefixListArn() const
Definition: ManagedPrefixList.h:202
AWSStreamFwd.h
Aws::EC2::Model::ManagedPrefixList::WithVersion
ManagedPrefixList & WithVersion(long long value)
Definition: ManagedPrefixList.h:320
PrefixListState.h
Aws::EC2::Model::ManagedPrefixList::GetVersion
long long GetVersion() const
Definition: ManagedPrefixList.h:305
AWSVector.h
Tag.h
Aws::EC2::Model::ManagedPrefixList::WithOwnerId
ManagedPrefixList & WithOwnerId(const Aws::String &value)
Definition: ManagedPrefixList.h:392
Aws::EC2::Model::ManagedPrefixList::SetAddressFamily
void SetAddressFamily(const char *value)
Definition: ManagedPrefixList.h:109
Aws::EC2::Model::ManagedPrefixList::GetAddressFamily
const Aws::String & GetAddressFamily() const
Definition: ManagedPrefixList.h:89
Aws::EC2::Model::ManagedPrefixList::WithState
ManagedPrefixList & WithState(PrefixListState &&value)
Definition: ManagedPrefixList.h:155
Aws::EC2::Model::ManagedPrefixList::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: ManagedPrefixList.h:326
Aws::EC2::Model::ManagedPrefixList::GetMaxEntries
int GetMaxEntries() const
Definition: ManagedPrefixList.h:284
Aws::EC2::Model::ManagedPrefixList::WithStateMessage
ManagedPrefixList & WithStateMessage(Aws::String &&value)
Definition: ManagedPrefixList.h:191
Aws::EC2::Model::ManagedPrefixList::WithStateMessage
ManagedPrefixList & WithStateMessage(const char *value)
Definition: ManagedPrefixList.h:196
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::ManagedPrefixList::WithAddressFamily
ManagedPrefixList & WithAddressFamily(const char *value)
Definition: ManagedPrefixList.h:124
Aws::EC2::Model::ManagedPrefixList::WithTags
ManagedPrefixList & WithTags(const Aws::Vector< Tag > &value)
Definition: ManagedPrefixList.h:346
Aws::EC2::Model::ManagedPrefixList::WithAddressFamily
ManagedPrefixList & WithAddressFamily(const Aws::String &value)
Definition: ManagedPrefixList.h:114
Aws::EC2::Model::ManagedPrefixList::WithPrefixListArn
ManagedPrefixList & WithPrefixListArn(const char *value)
Definition: ManagedPrefixList.h:237
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::ManagedPrefixList::WithPrefixListId
ManagedPrefixList & WithPrefixListId(Aws::String &&value)
Definition: ManagedPrefixList.h:78
Aws::EC2::Model::ManagedPrefixList::WithState
ManagedPrefixList & WithState(const PrefixListState &value)
Definition: ManagedPrefixList.h:150
Aws::EC2::Model::ManagedPrefixList::SetVersion
void SetVersion(long long value)
Definition: ManagedPrefixList.h:315
Aws::EC2::Model::ManagedPrefixList::OwnerIdHasBeenSet
bool OwnerIdHasBeenSet() const
Definition: ManagedPrefixList.h:372
Aws::EC2::Model::ManagedPrefixList::GetPrefixListName
const Aws::String & GetPrefixListName() const
Definition: ManagedPrefixList.h:243
Aws::EC2::Model::ManagedPrefixList::WithPrefixListId
ManagedPrefixList & WithPrefixListId(const Aws::String &value)
Definition: ManagedPrefixList.h:73
Aws::EC2::Model::ManagedPrefixList::SetPrefixListArn
void SetPrefixListArn(const char *value)
Definition: ManagedPrefixList.h:222
AWSString.h
Aws::EC2::Model::ManagedPrefixList::PrefixListIdHasBeenSet
bool PrefixListIdHasBeenSet() const
Definition: ManagedPrefixList.h:53
Aws::EC2::Model::ManagedPrefixList::StateHasBeenSet
bool StateHasBeenSet() const
Definition: ManagedPrefixList.h:135
Aws::EC2::Model::ManagedPrefixList::WithTags
ManagedPrefixList & WithTags(Aws::Vector< Tag > &&value)
Definition: ManagedPrefixList.h:351
Aws::EC2::Model::ManagedPrefixList::WithPrefixListName
ManagedPrefixList & WithPrefixListName(const Aws::String &value)
Definition: ManagedPrefixList.h:268
Aws::EC2::Model::ManagedPrefixList::SetState
void SetState(const PrefixListState &value)
Definition: ManagedPrefixList.h:140
Aws::EC2::Model::ManagedPrefixList::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::ManagedPrefixList::SetOwnerId
void SetOwnerId(const char *value)
Definition: ManagedPrefixList.h:387
Aws::EC2::Model::ManagedPrefixList::WithOwnerId
ManagedPrefixList & WithOwnerId(Aws::String &&value)
Definition: ManagedPrefixList.h:397
Aws::EC2::Model::ManagedPrefixList::SetPrefixListName
void SetPrefixListName(Aws::String &&value)
Definition: ManagedPrefixList.h:258
Aws::EC2::Model::ManagedPrefixList::SetStateMessage
void SetStateMessage(Aws::String &&value)
Definition: ManagedPrefixList.h:176
Aws::EC2::Model::PrefixListState
PrefixListState
Definition: PrefixListState.h:17
Aws::EC2::Model::ManagedPrefixList::GetOwnerId
const Aws::String & GetOwnerId() const
Definition: ManagedPrefixList.h:367
Aws::EC2::Model::ManagedPrefixList::SetPrefixListName
void SetPrefixListName(const Aws::String &value)
Definition: ManagedPrefixList.h:253
Aws::EC2::Model::ManagedPrefixList::SetPrefixListArn
void SetPrefixListArn(Aws::String &&value)
Definition: ManagedPrefixList.h:217
Aws::EC2::Model::ManagedPrefixList::SetOwnerId
void SetOwnerId(Aws::String &&value)
Definition: ManagedPrefixList.h:382
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::ManagedPrefixList::SetPrefixListArn
void SetPrefixListArn(const Aws::String &value)
Definition: ManagedPrefixList.h:212
Aws::EC2::Model::ManagedPrefixList::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: ManagedPrefixList.h:331
Aws::EC2::Model::ManagedPrefixList::WithPrefixListArn
ManagedPrefixList & WithPrefixListArn(Aws::String &&value)
Definition: ManagedPrefixList.h:232
Aws::EC2::Model::ManagedPrefixList::WithAddressFamily
ManagedPrefixList & WithAddressFamily(Aws::String &&value)
Definition: ManagedPrefixList.h:119
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::ManagedPrefixList::ManagedPrefixList
ManagedPrefixList(const Aws::Utils::Xml::XmlNode &xmlNode)
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::ManagedPrefixList
Definition: ManagedPrefixList.h:35
Aws::EC2::Model::ManagedPrefixList::GetStateMessage
const Aws::String & GetStateMessage() const
Definition: ManagedPrefixList.h:161
Aws::EC2::Model::ManagedPrefixList::SetMaxEntries
void SetMaxEntries(int value)
Definition: ManagedPrefixList.h:294
Aws::EC2::Model::ManagedPrefixList::SetPrefixListId
void SetPrefixListId(const Aws::String &value)
Definition: ManagedPrefixList.h:58
Aws::EC2::Model::ManagedPrefixList::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: ManagedPrefixList.h:341
Aws::EC2::Model::ManagedPrefixList::SetAddressFamily
void SetAddressFamily(Aws::String &&value)
Definition: ManagedPrefixList.h:104
Aws::EC2::Model::ManagedPrefixList::StateMessageHasBeenSet
bool StateMessageHasBeenSet() const
Definition: ManagedPrefixList.h:166
EC2_EXPORTS.h
Aws::EC2::Model::ManagedPrefixList::GetPrefixListId
const Aws::String & GetPrefixListId() const
Definition: ManagedPrefixList.h:48
Aws::EC2::Model::ManagedPrefixList::WithStateMessage
ManagedPrefixList & WithStateMessage(const Aws::String &value)
Definition: ManagedPrefixList.h:186
Aws::EC2::Model::ManagedPrefixList::GetState
const PrefixListState & GetState() const
Definition: ManagedPrefixList.h:130
Aws::EC2::Model::ManagedPrefixList::WithPrefixListArn
ManagedPrefixList & WithPrefixListArn(const Aws::String &value)
Definition: ManagedPrefixList.h:227
Aws::EC2::Model::ManagedPrefixList::SetPrefixListName
void SetPrefixListName(const char *value)
Definition: ManagedPrefixList.h:263
Aws::EC2::Model::ManagedPrefixList::WithPrefixListId
ManagedPrefixList & WithPrefixListId(const char *value)
Definition: ManagedPrefixList.h:83