AWS SDK for C++  1.9.75
AWS SDK for C++
DescribeVolumesModificationsRequest.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 "DescribeVolumesModifications"; }
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 DescribeVolumesModificationsRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
72 
73 
77  inline const Aws::Vector<Aws::String>& GetVolumeIds() const{ return m_volumeIds; }
78 
82  inline bool VolumeIdsHasBeenSet() const { return m_volumeIdsHasBeenSet; }
83 
87  inline void SetVolumeIds(const Aws::Vector<Aws::String>& value) { m_volumeIdsHasBeenSet = true; m_volumeIds = value; }
88 
92  inline void SetVolumeIds(Aws::Vector<Aws::String>&& value) { m_volumeIdsHasBeenSet = true; m_volumeIds = std::move(value); }
93 
97  inline DescribeVolumesModificationsRequest& WithVolumeIds(const Aws::Vector<Aws::String>& value) { SetVolumeIds(value); return *this;}
98 
102  inline DescribeVolumesModificationsRequest& WithVolumeIds(Aws::Vector<Aws::String>&& value) { SetVolumeIds(std::move(value)); return *this;}
103 
107  inline DescribeVolumesModificationsRequest& AddVolumeIds(const Aws::String& value) { m_volumeIdsHasBeenSet = true; m_volumeIds.push_back(value); return *this; }
108 
112  inline DescribeVolumesModificationsRequest& AddVolumeIds(Aws::String&& value) { m_volumeIdsHasBeenSet = true; m_volumeIds.push_back(std::move(value)); return *this; }
113 
117  inline DescribeVolumesModificationsRequest& AddVolumeIds(const char* value) { m_volumeIdsHasBeenSet = true; m_volumeIds.push_back(value); return *this; }
118 
119 
138  inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
139 
158  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
159 
178  inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
179 
198  inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
199 
218  inline DescribeVolumesModificationsRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
219 
238  inline DescribeVolumesModificationsRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
239 
258  inline DescribeVolumesModificationsRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
259 
278  inline DescribeVolumesModificationsRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
279 
280 
285  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
286 
291  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
292 
297  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
298 
303  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
304 
309  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
310 
315  inline DescribeVolumesModificationsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
316 
321  inline DescribeVolumesModificationsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
322 
327  inline DescribeVolumesModificationsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
328 
329 
334  inline int GetMaxResults() const{ return m_maxResults; }
335 
340  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
341 
346  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
347 
352  inline DescribeVolumesModificationsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
353 
354  private:
355 
356  bool m_dryRun;
357  bool m_dryRunHasBeenSet;
358 
359  Aws::Vector<Aws::String> m_volumeIds;
360  bool m_volumeIdsHasBeenSet;
361 
362  Aws::Vector<Filter> m_filters;
363  bool m_filtersHasBeenSet;
364 
365  Aws::String m_nextToken;
366  bool m_nextTokenHasBeenSet;
367 
368  int m_maxResults;
369  bool m_maxResultsHasBeenSet;
370  };
371 
372 } // namespace Model
373 } // namespace EC2
374 } // namespace Aws
Aws::EC2::Model::DescribeVolumesModificationsRequest::WithNextToken
DescribeVolumesModificationsRequest & WithNextToken(Aws::String &&value)
Definition: DescribeVolumesModificationsRequest.h:321
Aws::EC2::Model::DescribeVolumesModificationsRequest::AddFilters
DescribeVolumesModificationsRequest & AddFilters(const Filter &value)
Definition: DescribeVolumesModificationsRequest.h:258
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::DescribeVolumesModificationsRequest::GetMaxResults
int GetMaxResults() const
Definition: DescribeVolumesModificationsRequest.h:334
Aws::EC2::Model::DescribeVolumesModificationsRequest::WithVolumeIds
DescribeVolumesModificationsRequest & WithVolumeIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeVolumesModificationsRequest.h:97
Aws::EC2::Model::DescribeVolumesModificationsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::DescribeVolumesModificationsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: DescribeVolumesModificationsRequest.h:297
Aws::EC2::Model::DescribeVolumesModificationsRequest::VolumeIdsHasBeenSet
bool VolumeIdsHasBeenSet() const
Definition: DescribeVolumesModificationsRequest.h:82
Aws::EC2::Model::DescribeVolumesModificationsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: DescribeVolumesModificationsRequest.h:340
Aws::EC2::Model::DescribeVolumesModificationsRequest::SetDryRun
void SetDryRun(bool value)
Definition: DescribeVolumesModificationsRequest.h:63
Aws::EC2::Model::DescribeVolumesModificationsRequest::WithFilters
DescribeVolumesModificationsRequest & WithFilters(Aws::Vector< Filter > &&value)
Definition: DescribeVolumesModificationsRequest.h:238
Aws::EC2::Model::DescribeVolumesModificationsRequest
Definition: DescribeVolumesModificationsRequest.h:24
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::DescribeVolumesModificationsRequest::GetFilters
const Aws::Vector< Filter > & GetFilters() const
Definition: DescribeVolumesModificationsRequest.h:138
Aws::EC2::Model::DescribeVolumesModificationsRequest::GetVolumeIds
const Aws::Vector< Aws::String > & GetVolumeIds() const
Definition: DescribeVolumesModificationsRequest.h:77
Aws::EC2::Model::Filter
Definition: Filter.h:36
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::DescribeVolumesModificationsRequest::AddVolumeIds
DescribeVolumesModificationsRequest & AddVolumeIds(const char *value)
Definition: DescribeVolumesModificationsRequest.h:117
AWSVector.h
Aws::EC2::Model::DescribeVolumesModificationsRequest::DescribeVolumesModificationsRequest
DescribeVolumesModificationsRequest()
Filter.h
Aws::EC2::Model::DescribeVolumesModificationsRequest::WithDryRun
DescribeVolumesModificationsRequest & WithDryRun(bool value)
Definition: DescribeVolumesModificationsRequest.h:71
Aws::EC2::Model::DescribeVolumesModificationsRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::DescribeVolumesModificationsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: DescribeVolumesModificationsRequest.h:291
Aws::EC2::Model::DescribeVolumesModificationsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: DescribeVolumesModificationsRequest.h:285
Aws::EC2::Model::DescribeVolumesModificationsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: DescribeVolumesModificationsRequest.h:346
Aws::EC2::Model::DescribeVolumesModificationsRequest::AddVolumeIds
DescribeVolumesModificationsRequest & AddVolumeIds(Aws::String &&value)
Definition: DescribeVolumesModificationsRequest.h:112
Aws::EC2::Model::DescribeVolumesModificationsRequest::WithFilters
DescribeVolumesModificationsRequest & WithFilters(const Aws::Vector< Filter > &value)
Definition: DescribeVolumesModificationsRequest.h:218
Aws::EC2::Model::DescribeVolumesModificationsRequest::SetVolumeIds
void SetVolumeIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeVolumesModificationsRequest.h:92
Aws::EC2::Model::DescribeVolumesModificationsRequest::WithVolumeIds
DescribeVolumesModificationsRequest & WithVolumeIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeVolumesModificationsRequest.h:102
EC2Request.h
Aws::EC2::Model::DescribeVolumesModificationsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeVolumesModificationsRequest.h:32
AWSString.h
Aws::EC2::Model::DescribeVolumesModificationsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: DescribeVolumesModificationsRequest.h:309
Aws::EC2::Model::DescribeVolumesModificationsRequest::WithNextToken
DescribeVolumesModificationsRequest & WithNextToken(const Aws::String &value)
Definition: DescribeVolumesModificationsRequest.h:315
Aws::EC2::Model::DescribeVolumesModificationsRequest::SetFilters
void SetFilters(const Aws::Vector< Filter > &value)
Definition: DescribeVolumesModificationsRequest.h:178
Aws::EC2::Model::DescribeVolumesModificationsRequest::WithNextToken
DescribeVolumesModificationsRequest & WithNextToken(const char *value)
Definition: DescribeVolumesModificationsRequest.h:327
Aws::EC2::Model::DescribeVolumesModificationsRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: DescribeVolumesModificationsRequest.h:55
Aws::EC2::Model::DescribeVolumesModificationsRequest::SetFilters
void SetFilters(Aws::Vector< Filter > &&value)
Definition: DescribeVolumesModificationsRequest.h:198
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::DescribeVolumesModificationsRequest::AddFilters
DescribeVolumesModificationsRequest & AddFilters(Filter &&value)
Definition: DescribeVolumesModificationsRequest.h:278
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::DescribeVolumesModificationsRequest::AddVolumeIds
DescribeVolumesModificationsRequest & AddVolumeIds(const Aws::String &value)
Definition: DescribeVolumesModificationsRequest.h:107
Aws::EC2::Model::DescribeVolumesModificationsRequest::FiltersHasBeenSet
bool FiltersHasBeenSet() const
Definition: DescribeVolumesModificationsRequest.h:158
Aws::EC2::Model::DescribeVolumesModificationsRequest::GetDryRun
bool GetDryRun() const
Definition: DescribeVolumesModificationsRequest.h:47
EC2_EXPORTS.h
Aws::EC2::Model::DescribeVolumesModificationsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: DescribeVolumesModificationsRequest.h:303
Aws::EC2::Model::DescribeVolumesModificationsRequest::WithMaxResults
DescribeVolumesModificationsRequest & WithMaxResults(int value)
Definition: DescribeVolumesModificationsRequest.h:352
Aws::EC2::Model::DescribeVolumesModificationsRequest::SetVolumeIds
void SetVolumeIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeVolumesModificationsRequest.h:87