AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ManagedPrefixList.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/ec2/model/PrefixListState.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/ec2/model/Tag.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Xml
20{
21 class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace EC2
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_EC2_API ManagedPrefixList();
38 AWS_EC2_API ManagedPrefixList(const Aws::Utils::Xml::XmlNode& xmlNode);
40
41 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
43
44
46
49 inline const Aws::String& GetPrefixListId() const{ return m_prefixListId; }
50 inline bool PrefixListIdHasBeenSet() const { return m_prefixListIdHasBeenSet; }
51 inline void SetPrefixListId(const Aws::String& value) { m_prefixListIdHasBeenSet = true; m_prefixListId = value; }
52 inline void SetPrefixListId(Aws::String&& value) { m_prefixListIdHasBeenSet = true; m_prefixListId = std::move(value); }
53 inline void SetPrefixListId(const char* value) { m_prefixListIdHasBeenSet = true; m_prefixListId.assign(value); }
54 inline ManagedPrefixList& WithPrefixListId(const Aws::String& value) { SetPrefixListId(value); return *this;}
55 inline ManagedPrefixList& WithPrefixListId(Aws::String&& value) { SetPrefixListId(std::move(value)); return *this;}
56 inline ManagedPrefixList& WithPrefixListId(const char* value) { SetPrefixListId(value); return *this;}
58
60
63 inline const Aws::String& GetAddressFamily() const{ return m_addressFamily; }
64 inline bool AddressFamilyHasBeenSet() const { return m_addressFamilyHasBeenSet; }
65 inline void SetAddressFamily(const Aws::String& value) { m_addressFamilyHasBeenSet = true; m_addressFamily = value; }
66 inline void SetAddressFamily(Aws::String&& value) { m_addressFamilyHasBeenSet = true; m_addressFamily = std::move(value); }
67 inline void SetAddressFamily(const char* value) { m_addressFamilyHasBeenSet = true; m_addressFamily.assign(value); }
68 inline ManagedPrefixList& WithAddressFamily(const Aws::String& value) { SetAddressFamily(value); return *this;}
69 inline ManagedPrefixList& WithAddressFamily(Aws::String&& value) { SetAddressFamily(std::move(value)); return *this;}
70 inline ManagedPrefixList& WithAddressFamily(const char* value) { SetAddressFamily(value); return *this;}
72
74
77 inline const PrefixListState& GetState() const{ return m_state; }
78 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
79 inline void SetState(const PrefixListState& value) { m_stateHasBeenSet = true; m_state = value; }
80 inline void SetState(PrefixListState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
81 inline ManagedPrefixList& WithState(const PrefixListState& value) { SetState(value); return *this;}
82 inline ManagedPrefixList& WithState(PrefixListState&& value) { SetState(std::move(value)); return *this;}
84
86
89 inline const Aws::String& GetStateMessage() const{ return m_stateMessage; }
90 inline bool StateMessageHasBeenSet() const { return m_stateMessageHasBeenSet; }
91 inline void SetStateMessage(const Aws::String& value) { m_stateMessageHasBeenSet = true; m_stateMessage = value; }
92 inline void SetStateMessage(Aws::String&& value) { m_stateMessageHasBeenSet = true; m_stateMessage = std::move(value); }
93 inline void SetStateMessage(const char* value) { m_stateMessageHasBeenSet = true; m_stateMessage.assign(value); }
94 inline ManagedPrefixList& WithStateMessage(const Aws::String& value) { SetStateMessage(value); return *this;}
95 inline ManagedPrefixList& WithStateMessage(Aws::String&& value) { SetStateMessage(std::move(value)); return *this;}
96 inline ManagedPrefixList& WithStateMessage(const char* value) { SetStateMessage(value); return *this;}
98
100
103 inline const Aws::String& GetPrefixListArn() const{ return m_prefixListArn; }
104 inline bool PrefixListArnHasBeenSet() const { return m_prefixListArnHasBeenSet; }
105 inline void SetPrefixListArn(const Aws::String& value) { m_prefixListArnHasBeenSet = true; m_prefixListArn = value; }
106 inline void SetPrefixListArn(Aws::String&& value) { m_prefixListArnHasBeenSet = true; m_prefixListArn = std::move(value); }
107 inline void SetPrefixListArn(const char* value) { m_prefixListArnHasBeenSet = true; m_prefixListArn.assign(value); }
108 inline ManagedPrefixList& WithPrefixListArn(const Aws::String& value) { SetPrefixListArn(value); return *this;}
109 inline ManagedPrefixList& WithPrefixListArn(Aws::String&& value) { SetPrefixListArn(std::move(value)); return *this;}
110 inline ManagedPrefixList& WithPrefixListArn(const char* value) { SetPrefixListArn(value); return *this;}
112
114
117 inline const Aws::String& GetPrefixListName() const{ return m_prefixListName; }
118 inline bool PrefixListNameHasBeenSet() const { return m_prefixListNameHasBeenSet; }
119 inline void SetPrefixListName(const Aws::String& value) { m_prefixListNameHasBeenSet = true; m_prefixListName = value; }
120 inline void SetPrefixListName(Aws::String&& value) { m_prefixListNameHasBeenSet = true; m_prefixListName = std::move(value); }
121 inline void SetPrefixListName(const char* value) { m_prefixListNameHasBeenSet = true; m_prefixListName.assign(value); }
122 inline ManagedPrefixList& WithPrefixListName(const Aws::String& value) { SetPrefixListName(value); return *this;}
123 inline ManagedPrefixList& WithPrefixListName(Aws::String&& value) { SetPrefixListName(std::move(value)); return *this;}
124 inline ManagedPrefixList& WithPrefixListName(const char* value) { SetPrefixListName(value); return *this;}
126
128
131 inline int GetMaxEntries() const{ return m_maxEntries; }
132 inline bool MaxEntriesHasBeenSet() const { return m_maxEntriesHasBeenSet; }
133 inline void SetMaxEntries(int value) { m_maxEntriesHasBeenSet = true; m_maxEntries = value; }
134 inline ManagedPrefixList& WithMaxEntries(int value) { SetMaxEntries(value); return *this;}
136
138
141 inline long long GetVersion() const{ return m_version; }
142 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
143 inline void SetVersion(long long value) { m_versionHasBeenSet = true; m_version = value; }
144 inline ManagedPrefixList& WithVersion(long long value) { SetVersion(value); return *this;}
146
148
151 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
152 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
153 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
154 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
155 inline ManagedPrefixList& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
156 inline ManagedPrefixList& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
157 inline ManagedPrefixList& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
158 inline ManagedPrefixList& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
160
162
165 inline const Aws::String& GetOwnerId() const{ return m_ownerId; }
166 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
167 inline void SetOwnerId(const Aws::String& value) { m_ownerIdHasBeenSet = true; m_ownerId = value; }
168 inline void SetOwnerId(Aws::String&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::move(value); }
169 inline void SetOwnerId(const char* value) { m_ownerIdHasBeenSet = true; m_ownerId.assign(value); }
170 inline ManagedPrefixList& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;}
171 inline ManagedPrefixList& WithOwnerId(Aws::String&& value) { SetOwnerId(std::move(value)); return *this;}
172 inline ManagedPrefixList& WithOwnerId(const char* value) { SetOwnerId(value); return *this;}
174 private:
175
176 Aws::String m_prefixListId;
177 bool m_prefixListIdHasBeenSet = false;
178
179 Aws::String m_addressFamily;
180 bool m_addressFamilyHasBeenSet = false;
181
182 PrefixListState m_state;
183 bool m_stateHasBeenSet = false;
184
185 Aws::String m_stateMessage;
186 bool m_stateMessageHasBeenSet = false;
187
188 Aws::String m_prefixListArn;
189 bool m_prefixListArnHasBeenSet = false;
190
191 Aws::String m_prefixListName;
192 bool m_prefixListNameHasBeenSet = false;
193
194 int m_maxEntries;
195 bool m_maxEntriesHasBeenSet = false;
196
197 long long m_version;
198 bool m_versionHasBeenSet = false;
199
200 Aws::Vector<Tag> m_tags;
201 bool m_tagsHasBeenSet = false;
202
203 Aws::String m_ownerId;
204 bool m_ownerIdHasBeenSet = false;
205 };
206
207} // namespace Model
208} // namespace EC2
209} // namespace Aws
void SetStateMessage(const char *value)
ManagedPrefixList & WithTags(const Aws::Vector< Tag > &value)
ManagedPrefixList & WithOwnerId(Aws::String &&value)
ManagedPrefixList & WithAddressFamily(Aws::String &&value)
const Aws::Vector< Tag > & GetTags() const
void SetAddressFamily(const Aws::String &value)
void SetStateMessage(Aws::String &&value)
ManagedPrefixList & WithStateMessage(Aws::String &&value)
void SetPrefixListName(Aws::String &&value)
void SetAddressFamily(const char *value)
ManagedPrefixList & WithOwnerId(const char *value)
AWS_EC2_API ManagedPrefixList(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetPrefixListName(const char *value)
ManagedPrefixList & WithAddressFamily(const char *value)
const Aws::String & GetPrefixListId() const
ManagedPrefixList & WithStateMessage(const Aws::String &value)
ManagedPrefixList & AddTags(Tag &&value)
ManagedPrefixList & WithAddressFamily(const Aws::String &value)
ManagedPrefixList & WithPrefixListName(const char *value)
void SetPrefixListId(const char *value)
ManagedPrefixList & WithStateMessage(const char *value)
void SetPrefixListName(const Aws::String &value)
void SetAddressFamily(Aws::String &&value)
void SetStateMessage(const Aws::String &value)
const Aws::String & GetAddressFamily() const
void SetPrefixListId(Aws::String &&value)
ManagedPrefixList & WithPrefixListName(Aws::String &&value)
ManagedPrefixList & WithOwnerId(const Aws::String &value)
void SetPrefixListArn(Aws::String &&value)
ManagedPrefixList & WithPrefixListArn(const char *value)
const Aws::String & GetPrefixListArn() const
ManagedPrefixList & WithState(const PrefixListState &value)
ManagedPrefixList & WithPrefixListId(const Aws::String &value)
void SetPrefixListArn(const Aws::String &value)
ManagedPrefixList & WithState(PrefixListState &&value)
void SetTags(const Aws::Vector< Tag > &value)
void SetState(PrefixListState &&value)
ManagedPrefixList & WithMaxEntries(int value)
void SetState(const PrefixListState &value)
ManagedPrefixList & WithPrefixListArn(const Aws::String &value)
const Aws::String & GetOwnerId() const
ManagedPrefixList & WithPrefixListId(const char *value)
void SetOwnerId(const Aws::String &value)
void SetOwnerId(Aws::String &&value)
const Aws::String & GetStateMessage() const
ManagedPrefixList & WithPrefixListId(Aws::String &&value)
void SetTags(Aws::Vector< Tag > &&value)
ManagedPrefixList & WithVersion(long long value)
const Aws::String & GetPrefixListName() const
ManagedPrefixList & AddTags(const Tag &value)
AWS_EC2_API ManagedPrefixList & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ManagedPrefixList & WithPrefixListArn(Aws::String &&value)
const PrefixListState & GetState() const
void SetPrefixListArn(const char *value)
void SetPrefixListId(const Aws::String &value)
ManagedPrefixList & WithPrefixListName(const Aws::String &value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
ManagedPrefixList & WithTags(Aws::Vector< Tag > &&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