AWS SDK for C++  1.8.71
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
CreateManagedPrefixListRequest & WithTagSpecifications(const Aws::Vector< TagSpecification > &value)
CreateManagedPrefixListRequest & AddEntries(const AddPrefixListEntry &value)
CreateManagedPrefixListRequest & WithEntries(const Aws::Vector< AddPrefixListEntry > &value)
void SetTagSpecifications(Aws::Vector< TagSpecification > &&value)
CreateManagedPrefixListRequest & WithClientToken(const char *value)
CreateManagedPrefixListRequest & WithPrefixListName(Aws::String &&value)
void SetEntries(const Aws::Vector< AddPrefixListEntry > &value)
CreateManagedPrefixListRequest & WithDryRun(bool value)
void SetEntries(Aws::Vector< AddPrefixListEntry > &&value)
virtual const char * GetServiceRequestName() const override
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
CreateManagedPrefixListRequest & WithTagSpecifications(Aws::Vector< TagSpecification > &&value)
CreateManagedPrefixListRequest & WithPrefixListName(const char *value)
CreateManagedPrefixListRequest & WithAddressFamily(const Aws::String &value)
CreateManagedPrefixListRequest & WithPrefixListName(const Aws::String &value)
CreateManagedPrefixListRequest & AddEntries(AddPrefixListEntry &&value)
void SetTagSpecifications(const Aws::Vector< TagSpecification > &value)
CreateManagedPrefixListRequest & WithEntries(Aws::Vector< AddPrefixListEntry > &&value)
CreateManagedPrefixListRequest & WithMaxEntries(int value)
const Aws::Vector< AddPrefixListEntry > & GetEntries() const
CreateManagedPrefixListRequest & WithAddressFamily(const char *value)
CreateManagedPrefixListRequest & WithAddressFamily(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CreateManagedPrefixListRequest & WithClientToken(Aws::String &&value)
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
CreateManagedPrefixListRequest & WithClientToken(const Aws::String &value)
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
CreateManagedPrefixListRequest & AddTagSpecifications(const TagSpecification &value)
CreateManagedPrefixListRequest & AddTagSpecifications(TagSpecification &&value)