AWS SDK for C++  1.9.129
AWS SDK for C++
DescribeReplaceRootVolumeTasksRequest.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 "DescribeReplaceRootVolumeTasks"; }
33 
34  Aws::String SerializePayload() const override;
35 
36  protected:
37  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38 
39  public:
40 
44  inline const Aws::Vector<Aws::String>& GetReplaceRootVolumeTaskIds() const{ return m_replaceRootVolumeTaskIds; }
45 
49  inline bool ReplaceRootVolumeTaskIdsHasBeenSet() const { return m_replaceRootVolumeTaskIdsHasBeenSet; }
50 
54  inline void SetReplaceRootVolumeTaskIds(const Aws::Vector<Aws::String>& value) { m_replaceRootVolumeTaskIdsHasBeenSet = true; m_replaceRootVolumeTaskIds = value; }
55 
59  inline void SetReplaceRootVolumeTaskIds(Aws::Vector<Aws::String>&& value) { m_replaceRootVolumeTaskIdsHasBeenSet = true; m_replaceRootVolumeTaskIds = std::move(value); }
60 
64  inline DescribeReplaceRootVolumeTasksRequest& WithReplaceRootVolumeTaskIds(const Aws::Vector<Aws::String>& value) { SetReplaceRootVolumeTaskIds(value); return *this;}
65 
69  inline DescribeReplaceRootVolumeTasksRequest& WithReplaceRootVolumeTaskIds(Aws::Vector<Aws::String>&& value) { SetReplaceRootVolumeTaskIds(std::move(value)); return *this;}
70 
74  inline DescribeReplaceRootVolumeTasksRequest& AddReplaceRootVolumeTaskIds(const Aws::String& value) { m_replaceRootVolumeTaskIdsHasBeenSet = true; m_replaceRootVolumeTaskIds.push_back(value); return *this; }
75 
79  inline DescribeReplaceRootVolumeTasksRequest& AddReplaceRootVolumeTaskIds(Aws::String&& value) { m_replaceRootVolumeTaskIdsHasBeenSet = true; m_replaceRootVolumeTaskIds.push_back(std::move(value)); return *this; }
80 
84  inline DescribeReplaceRootVolumeTasksRequest& AddReplaceRootVolumeTaskIds(const char* value) { m_replaceRootVolumeTaskIdsHasBeenSet = true; m_replaceRootVolumeTaskIds.push_back(value); return *this; }
85 
86 
91  inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
92 
97  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
98 
103  inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
104 
109  inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
110 
115  inline DescribeReplaceRootVolumeTasksRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
116 
121  inline DescribeReplaceRootVolumeTasksRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
122 
127  inline DescribeReplaceRootVolumeTasksRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
128 
133  inline DescribeReplaceRootVolumeTasksRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
134 
135 
141  inline int GetMaxResults() const{ return m_maxResults; }
142 
148  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
149 
155  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
156 
162  inline DescribeReplaceRootVolumeTasksRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
163 
164 
168  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
169 
173  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
174 
178  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
179 
183  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
184 
188  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
189 
193  inline DescribeReplaceRootVolumeTasksRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
194 
198  inline DescribeReplaceRootVolumeTasksRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
199 
203  inline DescribeReplaceRootVolumeTasksRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
204 
205 
212  inline bool GetDryRun() const{ return m_dryRun; }
213 
220  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
221 
228  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
229 
236  inline DescribeReplaceRootVolumeTasksRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
237 
238  private:
239 
240  Aws::Vector<Aws::String> m_replaceRootVolumeTaskIds;
241  bool m_replaceRootVolumeTaskIdsHasBeenSet;
242 
243  Aws::Vector<Filter> m_filters;
244  bool m_filtersHasBeenSet;
245 
246  int m_maxResults;
247  bool m_maxResultsHasBeenSet;
248 
249  Aws::String m_nextToken;
250  bool m_nextTokenHasBeenSet;
251 
252  bool m_dryRun;
253  bool m_dryRunHasBeenSet;
254  };
255 
256 } // namespace Model
257 } // namespace EC2
258 } // namespace Aws
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::DescribeReplaceRootVolumeTasksRequest
Definition: DescribeReplaceRootVolumeTasksRequest.h:24
Aws::EC2::Model::DescribeReplaceRootVolumeTasksRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: DescribeReplaceRootVolumeTasksRequest.h:220
Aws::EC2::Model::DescribeReplaceRootVolumeTasksRequest::SetMaxResults
void SetMaxResults(int value)
Definition: DescribeReplaceRootVolumeTasksRequest.h:155
Aws::EC2::Model::DescribeReplaceRootVolumeTasksRequest::AddReplaceRootVolumeTaskIds
DescribeReplaceRootVolumeTasksRequest & AddReplaceRootVolumeTaskIds(Aws::String &&value)
Definition: DescribeReplaceRootVolumeTasksRequest.h:79
Aws::EC2::Model::DescribeReplaceRootVolumeTasksRequest::FiltersHasBeenSet
bool FiltersHasBeenSet() const
Definition: DescribeReplaceRootVolumeTasksRequest.h:97
Aws::EC2::Model::DescribeReplaceRootVolumeTasksRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeReplaceRootVolumeTasksRequest.h:32
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::DescribeReplaceRootVolumeTasksRequest::WithReplaceRootVolumeTaskIds
DescribeReplaceRootVolumeTasksRequest & WithReplaceRootVolumeTaskIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeReplaceRootVolumeTasksRequest.h:69
Aws::EC2::Model::Filter
Definition: Filter.h:36
Aws::EC2::Model::DescribeReplaceRootVolumeTasksRequest::GetReplaceRootVolumeTaskIds
const Aws::Vector< Aws::String > & GetReplaceRootVolumeTaskIds() const
Definition: DescribeReplaceRootVolumeTasksRequest.h:44
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::DescribeReplaceRootVolumeTasksRequest::WithNextToken
DescribeReplaceRootVolumeTasksRequest & WithNextToken(Aws::String &&value)
Definition: DescribeReplaceRootVolumeTasksRequest.h:198
AWSVector.h
Filter.h
Aws::EC2::Model::DescribeReplaceRootVolumeTasksRequest::AddReplaceRootVolumeTaskIds
DescribeReplaceRootVolumeTasksRequest & AddReplaceRootVolumeTaskIds(const char *value)
Definition: DescribeReplaceRootVolumeTasksRequest.h:84
Aws::EC2::Model::DescribeReplaceRootVolumeTasksRequest::GetFilters
const Aws::Vector< Filter > & GetFilters() const
Definition: DescribeReplaceRootVolumeTasksRequest.h:91
Aws::EC2::Model::DescribeReplaceRootVolumeTasksRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: DescribeReplaceRootVolumeTasksRequest.h:173
Aws::EC2::Model::DescribeReplaceRootVolumeTasksRequest::AddFilters
DescribeReplaceRootVolumeTasksRequest & AddFilters(const Filter &value)
Definition: DescribeReplaceRootVolumeTasksRequest.h:127
Aws::EC2::Model::DescribeReplaceRootVolumeTasksRequest::ReplaceRootVolumeTaskIdsHasBeenSet
bool ReplaceRootVolumeTaskIdsHasBeenSet() const
Definition: DescribeReplaceRootVolumeTasksRequest.h:49
Aws::EC2::Model::DescribeReplaceRootVolumeTasksRequest::DescribeReplaceRootVolumeTasksRequest
DescribeReplaceRootVolumeTasksRequest()
Aws::EC2::Model::DescribeReplaceRootVolumeTasksRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: DescribeReplaceRootVolumeTasksRequest.h:183
Aws::EC2::Model::DescribeReplaceRootVolumeTasksRequest::WithFilters
DescribeReplaceRootVolumeTasksRequest & WithFilters(const Aws::Vector< Filter > &value)
Definition: DescribeReplaceRootVolumeTasksRequest.h:115
EC2Request.h
Aws::EC2::Model::DescribeReplaceRootVolumeTasksRequest::SetDryRun
void SetDryRun(bool value)
Definition: DescribeReplaceRootVolumeTasksRequest.h:228
Aws::EC2::Model::DescribeReplaceRootVolumeTasksRequest::SetFilters
void SetFilters(Aws::Vector< Filter > &&value)
Definition: DescribeReplaceRootVolumeTasksRequest.h:109
AWSString.h
Aws::EC2::Model::DescribeReplaceRootVolumeTasksRequest::WithDryRun
DescribeReplaceRootVolumeTasksRequest & WithDryRun(bool value)
Definition: DescribeReplaceRootVolumeTasksRequest.h:236
Aws::EC2::Model::DescribeReplaceRootVolumeTasksRequest::WithFilters
DescribeReplaceRootVolumeTasksRequest & WithFilters(Aws::Vector< Filter > &&value)
Definition: DescribeReplaceRootVolumeTasksRequest.h:121
Aws::EC2::Model::DescribeReplaceRootVolumeTasksRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: DescribeReplaceRootVolumeTasksRequest.h:178
Aws::EC2::Model::DescribeReplaceRootVolumeTasksRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::DescribeReplaceRootVolumeTasksRequest::WithMaxResults
DescribeReplaceRootVolumeTasksRequest & WithMaxResults(int value)
Definition: DescribeReplaceRootVolumeTasksRequest.h:162
Aws::EC2::Model::DescribeReplaceRootVolumeTasksRequest::WithNextToken
DescribeReplaceRootVolumeTasksRequest & WithNextToken(const char *value)
Definition: DescribeReplaceRootVolumeTasksRequest.h:203
Aws::EC2::Model::DescribeReplaceRootVolumeTasksRequest::WithReplaceRootVolumeTaskIds
DescribeReplaceRootVolumeTasksRequest & WithReplaceRootVolumeTaskIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeReplaceRootVolumeTasksRequest.h:64
Aws::EC2::Model::DescribeReplaceRootVolumeTasksRequest::WithNextToken
DescribeReplaceRootVolumeTasksRequest & WithNextToken(const Aws::String &value)
Definition: DescribeReplaceRootVolumeTasksRequest.h:193
Aws::EC2::Model::DescribeReplaceRootVolumeTasksRequest::AddFilters
DescribeReplaceRootVolumeTasksRequest & AddFilters(Filter &&value)
Definition: DescribeReplaceRootVolumeTasksRequest.h:133
Aws::EC2::Model::DescribeReplaceRootVolumeTasksRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: DescribeReplaceRootVolumeTasksRequest.h:168
Aws::EC2::Model::DescribeReplaceRootVolumeTasksRequest::SetFilters
void SetFilters(const Aws::Vector< Filter > &value)
Definition: DescribeReplaceRootVolumeTasksRequest.h:103
Aws::EC2::Model::DescribeReplaceRootVolumeTasksRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: DescribeReplaceRootVolumeTasksRequest.h:148
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::DescribeReplaceRootVolumeTasksRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::DescribeReplaceRootVolumeTasksRequest::SetReplaceRootVolumeTaskIds
void SetReplaceRootVolumeTaskIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeReplaceRootVolumeTasksRequest.h:54
Aws::EC2::Model::DescribeReplaceRootVolumeTasksRequest::GetDryRun
bool GetDryRun() const
Definition: DescribeReplaceRootVolumeTasksRequest.h:212
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::DescribeReplaceRootVolumeTasksRequest::AddReplaceRootVolumeTaskIds
DescribeReplaceRootVolumeTasksRequest & AddReplaceRootVolumeTaskIds(const Aws::String &value)
Definition: DescribeReplaceRootVolumeTasksRequest.h:74
Aws::EC2::Model::DescribeReplaceRootVolumeTasksRequest::SetReplaceRootVolumeTaskIds
void SetReplaceRootVolumeTaskIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeReplaceRootVolumeTasksRequest.h:59
Aws::EC2::Model::DescribeReplaceRootVolumeTasksRequest::GetMaxResults
int GetMaxResults() const
Definition: DescribeReplaceRootVolumeTasksRequest.h:141
EC2_EXPORTS.h
Aws::EC2::Model::DescribeReplaceRootVolumeTasksRequest::SetNextToken
void SetNextToken(const char *value)
Definition: DescribeReplaceRootVolumeTasksRequest.h:188