AWS SDK for C++  1.9.71
AWS SDK for C++
DescribeTagsRequest.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 "DescribeTags"; }
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 DescribeTagsRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
72 
73 
95  inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
96 
118  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
119 
141  inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
142 
164  inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
165 
187  inline DescribeTagsRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
188 
210  inline DescribeTagsRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
211 
233  inline DescribeTagsRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
234 
256  inline DescribeTagsRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
257 
258 
264  inline int GetMaxResults() const{ return m_maxResults; }
265 
271  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
272 
278  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
279 
285  inline DescribeTagsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
286 
287 
291  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
292 
296  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
297 
301  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
302 
306  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
307 
311  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
312 
316  inline DescribeTagsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
317 
321  inline DescribeTagsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
322 
326  inline DescribeTagsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
327 
328  private:
329 
330  bool m_dryRun;
331  bool m_dryRunHasBeenSet;
332 
333  Aws::Vector<Filter> m_filters;
334  bool m_filtersHasBeenSet;
335 
336  int m_maxResults;
337  bool m_maxResultsHasBeenSet;
338 
339  Aws::String m_nextToken;
340  bool m_nextTokenHasBeenSet;
341  };
342 
343 } // namespace Model
344 } // namespace EC2
345 } // namespace Aws
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::DescribeTagsRequest::SetDryRun
void SetDryRun(bool value)
Definition: DescribeTagsRequest.h:63
Aws::EC2::Model::DescribeTagsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeTagsRequest.h:32
Aws::EC2::Model::DescribeTagsRequest::DescribeTagsRequest
DescribeTagsRequest()
Aws::EC2::Model::DescribeTagsRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: DescribeTagsRequest.h:55
Aws::EC2::Model::DescribeTagsRequest::WithNextToken
DescribeTagsRequest & WithNextToken(const char *value)
Definition: DescribeTagsRequest.h:326
Aws::EC2::Model::DescribeTagsRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::DescribeTagsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: DescribeTagsRequest.h:291
Aws::EC2::Model::Filter
Definition: Filter.h:36
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::DescribeTagsRequest::AddFilters
DescribeTagsRequest & AddFilters(const Filter &value)
Definition: DescribeTagsRequest.h:233
AWSVector.h
Aws::EC2::Model::DescribeTagsRequest::AddFilters
DescribeTagsRequest & AddFilters(Filter &&value)
Definition: DescribeTagsRequest.h:256
Filter.h
Aws::EC2::Model::DescribeTagsRequest::SetFilters
void SetFilters(Aws::Vector< Filter > &&value)
Definition: DescribeTagsRequest.h:164
Aws::EC2::Model::DescribeTagsRequest::GetDryRun
bool GetDryRun() const
Definition: DescribeTagsRequest.h:47
Aws::EC2::Model::DescribeTagsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: DescribeTagsRequest.h:311
Aws::EC2::Model::DescribeTagsRequest::GetMaxResults
int GetMaxResults() const
Definition: DescribeTagsRequest.h:264
Aws::EC2::Model::DescribeTagsRequest::WithNextToken
DescribeTagsRequest & WithNextToken(Aws::String &&value)
Definition: DescribeTagsRequest.h:321
Aws::EC2::Model::DescribeTagsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: DescribeTagsRequest.h:306
Aws::EC2::Model::DescribeTagsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: DescribeTagsRequest.h:296
Aws::EC2::Model::DescribeTagsRequest::WithDryRun
DescribeTagsRequest & WithDryRun(bool value)
Definition: DescribeTagsRequest.h:71
EC2Request.h
AWSString.h
Aws::EC2::Model::DescribeTagsRequest::WithFilters
DescribeTagsRequest & WithFilters(const Aws::Vector< Filter > &value)
Definition: DescribeTagsRequest.h:187
Aws::EC2::Model::DescribeTagsRequest::WithNextToken
DescribeTagsRequest & WithNextToken(const Aws::String &value)
Definition: DescribeTagsRequest.h:316
Aws::EC2::Model::DescribeTagsRequest::GetFilters
const Aws::Vector< Filter > & GetFilters() const
Definition: DescribeTagsRequest.h:95
Aws::EC2::Model::DescribeTagsRequest::WithMaxResults
DescribeTagsRequest & WithMaxResults(int value)
Definition: DescribeTagsRequest.h:285
Aws::EC2::Model::DescribeTagsRequest::WithFilters
DescribeTagsRequest & WithFilters(Aws::Vector< Filter > &&value)
Definition: DescribeTagsRequest.h:210
Aws::EC2::Model::DescribeTagsRequest::SetFilters
void SetFilters(const Aws::Vector< Filter > &value)
Definition: DescribeTagsRequest.h:141
Aws::EC2::Model::DescribeTagsRequest::FiltersHasBeenSet
bool FiltersHasBeenSet() const
Definition: DescribeTagsRequest.h:118
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::DescribeTagsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: DescribeTagsRequest.h:278
Aws::EC2::Model::DescribeTagsRequest
Definition: DescribeTagsRequest.h:24
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::DescribeTagsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: DescribeTagsRequest.h:271
EC2_EXPORTS.h
Aws::EC2::Model::DescribeTagsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: DescribeTagsRequest.h:301
Aws::EC2::Model::DescribeTagsRequest::SerializePayload
Aws::String SerializePayload() const override