AWS SDK for C++  1.9.159
AWS SDK for C++
DescribeExportImageTasksRequest.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 "DescribeExportImageTasks"; }
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 DescribeExportImageTasksRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
72 
73 
79  inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
80 
86  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
87 
93  inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
94 
100  inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
101 
107  inline DescribeExportImageTasksRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
108 
114  inline DescribeExportImageTasksRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
115 
121  inline DescribeExportImageTasksRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
122 
128  inline DescribeExportImageTasksRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
129 
130 
134  inline const Aws::Vector<Aws::String>& GetExportImageTaskIds() const{ return m_exportImageTaskIds; }
135 
139  inline bool ExportImageTaskIdsHasBeenSet() const { return m_exportImageTaskIdsHasBeenSet; }
140 
144  inline void SetExportImageTaskIds(const Aws::Vector<Aws::String>& value) { m_exportImageTaskIdsHasBeenSet = true; m_exportImageTaskIds = value; }
145 
149  inline void SetExportImageTaskIds(Aws::Vector<Aws::String>&& value) { m_exportImageTaskIdsHasBeenSet = true; m_exportImageTaskIds = std::move(value); }
150 
154  inline DescribeExportImageTasksRequest& WithExportImageTaskIds(const Aws::Vector<Aws::String>& value) { SetExportImageTaskIds(value); return *this;}
155 
159  inline DescribeExportImageTasksRequest& WithExportImageTaskIds(Aws::Vector<Aws::String>&& value) { SetExportImageTaskIds(std::move(value)); return *this;}
160 
164  inline DescribeExportImageTasksRequest& AddExportImageTaskIds(const Aws::String& value) { m_exportImageTaskIdsHasBeenSet = true; m_exportImageTaskIds.push_back(value); return *this; }
165 
169  inline DescribeExportImageTasksRequest& AddExportImageTaskIds(Aws::String&& value) { m_exportImageTaskIdsHasBeenSet = true; m_exportImageTaskIds.push_back(std::move(value)); return *this; }
170 
174  inline DescribeExportImageTasksRequest& AddExportImageTaskIds(const char* value) { m_exportImageTaskIdsHasBeenSet = true; m_exportImageTaskIds.push_back(value); return *this; }
175 
176 
180  inline int GetMaxResults() const{ return m_maxResults; }
181 
185  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
186 
190  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
191 
195  inline DescribeExportImageTasksRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
196 
197 
201  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
202 
206  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
207 
211  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
212 
216  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
217 
221  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
222 
226  inline DescribeExportImageTasksRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
227 
231  inline DescribeExportImageTasksRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
232 
236  inline DescribeExportImageTasksRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
237 
238  private:
239 
240  bool m_dryRun;
241  bool m_dryRunHasBeenSet;
242 
243  Aws::Vector<Filter> m_filters;
244  bool m_filtersHasBeenSet;
245 
246  Aws::Vector<Aws::String> m_exportImageTaskIds;
247  bool m_exportImageTaskIdsHasBeenSet;
248 
249  int m_maxResults;
250  bool m_maxResultsHasBeenSet;
251 
252  Aws::String m_nextToken;
253  bool m_nextTokenHasBeenSet;
254  };
255 
256 } // namespace Model
257 } // namespace EC2
258 } // namespace Aws
Aws::EC2::Model::DescribeExportImageTasksRequest::GetMaxResults
int GetMaxResults() const
Definition: DescribeExportImageTasksRequest.h:180
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::DescribeExportImageTasksRequest::SetExportImageTaskIds
void SetExportImageTaskIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeExportImageTasksRequest.h:149
Aws::EC2::Model::DescribeExportImageTasksRequest::GetDryRun
bool GetDryRun() const
Definition: DescribeExportImageTasksRequest.h:47
Aws::EC2::Model::DescribeExportImageTasksRequest::SetMaxResults
void SetMaxResults(int value)
Definition: DescribeExportImageTasksRequest.h:190
Aws::EC2::Model::DescribeExportImageTasksRequest::SetDryRun
void SetDryRun(bool value)
Definition: DescribeExportImageTasksRequest.h:63
Aws::EC2::Model::DescribeExportImageTasksRequest::WithExportImageTaskIds
DescribeExportImageTasksRequest & WithExportImageTaskIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeExportImageTasksRequest.h:159
Aws::EC2::Model::DescribeExportImageTasksRequest::WithFilters
DescribeExportImageTasksRequest & WithFilters(const Aws::Vector< Filter > &value)
Definition: DescribeExportImageTasksRequest.h:107
Aws::EC2::Model::DescribeExportImageTasksRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::DescribeExportImageTasksRequest::SetFilters
void SetFilters(const Aws::Vector< Filter > &value)
Definition: DescribeExportImageTasksRequest.h:93
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::DescribeExportImageTasksRequest::AddExportImageTaskIds
DescribeExportImageTasksRequest & AddExportImageTaskIds(const Aws::String &value)
Definition: DescribeExportImageTasksRequest.h:164
Aws::EC2::Model::DescribeExportImageTasksRequest::FiltersHasBeenSet
bool FiltersHasBeenSet() const
Definition: DescribeExportImageTasksRequest.h:86
Aws::EC2::Model::DescribeExportImageTasksRequest
Definition: DescribeExportImageTasksRequest.h:24
Aws::EC2::Model::DescribeExportImageTasksRequest::WithNextToken
DescribeExportImageTasksRequest & WithNextToken(const char *value)
Definition: DescribeExportImageTasksRequest.h:236
Aws::EC2::Model::Filter
Definition: Filter.h:36
Aws::EC2::Model::DescribeExportImageTasksRequest::GetFilters
const Aws::Vector< Filter > & GetFilters() const
Definition: DescribeExportImageTasksRequest.h:79
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::DescribeExportImageTasksRequest::WithNextToken
DescribeExportImageTasksRequest & WithNextToken(Aws::String &&value)
Definition: DescribeExportImageTasksRequest.h:231
Aws::EC2::Model::DescribeExportImageTasksRequest::GetExportImageTaskIds
const Aws::Vector< Aws::String > & GetExportImageTaskIds() const
Definition: DescribeExportImageTasksRequest.h:134
AWSVector.h
Aws::EC2::Model::DescribeExportImageTasksRequest::WithFilters
DescribeExportImageTasksRequest & WithFilters(Aws::Vector< Filter > &&value)
Definition: DescribeExportImageTasksRequest.h:114
Aws::EC2::Model::DescribeExportImageTasksRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: DescribeExportImageTasksRequest.h:206
Aws::EC2::Model::DescribeExportImageTasksRequest::WithMaxResults
DescribeExportImageTasksRequest & WithMaxResults(int value)
Definition: DescribeExportImageTasksRequest.h:195
Filter.h
Aws::EC2::Model::DescribeExportImageTasksRequest::DescribeExportImageTasksRequest
DescribeExportImageTasksRequest()
Aws::EC2::Model::DescribeExportImageTasksRequest::WithExportImageTaskIds
DescribeExportImageTasksRequest & WithExportImageTaskIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeExportImageTasksRequest.h:154
Aws::EC2::Model::DescribeExportImageTasksRequest::ExportImageTaskIdsHasBeenSet
bool ExportImageTaskIdsHasBeenSet() const
Definition: DescribeExportImageTasksRequest.h:139
Aws::EC2::Model::DescribeExportImageTasksRequest::AddExportImageTaskIds
DescribeExportImageTasksRequest & AddExportImageTaskIds(Aws::String &&value)
Definition: DescribeExportImageTasksRequest.h:169
Aws::EC2::Model::DescribeExportImageTasksRequest::SetExportImageTaskIds
void SetExportImageTaskIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeExportImageTasksRequest.h:144
EC2Request.h
Aws::EC2::Model::DescribeExportImageTasksRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: DescribeExportImageTasksRequest.h:211
Aws::EC2::Model::DescribeExportImageTasksRequest::AddExportImageTaskIds
DescribeExportImageTasksRequest & AddExportImageTaskIds(const char *value)
Definition: DescribeExportImageTasksRequest.h:174
Aws::EC2::Model::DescribeExportImageTasksRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: DescribeExportImageTasksRequest.h:185
AWSString.h
Aws::EC2::Model::DescribeExportImageTasksRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::DescribeExportImageTasksRequest::AddFilters
DescribeExportImageTasksRequest & AddFilters(Filter &&value)
Definition: DescribeExportImageTasksRequest.h:128
Aws::EC2::Model::DescribeExportImageTasksRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: DescribeExportImageTasksRequest.h:216
Aws::EC2::Model::DescribeExportImageTasksRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: DescribeExportImageTasksRequest.h:55
Aws::EC2::Model::DescribeExportImageTasksRequest::SetFilters
void SetFilters(Aws::Vector< Filter > &&value)
Definition: DescribeExportImageTasksRequest.h:100
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::DescribeExportImageTasksRequest::WithDryRun
DescribeExportImageTasksRequest & WithDryRun(bool value)
Definition: DescribeExportImageTasksRequest.h:71
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::DescribeExportImageTasksRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeExportImageTasksRequest.h:32
Aws::EC2::EC2Request
Definition: EC2Request.h:17
EC2_EXPORTS.h
Aws::EC2::Model::DescribeExportImageTasksRequest::AddFilters
DescribeExportImageTasksRequest & AddFilters(const Filter &value)
Definition: DescribeExportImageTasksRequest.h:121
Aws::EC2::Model::DescribeExportImageTasksRequest::SetNextToken
void SetNextToken(const char *value)
Definition: DescribeExportImageTasksRequest.h:221
Aws::EC2::Model::DescribeExportImageTasksRequest::WithNextToken
DescribeExportImageTasksRequest & WithNextToken(const Aws::String &value)
Definition: DescribeExportImageTasksRequest.h:226
Aws::EC2::Model::DescribeExportImageTasksRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: DescribeExportImageTasksRequest.h:201