AWS SDK for C++  1.9.129
AWS SDK for C++
DescribeManagedPrefixListsRequest.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>
11 #include <aws/ec2/model/Filter.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace EC2
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "DescribeManagedPrefixLists"; }
33 
34  Aws::String SerializePayload() const override;
35 
36  protected:
37  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38 
39  public:
40 
47  inline bool GetDryRun() const{ return m_dryRun; }
48 
55  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
56 
63  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
64 
71  inline DescribeManagedPrefixListsRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
72 
73 
80  inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
81 
88  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
89 
96  inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
97 
104  inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
105 
112  inline DescribeManagedPrefixListsRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
113 
120  inline DescribeManagedPrefixListsRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
121 
128  inline DescribeManagedPrefixListsRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
129 
136  inline DescribeManagedPrefixListsRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
137 
138 
144  inline int GetMaxResults() const{ return m_maxResults; }
145 
151  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
152 
158  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
159 
165  inline DescribeManagedPrefixListsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
166 
167 
171  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
172 
176  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
177 
181  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
182 
186  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
187 
191  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
192 
196  inline DescribeManagedPrefixListsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
197 
201  inline DescribeManagedPrefixListsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
202 
206  inline DescribeManagedPrefixListsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
207 
208 
212  inline const Aws::Vector<Aws::String>& GetPrefixListIds() const{ return m_prefixListIds; }
213 
217  inline bool PrefixListIdsHasBeenSet() const { return m_prefixListIdsHasBeenSet; }
218 
222  inline void SetPrefixListIds(const Aws::Vector<Aws::String>& value) { m_prefixListIdsHasBeenSet = true; m_prefixListIds = value; }
223 
227  inline void SetPrefixListIds(Aws::Vector<Aws::String>&& value) { m_prefixListIdsHasBeenSet = true; m_prefixListIds = std::move(value); }
228 
232  inline DescribeManagedPrefixListsRequest& WithPrefixListIds(const Aws::Vector<Aws::String>& value) { SetPrefixListIds(value); return *this;}
233 
237  inline DescribeManagedPrefixListsRequest& WithPrefixListIds(Aws::Vector<Aws::String>&& value) { SetPrefixListIds(std::move(value)); return *this;}
238 
242  inline DescribeManagedPrefixListsRequest& AddPrefixListIds(const Aws::String& value) { m_prefixListIdsHasBeenSet = true; m_prefixListIds.push_back(value); return *this; }
243 
247  inline DescribeManagedPrefixListsRequest& AddPrefixListIds(Aws::String&& value) { m_prefixListIdsHasBeenSet = true; m_prefixListIds.push_back(std::move(value)); return *this; }
248 
252  inline DescribeManagedPrefixListsRequest& AddPrefixListIds(const char* value) { m_prefixListIdsHasBeenSet = true; m_prefixListIds.push_back(value); return *this; }
253 
254  private:
255 
256  bool m_dryRun;
257  bool m_dryRunHasBeenSet;
258 
259  Aws::Vector<Filter> m_filters;
260  bool m_filtersHasBeenSet;
261 
262  int m_maxResults;
263  bool m_maxResultsHasBeenSet;
264 
265  Aws::String m_nextToken;
266  bool m_nextTokenHasBeenSet;
267 
268  Aws::Vector<Aws::String> m_prefixListIds;
269  bool m_prefixListIdsHasBeenSet;
270  };
271 
272 } // namespace Model
273 } // namespace EC2
274 } // namespace Aws
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::DescribeManagedPrefixListsRequest::GetPrefixListIds
const Aws::Vector< Aws::String > & GetPrefixListIds() const
Definition: DescribeManagedPrefixListsRequest.h:212
Aws::EC2::Model::DescribeManagedPrefixListsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: DescribeManagedPrefixListsRequest.h:176
Aws::EC2::Model::DescribeManagedPrefixListsRequest::GetDryRun
bool GetDryRun() const
Definition: DescribeManagedPrefixListsRequest.h:47
Aws::EC2::Model::DescribeManagedPrefixListsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: DescribeManagedPrefixListsRequest.h:171
Aws::EC2::Model::DescribeManagedPrefixListsRequest::WithNextToken
DescribeManagedPrefixListsRequest & WithNextToken(const Aws::String &value)
Definition: DescribeManagedPrefixListsRequest.h:196
Aws::EC2::Model::DescribeManagedPrefixListsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: DescribeManagedPrefixListsRequest.h:181
Aws::EC2::Model::DescribeManagedPrefixListsRequest::SerializePayload
Aws::String SerializePayload() const override
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::DescribeManagedPrefixListsRequest::SetFilters
void SetFilters(const Aws::Vector< Filter > &value)
Definition: DescribeManagedPrefixListsRequest.h:96
Aws::EC2::Model::Filter
Definition: Filter.h:36
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::DescribeManagedPrefixListsRequest::AddPrefixListIds
DescribeManagedPrefixListsRequest & AddPrefixListIds(const Aws::String &value)
Definition: DescribeManagedPrefixListsRequest.h:242
Aws::EC2::Model::DescribeManagedPrefixListsRequest::AddFilters
DescribeManagedPrefixListsRequest & AddFilters(const Filter &value)
Definition: DescribeManagedPrefixListsRequest.h:128
Aws::EC2::Model::DescribeManagedPrefixListsRequest::WithNextToken
DescribeManagedPrefixListsRequest & WithNextToken(const char *value)
Definition: DescribeManagedPrefixListsRequest.h:206
AWSVector.h
Filter.h
Aws::EC2::Model::DescribeManagedPrefixListsRequest::WithMaxResults
DescribeManagedPrefixListsRequest & WithMaxResults(int value)
Definition: DescribeManagedPrefixListsRequest.h:165
Aws::EC2::Model::DescribeManagedPrefixListsRequest::FiltersHasBeenSet
bool FiltersHasBeenSet() const
Definition: DescribeManagedPrefixListsRequest.h:88
Aws::EC2::Model::DescribeManagedPrefixListsRequest::SetPrefixListIds
void SetPrefixListIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeManagedPrefixListsRequest.h:222
Aws::EC2::Model::DescribeManagedPrefixListsRequest::WithFilters
DescribeManagedPrefixListsRequest & WithFilters(const Aws::Vector< Filter > &value)
Definition: DescribeManagedPrefixListsRequest.h:112
Aws::EC2::Model::DescribeManagedPrefixListsRequest::SetDryRun
void SetDryRun(bool value)
Definition: DescribeManagedPrefixListsRequest.h:63
Aws::EC2::Model::DescribeManagedPrefixListsRequest::SetFilters
void SetFilters(Aws::Vector< Filter > &&value)
Definition: DescribeManagedPrefixListsRequest.h:104
Aws::EC2::Model::DescribeManagedPrefixListsRequest::PrefixListIdsHasBeenSet
bool PrefixListIdsHasBeenSet() const
Definition: DescribeManagedPrefixListsRequest.h:217
Aws::EC2::Model::DescribeManagedPrefixListsRequest::SetPrefixListIds
void SetPrefixListIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeManagedPrefixListsRequest.h:227
Aws::EC2::Model::DescribeManagedPrefixListsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: DescribeManagedPrefixListsRequest.h:158
Aws::EC2::Model::DescribeManagedPrefixListsRequest::AddPrefixListIds
DescribeManagedPrefixListsRequest & AddPrefixListIds(Aws::String &&value)
Definition: DescribeManagedPrefixListsRequest.h:247
EC2Request.h
AWSString.h
Aws::EC2::Model::DescribeManagedPrefixListsRequest::WithPrefixListIds
DescribeManagedPrefixListsRequest & WithPrefixListIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeManagedPrefixListsRequest.h:237
Aws::EC2::Model::DescribeManagedPrefixListsRequest::AddFilters
DescribeManagedPrefixListsRequest & AddFilters(Filter &&value)
Definition: DescribeManagedPrefixListsRequest.h:136
Aws::EC2::Model::DescribeManagedPrefixListsRequest::DescribeManagedPrefixListsRequest
DescribeManagedPrefixListsRequest()
Aws::EC2::Model::DescribeManagedPrefixListsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeManagedPrefixListsRequest.h:32
Aws::EC2::Model::DescribeManagedPrefixListsRequest::WithNextToken
DescribeManagedPrefixListsRequest & WithNextToken(Aws::String &&value)
Definition: DescribeManagedPrefixListsRequest.h:201
Aws::EC2::Model::DescribeManagedPrefixListsRequest::WithDryRun
DescribeManagedPrefixListsRequest & WithDryRun(bool value)
Definition: DescribeManagedPrefixListsRequest.h:71
Aws::EC2::Model::DescribeManagedPrefixListsRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: DescribeManagedPrefixListsRequest.h:55
Aws::EC2::Model::DescribeManagedPrefixListsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: DescribeManagedPrefixListsRequest.h:151
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::DescribeManagedPrefixListsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: DescribeManagedPrefixListsRequest.h:191
Aws::EC2::Model::DescribeManagedPrefixListsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: DescribeManagedPrefixListsRequest.h:186
Aws::EC2::Model::DescribeManagedPrefixListsRequest::AddPrefixListIds
DescribeManagedPrefixListsRequest & AddPrefixListIds(const char *value)
Definition: DescribeManagedPrefixListsRequest.h:252
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::DescribeManagedPrefixListsRequest::WithPrefixListIds
DescribeManagedPrefixListsRequest & WithPrefixListIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeManagedPrefixListsRequest.h:232
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::DescribeManagedPrefixListsRequest::GetMaxResults
int GetMaxResults() const
Definition: DescribeManagedPrefixListsRequest.h:144
Aws::EC2::Model::DescribeManagedPrefixListsRequest::WithFilters
DescribeManagedPrefixListsRequest & WithFilters(Aws::Vector< Filter > &&value)
Definition: DescribeManagedPrefixListsRequest.h:120
Aws::EC2::Model::DescribeManagedPrefixListsRequest::GetFilters
const Aws::Vector< Filter > & GetFilters() const
Definition: DescribeManagedPrefixListsRequest.h:80
Aws::EC2::Model::DescribeManagedPrefixListsRequest
Definition: DescribeManagedPrefixListsRequest.h:24
Aws::EC2::Model::DescribeManagedPrefixListsRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
EC2_EXPORTS.h