AWS SDK for C++  1.9.67
AWS SDK for C++
ModifyManagedPrefixListRequest.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 
15 namespace Aws
16 {
17 namespace EC2
18 {
19 namespace Model
20 {
21 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "ModifyManagedPrefixList"; }
34 
35  Aws::String SerializePayload() const override;
36 
37  protected:
38  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
39 
40  public:
41 
48  inline bool GetDryRun() const{ return m_dryRun; }
49 
56  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
57 
64  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
65 
72  inline ModifyManagedPrefixListRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
73 
74 
78  inline const Aws::String& GetPrefixListId() const{ return m_prefixListId; }
79 
83  inline bool PrefixListIdHasBeenSet() const { return m_prefixListIdHasBeenSet; }
84 
88  inline void SetPrefixListId(const Aws::String& value) { m_prefixListIdHasBeenSet = true; m_prefixListId = value; }
89 
93  inline void SetPrefixListId(Aws::String&& value) { m_prefixListIdHasBeenSet = true; m_prefixListId = std::move(value); }
94 
98  inline void SetPrefixListId(const char* value) { m_prefixListIdHasBeenSet = true; m_prefixListId.assign(value); }
99 
103  inline ModifyManagedPrefixListRequest& WithPrefixListId(const Aws::String& value) { SetPrefixListId(value); return *this;}
104 
108  inline ModifyManagedPrefixListRequest& WithPrefixListId(Aws::String&& value) { SetPrefixListId(std::move(value)); return *this;}
109 
113  inline ModifyManagedPrefixListRequest& WithPrefixListId(const char* value) { SetPrefixListId(value); return *this;}
114 
115 
119  inline long long GetCurrentVersion() const{ return m_currentVersion; }
120 
124  inline bool CurrentVersionHasBeenSet() const { return m_currentVersionHasBeenSet; }
125 
129  inline void SetCurrentVersion(long long value) { m_currentVersionHasBeenSet = true; m_currentVersion = value; }
130 
134  inline ModifyManagedPrefixListRequest& WithCurrentVersion(long long value) { SetCurrentVersion(value); return *this;}
135 
136 
140  inline const Aws::String& GetPrefixListName() const{ return m_prefixListName; }
141 
145  inline bool PrefixListNameHasBeenSet() const { return m_prefixListNameHasBeenSet; }
146 
150  inline void SetPrefixListName(const Aws::String& value) { m_prefixListNameHasBeenSet = true; m_prefixListName = value; }
151 
155  inline void SetPrefixListName(Aws::String&& value) { m_prefixListNameHasBeenSet = true; m_prefixListName = std::move(value); }
156 
160  inline void SetPrefixListName(const char* value) { m_prefixListNameHasBeenSet = true; m_prefixListName.assign(value); }
161 
165  inline ModifyManagedPrefixListRequest& WithPrefixListName(const Aws::String& value) { SetPrefixListName(value); return *this;}
166 
170  inline ModifyManagedPrefixListRequest& WithPrefixListName(Aws::String&& value) { SetPrefixListName(std::move(value)); return *this;}
171 
175  inline ModifyManagedPrefixListRequest& WithPrefixListName(const char* value) { SetPrefixListName(value); return *this;}
176 
177 
181  inline const Aws::Vector<AddPrefixListEntry>& GetAddEntries() const{ return m_addEntries; }
182 
186  inline bool AddEntriesHasBeenSet() const { return m_addEntriesHasBeenSet; }
187 
191  inline void SetAddEntries(const Aws::Vector<AddPrefixListEntry>& value) { m_addEntriesHasBeenSet = true; m_addEntries = value; }
192 
196  inline void SetAddEntries(Aws::Vector<AddPrefixListEntry>&& value) { m_addEntriesHasBeenSet = true; m_addEntries = std::move(value); }
197 
201  inline ModifyManagedPrefixListRequest& WithAddEntries(const Aws::Vector<AddPrefixListEntry>& value) { SetAddEntries(value); return *this;}
202 
206  inline ModifyManagedPrefixListRequest& WithAddEntries(Aws::Vector<AddPrefixListEntry>&& value) { SetAddEntries(std::move(value)); return *this;}
207 
211  inline ModifyManagedPrefixListRequest& AddAddEntries(const AddPrefixListEntry& value) { m_addEntriesHasBeenSet = true; m_addEntries.push_back(value); return *this; }
212 
216  inline ModifyManagedPrefixListRequest& AddAddEntries(AddPrefixListEntry&& value) { m_addEntriesHasBeenSet = true; m_addEntries.push_back(std::move(value)); return *this; }
217 
218 
222  inline const Aws::Vector<RemovePrefixListEntry>& GetRemoveEntries() const{ return m_removeEntries; }
223 
227  inline bool RemoveEntriesHasBeenSet() const { return m_removeEntriesHasBeenSet; }
228 
232  inline void SetRemoveEntries(const Aws::Vector<RemovePrefixListEntry>& value) { m_removeEntriesHasBeenSet = true; m_removeEntries = value; }
233 
237  inline void SetRemoveEntries(Aws::Vector<RemovePrefixListEntry>&& value) { m_removeEntriesHasBeenSet = true; m_removeEntries = std::move(value); }
238 
242  inline ModifyManagedPrefixListRequest& WithRemoveEntries(const Aws::Vector<RemovePrefixListEntry>& value) { SetRemoveEntries(value); return *this;}
243 
247  inline ModifyManagedPrefixListRequest& WithRemoveEntries(Aws::Vector<RemovePrefixListEntry>&& value) { SetRemoveEntries(std::move(value)); return *this;}
248 
252  inline ModifyManagedPrefixListRequest& AddRemoveEntries(const RemovePrefixListEntry& value) { m_removeEntriesHasBeenSet = true; m_removeEntries.push_back(value); return *this; }
253 
257  inline ModifyManagedPrefixListRequest& AddRemoveEntries(RemovePrefixListEntry&& value) { m_removeEntriesHasBeenSet = true; m_removeEntries.push_back(std::move(value)); return *this; }
258 
259  private:
260 
261  bool m_dryRun;
262  bool m_dryRunHasBeenSet;
263 
264  Aws::String m_prefixListId;
265  bool m_prefixListIdHasBeenSet;
266 
267  long long m_currentVersion;
268  bool m_currentVersionHasBeenSet;
269 
270  Aws::String m_prefixListName;
271  bool m_prefixListNameHasBeenSet;
272 
273  Aws::Vector<AddPrefixListEntry> m_addEntries;
274  bool m_addEntriesHasBeenSet;
275 
276  Aws::Vector<RemovePrefixListEntry> m_removeEntries;
277  bool m_removeEntriesHasBeenSet;
278  };
279 
280 } // namespace Model
281 } // namespace EC2
282 } // namespace Aws
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::ModifyManagedPrefixListRequest::WithRemoveEntries
ModifyManagedPrefixListRequest & WithRemoveEntries(Aws::Vector< RemovePrefixListEntry > &&value)
Definition: ModifyManagedPrefixListRequest.h:247
Aws::EC2::Model::ModifyManagedPrefixListRequest::SetAddEntries
void SetAddEntries(Aws::Vector< AddPrefixListEntry > &&value)
Definition: ModifyManagedPrefixListRequest.h:196
Aws::EC2::Model::ModifyManagedPrefixListRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::ModifyManagedPrefixListRequest::WithPrefixListName
ModifyManagedPrefixListRequest & WithPrefixListName(Aws::String &&value)
Definition: ModifyManagedPrefixListRequest.h:170
Aws::EC2::Model::ModifyManagedPrefixListRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ModifyManagedPrefixListRequest.h:33
Aws::EC2::Model::ModifyManagedPrefixListRequest
Definition: ModifyManagedPrefixListRequest.h:25
Aws::EC2::Model::ModifyManagedPrefixListRequest::GetCurrentVersion
long long GetCurrentVersion() const
Definition: ModifyManagedPrefixListRequest.h:119
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::ModifyManagedPrefixListRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::ModifyManagedPrefixListRequest::AddAddEntries
ModifyManagedPrefixListRequest & AddAddEntries(AddPrefixListEntry &&value)
Definition: ModifyManagedPrefixListRequest.h:216
Aws::EC2::Model::ModifyManagedPrefixListRequest::SetDryRun
void SetDryRun(bool value)
Definition: ModifyManagedPrefixListRequest.h:64
Aws::EC2::Model::ModifyManagedPrefixListRequest::AddAddEntries
ModifyManagedPrefixListRequest & AddAddEntries(const AddPrefixListEntry &value)
Definition: ModifyManagedPrefixListRequest.h:211
AWSVector.h
Aws::EC2::Model::ModifyManagedPrefixListRequest::WithPrefixListId
ModifyManagedPrefixListRequest & WithPrefixListId(const Aws::String &value)
Definition: ModifyManagedPrefixListRequest.h:103
AddPrefixListEntry.h
Aws::EC2::Model::ModifyManagedPrefixListRequest::WithPrefixListId
ModifyManagedPrefixListRequest & WithPrefixListId(Aws::String &&value)
Definition: ModifyManagedPrefixListRequest.h:108
Aws::EC2::Model::ModifyManagedPrefixListRequest::RemoveEntriesHasBeenSet
bool RemoveEntriesHasBeenSet() const
Definition: ModifyManagedPrefixListRequest.h:227
Aws::EC2::Model::ModifyManagedPrefixListRequest::GetRemoveEntries
const Aws::Vector< RemovePrefixListEntry > & GetRemoveEntries() const
Definition: ModifyManagedPrefixListRequest.h:222
Aws::EC2::Model::ModifyManagedPrefixListRequest::WithAddEntries
ModifyManagedPrefixListRequest & WithAddEntries(const Aws::Vector< AddPrefixListEntry > &value)
Definition: ModifyManagedPrefixListRequest.h:201
Aws::EC2::Model::ModifyManagedPrefixListRequest::WithPrefixListId
ModifyManagedPrefixListRequest & WithPrefixListId(const char *value)
Definition: ModifyManagedPrefixListRequest.h:113
EC2Request.h
Aws::EC2::Model::ModifyManagedPrefixListRequest::SetPrefixListId
void SetPrefixListId(const char *value)
Definition: ModifyManagedPrefixListRequest.h:98
Aws::EC2::Model::ModifyManagedPrefixListRequest::GetPrefixListId
const Aws::String & GetPrefixListId() const
Definition: ModifyManagedPrefixListRequest.h:78
AWSString.h
Aws::EC2::Model::ModifyManagedPrefixListRequest::WithRemoveEntries
ModifyManagedPrefixListRequest & WithRemoveEntries(const Aws::Vector< RemovePrefixListEntry > &value)
Definition: ModifyManagedPrefixListRequest.h:242
Aws::EC2::Model::ModifyManagedPrefixListRequest::WithPrefixListName
ModifyManagedPrefixListRequest & WithPrefixListName(const char *value)
Definition: ModifyManagedPrefixListRequest.h:175
Aws::EC2::Model::ModifyManagedPrefixListRequest::SetPrefixListName
void SetPrefixListName(const Aws::String &value)
Definition: ModifyManagedPrefixListRequest.h:150
Aws::EC2::Model::ModifyManagedPrefixListRequest::PrefixListNameHasBeenSet
bool PrefixListNameHasBeenSet() const
Definition: ModifyManagedPrefixListRequest.h:145
Aws::EC2::Model::ModifyManagedPrefixListRequest::GetPrefixListName
const Aws::String & GetPrefixListName() const
Definition: ModifyManagedPrefixListRequest.h:140
Aws::EC2::Model::ModifyManagedPrefixListRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: ModifyManagedPrefixListRequest.h:56
Aws::EC2::Model::ModifyManagedPrefixListRequest::SetRemoveEntries
void SetRemoveEntries(const Aws::Vector< RemovePrefixListEntry > &value)
Definition: ModifyManagedPrefixListRequest.h:232
Aws::EC2::Model::ModifyManagedPrefixListRequest::GetDryRun
bool GetDryRun() const
Definition: ModifyManagedPrefixListRequest.h:48
Aws::EC2::Model::ModifyManagedPrefixListRequest::PrefixListIdHasBeenSet
bool PrefixListIdHasBeenSet() const
Definition: ModifyManagedPrefixListRequest.h:83
Aws::EC2::Model::ModifyManagedPrefixListRequest::WithCurrentVersion
ModifyManagedPrefixListRequest & WithCurrentVersion(long long value)
Definition: ModifyManagedPrefixListRequest.h:134
Aws::EC2::Model::ModifyManagedPrefixListRequest::WithDryRun
ModifyManagedPrefixListRequest & WithDryRun(bool value)
Definition: ModifyManagedPrefixListRequest.h:72
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::ModifyManagedPrefixListRequest::SetPrefixListId
void SetPrefixListId(Aws::String &&value)
Definition: ModifyManagedPrefixListRequest.h:93
Aws::EC2::Model::ModifyManagedPrefixListRequest::GetAddEntries
const Aws::Vector< AddPrefixListEntry > & GetAddEntries() const
Definition: ModifyManagedPrefixListRequest.h:181
Aws::EC2::Model::ModifyManagedPrefixListRequest::SetRemoveEntries
void SetRemoveEntries(Aws::Vector< RemovePrefixListEntry > &&value)
Definition: ModifyManagedPrefixListRequest.h:237
Aws::EC2::Model::ModifyManagedPrefixListRequest::WithPrefixListName
ModifyManagedPrefixListRequest & WithPrefixListName(const Aws::String &value)
Definition: ModifyManagedPrefixListRequest.h:165
Aws::EC2::Model::ModifyManagedPrefixListRequest::CurrentVersionHasBeenSet
bool CurrentVersionHasBeenSet() const
Definition: ModifyManagedPrefixListRequest.h:124
Aws::EC2::Model::ModifyManagedPrefixListRequest::AddRemoveEntries
ModifyManagedPrefixListRequest & AddRemoveEntries(const RemovePrefixListEntry &value)
Definition: ModifyManagedPrefixListRequest.h:252
Aws::EC2::Model::ModifyManagedPrefixListRequest::SetCurrentVersion
void SetCurrentVersion(long long value)
Definition: ModifyManagedPrefixListRequest.h:129
Aws::EC2::Model::ModifyManagedPrefixListRequest::AddEntriesHasBeenSet
bool AddEntriesHasBeenSet() const
Definition: ModifyManagedPrefixListRequest.h:186
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::ModifyManagedPrefixListRequest::AddRemoveEntries
ModifyManagedPrefixListRequest & AddRemoveEntries(RemovePrefixListEntry &&value)
Definition: ModifyManagedPrefixListRequest.h:257
RemovePrefixListEntry.h
Aws::EC2::Model::ModifyManagedPrefixListRequest::SetPrefixListName
void SetPrefixListName(const char *value)
Definition: ModifyManagedPrefixListRequest.h:160
Aws::EC2::Model::ModifyManagedPrefixListRequest::SetPrefixListName
void SetPrefixListName(Aws::String &&value)
Definition: ModifyManagedPrefixListRequest.h:155
Aws::EC2::Model::ModifyManagedPrefixListRequest::SetPrefixListId
void SetPrefixListId(const Aws::String &value)
Definition: ModifyManagedPrefixListRequest.h:88
EC2_EXPORTS.h
Aws::EC2::Model::ModifyManagedPrefixListRequest::ModifyManagedPrefixListRequest
ModifyManagedPrefixListRequest()
Aws::EC2::Model::RemovePrefixListEntry
Definition: RemovePrefixListEntry.h:32
Aws::EC2::Model::ModifyManagedPrefixListRequest::SetAddEntries
void SetAddEntries(const Aws::Vector< AddPrefixListEntry > &value)
Definition: ModifyManagedPrefixListRequest.h:191
Aws::EC2::Model::ModifyManagedPrefixListRequest::WithAddEntries
ModifyManagedPrefixListRequest & WithAddEntries(Aws::Vector< AddPrefixListEntry > &&value)
Definition: ModifyManagedPrefixListRequest.h:206
Aws::EC2::Model::AddPrefixListEntry
Definition: AddPrefixListEntry.h:32