AWS SDK for C++  1.9.67
AWS SDK for C++
CreateManagedPrefixListRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
8 #include <aws/ec2/EC2Request.h>
13 #include <utility>
14 #include <aws/core/utils/UUID.h>
15 
16 namespace Aws
17 {
18 namespace EC2
19 {
20 namespace Model
21 {
22 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "CreateManagedPrefixList"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  protected:
39  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
40 
41  public:
42 
49  inline bool GetDryRun() const{ return m_dryRun; }
50 
57  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
58 
65  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
66 
73  inline CreateManagedPrefixListRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
74 
75 
80  inline const Aws::String& GetPrefixListName() const{ return m_prefixListName; }
81 
86  inline bool PrefixListNameHasBeenSet() const { return m_prefixListNameHasBeenSet; }
87 
92  inline void SetPrefixListName(const Aws::String& value) { m_prefixListNameHasBeenSet = true; m_prefixListName = value; }
93 
98  inline void SetPrefixListName(Aws::String&& value) { m_prefixListNameHasBeenSet = true; m_prefixListName = std::move(value); }
99 
104  inline void SetPrefixListName(const char* value) { m_prefixListNameHasBeenSet = true; m_prefixListName.assign(value); }
105 
110  inline CreateManagedPrefixListRequest& WithPrefixListName(const Aws::String& value) { SetPrefixListName(value); return *this;}
111 
116  inline CreateManagedPrefixListRequest& WithPrefixListName(Aws::String&& value) { SetPrefixListName(std::move(value)); return *this;}
117 
122  inline CreateManagedPrefixListRequest& WithPrefixListName(const char* value) { SetPrefixListName(value); return *this;}
123 
124 
128  inline const Aws::Vector<AddPrefixListEntry>& GetEntries() const{ return m_entries; }
129 
133  inline bool EntriesHasBeenSet() const { return m_entriesHasBeenSet; }
134 
138  inline void SetEntries(const Aws::Vector<AddPrefixListEntry>& value) { m_entriesHasBeenSet = true; m_entries = value; }
139 
143  inline void SetEntries(Aws::Vector<AddPrefixListEntry>&& value) { m_entriesHasBeenSet = true; m_entries = std::move(value); }
144 
148  inline CreateManagedPrefixListRequest& WithEntries(const Aws::Vector<AddPrefixListEntry>& value) { SetEntries(value); return *this;}
149 
153  inline CreateManagedPrefixListRequest& WithEntries(Aws::Vector<AddPrefixListEntry>&& value) { SetEntries(std::move(value)); return *this;}
154 
158  inline CreateManagedPrefixListRequest& AddEntries(const AddPrefixListEntry& value) { m_entriesHasBeenSet = true; m_entries.push_back(value); return *this; }
159 
163  inline CreateManagedPrefixListRequest& AddEntries(AddPrefixListEntry&& value) { m_entriesHasBeenSet = true; m_entries.push_back(std::move(value)); return *this; }
164 
165 
169  inline int GetMaxEntries() const{ return m_maxEntries; }
170 
174  inline bool MaxEntriesHasBeenSet() const { return m_maxEntriesHasBeenSet; }
175 
179  inline void SetMaxEntries(int value) { m_maxEntriesHasBeenSet = true; m_maxEntries = value; }
180 
184  inline CreateManagedPrefixListRequest& WithMaxEntries(int value) { SetMaxEntries(value); return *this;}
185 
186 
190  inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const{ return m_tagSpecifications; }
191 
195  inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
196 
200  inline void SetTagSpecifications(const Aws::Vector<TagSpecification>& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = value; }
201 
205  inline void SetTagSpecifications(Aws::Vector<TagSpecification>&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::move(value); }
206 
210  inline CreateManagedPrefixListRequest& WithTagSpecifications(const Aws::Vector<TagSpecification>& value) { SetTagSpecifications(value); return *this;}
211 
215  inline CreateManagedPrefixListRequest& WithTagSpecifications(Aws::Vector<TagSpecification>&& value) { SetTagSpecifications(std::move(value)); return *this;}
216 
220  inline CreateManagedPrefixListRequest& AddTagSpecifications(const TagSpecification& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(value); return *this; }
221 
225  inline CreateManagedPrefixListRequest& AddTagSpecifications(TagSpecification&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(std::move(value)); return *this; }
226 
227 
232  inline const Aws::String& GetAddressFamily() const{ return m_addressFamily; }
233 
238  inline bool AddressFamilyHasBeenSet() const { return m_addressFamilyHasBeenSet; }
239 
244  inline void SetAddressFamily(const Aws::String& value) { m_addressFamilyHasBeenSet = true; m_addressFamily = value; }
245 
250  inline void SetAddressFamily(Aws::String&& value) { m_addressFamilyHasBeenSet = true; m_addressFamily = std::move(value); }
251 
256  inline void SetAddressFamily(const char* value) { m_addressFamilyHasBeenSet = true; m_addressFamily.assign(value); }
257 
262  inline CreateManagedPrefixListRequest& WithAddressFamily(const Aws::String& value) { SetAddressFamily(value); return *this;}
263 
268  inline CreateManagedPrefixListRequest& WithAddressFamily(Aws::String&& value) { SetAddressFamily(std::move(value)); return *this;}
269 
274  inline CreateManagedPrefixListRequest& WithAddressFamily(const char* value) { SetAddressFamily(value); return *this;}
275 
276 
283  inline const Aws::String& GetClientToken() const{ return m_clientToken; }
284 
291  inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
292 
299  inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
300 
307  inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
308 
315  inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
316 
323  inline CreateManagedPrefixListRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
324 
331  inline CreateManagedPrefixListRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
332 
339  inline CreateManagedPrefixListRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
340 
341  private:
342 
343  bool m_dryRun;
344  bool m_dryRunHasBeenSet;
345 
346  Aws::String m_prefixListName;
347  bool m_prefixListNameHasBeenSet;
348 
350  bool m_entriesHasBeenSet;
351 
352  int m_maxEntries;
353  bool m_maxEntriesHasBeenSet;
354 
355  Aws::Vector<TagSpecification> m_tagSpecifications;
356  bool m_tagSpecificationsHasBeenSet;
357 
358  Aws::String m_addressFamily;
359  bool m_addressFamilyHasBeenSet;
360 
361  Aws::String m_clientToken;
362  bool m_clientTokenHasBeenSet;
363  };
364 
365 } // namespace Model
366 } // namespace EC2
367 } // namespace Aws
TagSpecification.h
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::CreateManagedPrefixListRequest::SetMaxEntries
void SetMaxEntries(int value)
Definition: CreateManagedPrefixListRequest.h:179
Aws::EC2::Model::CreateManagedPrefixListRequest::GetTagSpecifications
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
Definition: CreateManagedPrefixListRequest.h:190
Aws::EC2::Model::CreateManagedPrefixListRequest::WithTagSpecifications
CreateManagedPrefixListRequest & WithTagSpecifications(Aws::Vector< TagSpecification > &&value)
Definition: CreateManagedPrefixListRequest.h:215
Aws::EC2::Model::CreateManagedPrefixListRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::CreateManagedPrefixListRequest::WithPrefixListName
CreateManagedPrefixListRequest & WithPrefixListName(Aws::String &&value)
Definition: CreateManagedPrefixListRequest.h:116
Aws::EC2::Model::CreateManagedPrefixListRequest::GetEntries
const Aws::Vector< AddPrefixListEntry > & GetEntries() const
Definition: CreateManagedPrefixListRequest.h:128
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::CreateManagedPrefixListRequest::WithAddressFamily
CreateManagedPrefixListRequest & WithAddressFamily(const char *value)
Definition: CreateManagedPrefixListRequest.h:274
Aws::EC2::Model::CreateManagedPrefixListRequest::WithTagSpecifications
CreateManagedPrefixListRequest & WithTagSpecifications(const Aws::Vector< TagSpecification > &value)
Definition: CreateManagedPrefixListRequest.h:210
Aws::EC2::Model::CreateManagedPrefixListRequest::WithClientToken
CreateManagedPrefixListRequest & WithClientToken(const Aws::String &value)
Definition: CreateManagedPrefixListRequest.h:323
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::CreateManagedPrefixListRequest::MaxEntriesHasBeenSet
bool MaxEntriesHasBeenSet() const
Definition: CreateManagedPrefixListRequest.h:174
Aws::EC2::Model::CreateManagedPrefixListRequest::SetAddressFamily
void SetAddressFamily(const Aws::String &value)
Definition: CreateManagedPrefixListRequest.h:244
AWSVector.h
Aws::EC2::Model::CreateManagedPrefixListRequest::SetEntries
void SetEntries(const Aws::Vector< AddPrefixListEntry > &value)
Definition: CreateManagedPrefixListRequest.h:138
Aws::EC2::Model::CreateManagedPrefixListRequest::WithClientToken
CreateManagedPrefixListRequest & WithClientToken(Aws::String &&value)
Definition: CreateManagedPrefixListRequest.h:331
Aws::EC2::Model::CreateManagedPrefixListRequest::SetPrefixListName
void SetPrefixListName(Aws::String &&value)
Definition: CreateManagedPrefixListRequest.h:98
AddPrefixListEntry.h
Aws::EC2::Model::CreateManagedPrefixListRequest::SetTagSpecifications
void SetTagSpecifications(const Aws::Vector< TagSpecification > &value)
Definition: CreateManagedPrefixListRequest.h:200
Aws::EC2::Model::CreateManagedPrefixListRequest::WithDryRun
CreateManagedPrefixListRequest & WithDryRun(bool value)
Definition: CreateManagedPrefixListRequest.h:73
Aws::EC2::Model::CreateManagedPrefixListRequest::SetDryRun
void SetDryRun(bool value)
Definition: CreateManagedPrefixListRequest.h:65
Aws::EC2::Model::CreateManagedPrefixListRequest::TagSpecificationsHasBeenSet
bool TagSpecificationsHasBeenSet() const
Definition: CreateManagedPrefixListRequest.h:195
Aws::EC2::Model::CreateManagedPrefixListRequest::ClientTokenHasBeenSet
bool ClientTokenHasBeenSet() const
Definition: CreateManagedPrefixListRequest.h:291
Aws::EC2::Model::CreateManagedPrefixListRequest::CreateManagedPrefixListRequest
CreateManagedPrefixListRequest()
Aws::EC2::Model::CreateManagedPrefixListRequest::SetClientToken
void SetClientToken(Aws::String &&value)
Definition: CreateManagedPrefixListRequest.h:307
Aws::EC2::Model::CreateManagedPrefixListRequest::PrefixListNameHasBeenSet
bool PrefixListNameHasBeenSet() const
Definition: CreateManagedPrefixListRequest.h:86
Aws::EC2::Model::CreateManagedPrefixListRequest::SetTagSpecifications
void SetTagSpecifications(Aws::Vector< TagSpecification > &&value)
Definition: CreateManagedPrefixListRequest.h:205
Aws::EC2::Model::CreateManagedPrefixListRequest
Definition: CreateManagedPrefixListRequest.h:26
EC2Request.h
Aws::EC2::Model::CreateManagedPrefixListRequest::GetMaxEntries
int GetMaxEntries() const
Definition: CreateManagedPrefixListRequest.h:169
Aws::EC2::Model::CreateManagedPrefixListRequest::WithEntries
CreateManagedPrefixListRequest & WithEntries(Aws::Vector< AddPrefixListEntry > &&value)
Definition: CreateManagedPrefixListRequest.h:153
Aws::EC2::Model::CreateManagedPrefixListRequest::WithClientToken
CreateManagedPrefixListRequest & WithClientToken(const char *value)
Definition: CreateManagedPrefixListRequest.h:339
Aws::EC2::Model::CreateManagedPrefixListRequest::SetPrefixListName
void SetPrefixListName(const Aws::String &value)
Definition: CreateManagedPrefixListRequest.h:92
Aws::EC2::Model::CreateManagedPrefixListRequest::WithAddressFamily
CreateManagedPrefixListRequest & WithAddressFamily(Aws::String &&value)
Definition: CreateManagedPrefixListRequest.h:268
Aws::EC2::Model::CreateManagedPrefixListRequest::GetClientToken
const Aws::String & GetClientToken() const
Definition: CreateManagedPrefixListRequest.h:283
AWSString.h
Aws::EC2::Model::CreateManagedPrefixListRequest::GetAddressFamily
const Aws::String & GetAddressFamily() const
Definition: CreateManagedPrefixListRequest.h:232
Aws::EC2::Model::CreateManagedPrefixListRequest::WithAddressFamily
CreateManagedPrefixListRequest & WithAddressFamily(const Aws::String &value)
Definition: CreateManagedPrefixListRequest.h:262
Aws::EC2::Model::CreateManagedPrefixListRequest::SetAddressFamily
void SetAddressFamily(Aws::String &&value)
Definition: CreateManagedPrefixListRequest.h:250
Aws::EC2::Model::CreateManagedPrefixListRequest::SetClientToken
void SetClientToken(const Aws::String &value)
Definition: CreateManagedPrefixListRequest.h:299
Aws::EC2::Model::CreateManagedPrefixListRequest::GetDryRun
bool GetDryRun() const
Definition: CreateManagedPrefixListRequest.h:49
Aws::EC2::Model::CreateManagedPrefixListRequest::WithEntries
CreateManagedPrefixListRequest & WithEntries(const Aws::Vector< AddPrefixListEntry > &value)
Definition: CreateManagedPrefixListRequest.h:148
Aws::EC2::Model::CreateManagedPrefixListRequest::SetAddressFamily
void SetAddressFamily(const char *value)
Definition: CreateManagedPrefixListRequest.h:256
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::CreateManagedPrefixListRequest::WithPrefixListName
CreateManagedPrefixListRequest & WithPrefixListName(const Aws::String &value)
Definition: CreateManagedPrefixListRequest.h:110
Aws::EC2::Model::CreateManagedPrefixListRequest::SetEntries
void SetEntries(Aws::Vector< AddPrefixListEntry > &&value)
Definition: CreateManagedPrefixListRequest.h:143
Aws::EC2::Model::CreateManagedPrefixListRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: CreateManagedPrefixListRequest.h:57
Aws::EC2::Model::CreateManagedPrefixListRequest::SetPrefixListName
void SetPrefixListName(const char *value)
Definition: CreateManagedPrefixListRequest.h:104
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::CreateManagedPrefixListRequest::AddTagSpecifications
CreateManagedPrefixListRequest & AddTagSpecifications(TagSpecification &&value)
Definition: CreateManagedPrefixListRequest.h:225
Aws::EC2::Model::CreateManagedPrefixListRequest::SetClientToken
void SetClientToken(const char *value)
Definition: CreateManagedPrefixListRequest.h:315
Aws::EC2::Model::CreateManagedPrefixListRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateManagedPrefixListRequest.h:34
Aws::EC2::Model::CreateManagedPrefixListRequest::WithPrefixListName
CreateManagedPrefixListRequest & WithPrefixListName(const char *value)
Definition: CreateManagedPrefixListRequest.h:122
Aws::EC2::Model::CreateManagedPrefixListRequest::GetPrefixListName
const Aws::String & GetPrefixListName() const
Definition: CreateManagedPrefixListRequest.h:80
UUID.h
Aws::EC2::Model::TagSpecification
Definition: TagSpecification.h:35
Aws::EC2::Model::CreateManagedPrefixListRequest::EntriesHasBeenSet
bool EntriesHasBeenSet() const
Definition: CreateManagedPrefixListRequest.h:133
EC2_EXPORTS.h
Aws::EC2::Model::CreateManagedPrefixListRequest::AddEntries
CreateManagedPrefixListRequest & AddEntries(const AddPrefixListEntry &value)
Definition: CreateManagedPrefixListRequest.h:158
Aws::EC2::Model::CreateManagedPrefixListRequest::AddressFamilyHasBeenSet
bool AddressFamilyHasBeenSet() const
Definition: CreateManagedPrefixListRequest.h:238
Aws::EC2::Model::CreateManagedPrefixListRequest::AddTagSpecifications
CreateManagedPrefixListRequest & AddTagSpecifications(const TagSpecification &value)
Definition: CreateManagedPrefixListRequest.h:220
Aws::EC2::Model::CreateManagedPrefixListRequest::WithMaxEntries
CreateManagedPrefixListRequest & WithMaxEntries(int value)
Definition: CreateManagedPrefixListRequest.h:184
Aws::EC2::Model::AddPrefixListEntry
Definition: AddPrefixListEntry.h:32
Aws::EC2::Model::CreateManagedPrefixListRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::CreateManagedPrefixListRequest::AddEntries
CreateManagedPrefixListRequest & AddEntries(AddPrefixListEntry &&value)
Definition: CreateManagedPrefixListRequest.h:163