AWS SDK for C++  1.9.67
AWS SDK for C++
DescribeStoreImageTasksRequest.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 "DescribeStoreImageTasks"; }
33 
34  Aws::String SerializePayload() const override;
35 
36  protected:
37  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38 
39  public:
40 
45  inline const Aws::Vector<Aws::String>& GetImageIds() const{ return m_imageIds; }
46 
51  inline bool ImageIdsHasBeenSet() const { return m_imageIdsHasBeenSet; }
52 
57  inline void SetImageIds(const Aws::Vector<Aws::String>& value) { m_imageIdsHasBeenSet = true; m_imageIds = value; }
58 
63  inline void SetImageIds(Aws::Vector<Aws::String>&& value) { m_imageIdsHasBeenSet = true; m_imageIds = std::move(value); }
64 
69  inline DescribeStoreImageTasksRequest& WithImageIds(const Aws::Vector<Aws::String>& value) { SetImageIds(value); return *this;}
70 
75  inline DescribeStoreImageTasksRequest& WithImageIds(Aws::Vector<Aws::String>&& value) { SetImageIds(std::move(value)); return *this;}
76 
81  inline DescribeStoreImageTasksRequest& AddImageIds(const Aws::String& value) { m_imageIdsHasBeenSet = true; m_imageIds.push_back(value); return *this; }
82 
87  inline DescribeStoreImageTasksRequest& AddImageIds(Aws::String&& value) { m_imageIdsHasBeenSet = true; m_imageIds.push_back(std::move(value)); return *this; }
88 
93  inline DescribeStoreImageTasksRequest& AddImageIds(const char* value) { m_imageIdsHasBeenSet = true; m_imageIds.push_back(value); return *this; }
94 
95 
102  inline bool GetDryRun() const{ return m_dryRun; }
103 
110  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
111 
118  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
119 
126  inline DescribeStoreImageTasksRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
127 
128 
136  inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
137 
145  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
146 
154  inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
155 
163  inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
164 
172  inline DescribeStoreImageTasksRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
173 
181  inline DescribeStoreImageTasksRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
182 
190  inline DescribeStoreImageTasksRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
191 
199  inline DescribeStoreImageTasksRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
200 
201 
205  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
206 
210  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
211 
215  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
216 
220  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
221 
225  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
226 
230  inline DescribeStoreImageTasksRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
231 
235  inline DescribeStoreImageTasksRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
236 
240  inline DescribeStoreImageTasksRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
241 
242 
249  inline int GetMaxResults() const{ return m_maxResults; }
250 
257  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
258 
265  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
266 
273  inline DescribeStoreImageTasksRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
274 
275  private:
276 
277  Aws::Vector<Aws::String> m_imageIds;
278  bool m_imageIdsHasBeenSet;
279 
280  bool m_dryRun;
281  bool m_dryRunHasBeenSet;
282 
283  Aws::Vector<Filter> m_filters;
284  bool m_filtersHasBeenSet;
285 
286  Aws::String m_nextToken;
287  bool m_nextTokenHasBeenSet;
288 
289  int m_maxResults;
290  bool m_maxResultsHasBeenSet;
291  };
292 
293 } // namespace Model
294 } // namespace EC2
295 } // namespace Aws
Aws::EC2::Model::DescribeStoreImageTasksRequest::AddFilters
DescribeStoreImageTasksRequest & AddFilters(const Filter &value)
Definition: DescribeStoreImageTasksRequest.h:190
Aws::EC2::Model::DescribeStoreImageTasksRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeStoreImageTasksRequest.h:32
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::DescribeStoreImageTasksRequest::SetImageIds
void SetImageIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeStoreImageTasksRequest.h:57
Aws::EC2::Model::DescribeStoreImageTasksRequest::WithNextToken
DescribeStoreImageTasksRequest & WithNextToken(const Aws::String &value)
Definition: DescribeStoreImageTasksRequest.h:230
Aws::EC2::Model::DescribeStoreImageTasksRequest::WithFilters
DescribeStoreImageTasksRequest & WithFilters(Aws::Vector< Filter > &&value)
Definition: DescribeStoreImageTasksRequest.h:181
Aws::EC2::Model::DescribeStoreImageTasksRequest::GetMaxResults
int GetMaxResults() const
Definition: DescribeStoreImageTasksRequest.h:249
Aws::EC2::Model::DescribeStoreImageTasksRequest::GetFilters
const Aws::Vector< Filter > & GetFilters() const
Definition: DescribeStoreImageTasksRequest.h:136
Aws::EC2::Model::DescribeStoreImageTasksRequest::SetFilters
void SetFilters(const Aws::Vector< Filter > &value)
Definition: DescribeStoreImageTasksRequest.h:154
Aws::EC2::Model::DescribeStoreImageTasksRequest::SetNextToken
void SetNextToken(const char *value)
Definition: DescribeStoreImageTasksRequest.h:225
Aws::EC2::Model::DescribeStoreImageTasksRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: DescribeStoreImageTasksRequest.h:257
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::DescribeStoreImageTasksRequest::GetDryRun
bool GetDryRun() const
Definition: DescribeStoreImageTasksRequest.h:102
Aws::EC2::Model::DescribeStoreImageTasksRequest::AddImageIds
DescribeStoreImageTasksRequest & AddImageIds(Aws::String &&value)
Definition: DescribeStoreImageTasksRequest.h:87
Aws::EC2::Model::Filter
Definition: Filter.h:36
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Filter.h
Aws::EC2::Model::DescribeStoreImageTasksRequest::SetDryRun
void SetDryRun(bool value)
Definition: DescribeStoreImageTasksRequest.h:118
Aws::EC2::Model::DescribeStoreImageTasksRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::DescribeStoreImageTasksRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: DescribeStoreImageTasksRequest.h:220
Aws::EC2::Model::DescribeStoreImageTasksRequest::AddImageIds
DescribeStoreImageTasksRequest & AddImageIds(const char *value)
Definition: DescribeStoreImageTasksRequest.h:93
Aws::EC2::Model::DescribeStoreImageTasksRequest::SetImageIds
void SetImageIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeStoreImageTasksRequest.h:63
Aws::EC2::Model::DescribeStoreImageTasksRequest::WithNextToken
DescribeStoreImageTasksRequest & WithNextToken(const char *value)
Definition: DescribeStoreImageTasksRequest.h:240
Aws::EC2::Model::DescribeStoreImageTasksRequest::WithImageIds
DescribeStoreImageTasksRequest & WithImageIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeStoreImageTasksRequest.h:69
Aws::EC2::Model::DescribeStoreImageTasksRequest::WithNextToken
DescribeStoreImageTasksRequest & WithNextToken(Aws::String &&value)
Definition: DescribeStoreImageTasksRequest.h:235
Aws::EC2::Model::DescribeStoreImageTasksRequest::WithImageIds
DescribeStoreImageTasksRequest & WithImageIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeStoreImageTasksRequest.h:75
Aws::EC2::Model::DescribeStoreImageTasksRequest::FiltersHasBeenSet
bool FiltersHasBeenSet() const
Definition: DescribeStoreImageTasksRequest.h:145
EC2Request.h
Aws::EC2::Model::DescribeStoreImageTasksRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: DescribeStoreImageTasksRequest.h:210
Aws::EC2::Model::DescribeStoreImageTasksRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: DescribeStoreImageTasksRequest.h:110
Aws::EC2::Model::DescribeStoreImageTasksRequest::AddFilters
DescribeStoreImageTasksRequest & AddFilters(Filter &&value)
Definition: DescribeStoreImageTasksRequest.h:199
AWSString.h
Aws::EC2::Model::DescribeStoreImageTasksRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: DescribeStoreImageTasksRequest.h:215
Aws::EC2::Model::DescribeStoreImageTasksRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::DescribeStoreImageTasksRequest::WithFilters
DescribeStoreImageTasksRequest & WithFilters(const Aws::Vector< Filter > &value)
Definition: DescribeStoreImageTasksRequest.h:172
Aws::EC2::Model::DescribeStoreImageTasksRequest::WithDryRun
DescribeStoreImageTasksRequest & WithDryRun(bool value)
Definition: DescribeStoreImageTasksRequest.h:126
Aws::EC2::Model::DescribeStoreImageTasksRequest
Definition: DescribeStoreImageTasksRequest.h:24
Aws::EC2::Model::DescribeStoreImageTasksRequest::DescribeStoreImageTasksRequest
DescribeStoreImageTasksRequest()
Aws::EC2::Model::DescribeStoreImageTasksRequest::WithMaxResults
DescribeStoreImageTasksRequest & WithMaxResults(int value)
Definition: DescribeStoreImageTasksRequest.h:273
Aws::EC2::Model::DescribeStoreImageTasksRequest::ImageIdsHasBeenSet
bool ImageIdsHasBeenSet() const
Definition: DescribeStoreImageTasksRequest.h:51
Aws
Definition: AccessManagementClient.h:15
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::DescribeStoreImageTasksRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: DescribeStoreImageTasksRequest.h:205
Aws::EC2::Model::DescribeStoreImageTasksRequest::SetFilters
void SetFilters(Aws::Vector< Filter > &&value)
Definition: DescribeStoreImageTasksRequest.h:163
EC2_EXPORTS.h
Aws::EC2::Model::DescribeStoreImageTasksRequest::GetImageIds
const Aws::Vector< Aws::String > & GetImageIds() const
Definition: DescribeStoreImageTasksRequest.h:45
Aws::EC2::Model::DescribeStoreImageTasksRequest::AddImageIds
DescribeStoreImageTasksRequest & AddImageIds(const Aws::String &value)
Definition: DescribeStoreImageTasksRequest.h:81
Aws::EC2::Model::DescribeStoreImageTasksRequest::SetMaxResults
void SetMaxResults(int value)
Definition: DescribeStoreImageTasksRequest.h:265