AWS SDK for C++  1.9.72
AWS SDK for C++
DescribeVolumeStatusRequest.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 "DescribeVolumeStatus"; }
33 
34  Aws::String SerializePayload() const override;
35 
36  protected:
37  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38 
39  public:
40 
67  inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
68 
95  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
96 
123  inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
124 
151  inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
152 
179  inline DescribeVolumeStatusRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
180 
207  inline DescribeVolumeStatusRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
208 
235  inline DescribeVolumeStatusRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
236 
263  inline DescribeVolumeStatusRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
264 
265 
278  inline int GetMaxResults() const{ return m_maxResults; }
279 
292  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
293 
306  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
307 
320  inline DescribeVolumeStatusRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
321 
322 
330  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
331 
339  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
340 
348  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
349 
357  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
358 
366  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
367 
375  inline DescribeVolumeStatusRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
376 
384  inline DescribeVolumeStatusRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
385 
393  inline DescribeVolumeStatusRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
394 
395 
399  inline const Aws::Vector<Aws::String>& GetVolumeIds() const{ return m_volumeIds; }
400 
404  inline bool VolumeIdsHasBeenSet() const { return m_volumeIdsHasBeenSet; }
405 
409  inline void SetVolumeIds(const Aws::Vector<Aws::String>& value) { m_volumeIdsHasBeenSet = true; m_volumeIds = value; }
410 
414  inline void SetVolumeIds(Aws::Vector<Aws::String>&& value) { m_volumeIdsHasBeenSet = true; m_volumeIds = std::move(value); }
415 
419  inline DescribeVolumeStatusRequest& WithVolumeIds(const Aws::Vector<Aws::String>& value) { SetVolumeIds(value); return *this;}
420 
424  inline DescribeVolumeStatusRequest& WithVolumeIds(Aws::Vector<Aws::String>&& value) { SetVolumeIds(std::move(value)); return *this;}
425 
429  inline DescribeVolumeStatusRequest& AddVolumeIds(const Aws::String& value) { m_volumeIdsHasBeenSet = true; m_volumeIds.push_back(value); return *this; }
430 
434  inline DescribeVolumeStatusRequest& AddVolumeIds(Aws::String&& value) { m_volumeIdsHasBeenSet = true; m_volumeIds.push_back(std::move(value)); return *this; }
435 
439  inline DescribeVolumeStatusRequest& AddVolumeIds(const char* value) { m_volumeIdsHasBeenSet = true; m_volumeIds.push_back(value); return *this; }
440 
441 
448  inline bool GetDryRun() const{ return m_dryRun; }
449 
456  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
457 
464  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
465 
472  inline DescribeVolumeStatusRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
473 
474  private:
475 
476  Aws::Vector<Filter> m_filters;
477  bool m_filtersHasBeenSet;
478 
479  int m_maxResults;
480  bool m_maxResultsHasBeenSet;
481 
482  Aws::String m_nextToken;
483  bool m_nextTokenHasBeenSet;
484 
485  Aws::Vector<Aws::String> m_volumeIds;
486  bool m_volumeIdsHasBeenSet;
487 
488  bool m_dryRun;
489  bool m_dryRunHasBeenSet;
490  };
491 
492 } // namespace Model
493 } // namespace EC2
494 } // namespace Aws
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::DescribeVolumeStatusRequest::DescribeVolumeStatusRequest
DescribeVolumeStatusRequest()
Aws::EC2::Model::DescribeVolumeStatusRequest::FiltersHasBeenSet
bool FiltersHasBeenSet() const
Definition: DescribeVolumeStatusRequest.h:95
Aws::EC2::Model::DescribeVolumeStatusRequest::SetDryRun
void SetDryRun(bool value)
Definition: DescribeVolumeStatusRequest.h:464
Aws::EC2::Model::DescribeVolumeStatusRequest::GetVolumeIds
const Aws::Vector< Aws::String > & GetVolumeIds() const
Definition: DescribeVolumeStatusRequest.h:399
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::DescribeVolumeStatusRequest::SetVolumeIds
void SetVolumeIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeVolumeStatusRequest.h:409
Aws::EC2::Model::DescribeVolumeStatusRequest::GetMaxResults
int GetMaxResults() const
Definition: DescribeVolumeStatusRequest.h:278
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::DescribeVolumeStatusRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: DescribeVolumeStatusRequest.h:330
Aws::EC2::Model::DescribeVolumeStatusRequest::AddFilters
DescribeVolumeStatusRequest & AddFilters(Filter &&value)
Definition: DescribeVolumeStatusRequest.h:263
Aws::EC2::Model::DescribeVolumeStatusRequest::GetDryRun
bool GetDryRun() const
Definition: DescribeVolumeStatusRequest.h:448
Aws::EC2::Model::DescribeVolumeStatusRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: DescribeVolumeStatusRequest.h:292
Aws::EC2::Model::DescribeVolumeStatusRequest::GetFilters
const Aws::Vector< Filter > & GetFilters() const
Definition: DescribeVolumeStatusRequest.h:67
Aws::EC2::Model::DescribeVolumeStatusRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: DescribeVolumeStatusRequest.h:348
Aws::EC2::Model::DescribeVolumeStatusRequest::WithFilters
DescribeVolumeStatusRequest & WithFilters(Aws::Vector< Filter > &&value)
Definition: DescribeVolumeStatusRequest.h:207
Aws::EC2::Model::DescribeVolumeStatusRequest::SetVolumeIds
void SetVolumeIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeVolumeStatusRequest.h:414
Aws::EC2::Model::DescribeVolumeStatusRequest::WithVolumeIds
DescribeVolumeStatusRequest & WithVolumeIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeVolumeStatusRequest.h:424
Aws::EC2::Model::DescribeVolumeStatusRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: DescribeVolumeStatusRequest.h:339
Aws::EC2::Model::DescribeVolumeStatusRequest::WithMaxResults
DescribeVolumeStatusRequest & WithMaxResults(int value)
Definition: DescribeVolumeStatusRequest.h:320
Aws::EC2::Model::DescribeVolumeStatusRequest::WithNextToken
DescribeVolumeStatusRequest & WithNextToken(Aws::String &&value)
Definition: DescribeVolumeStatusRequest.h:384
Aws::EC2::Model::DescribeVolumeStatusRequest::AddVolumeIds
DescribeVolumeStatusRequest & AddVolumeIds(const char *value)
Definition: DescribeVolumeStatusRequest.h:439
Aws::EC2::Model::DescribeVolumeStatusRequest::SetFilters
void SetFilters(const Aws::Vector< Filter > &value)
Definition: DescribeVolumeStatusRequest.h:123
EC2Request.h
Aws::EC2::Model::DescribeVolumeStatusRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: DescribeVolumeStatusRequest.h:456
Aws::EC2::Model::DescribeVolumeStatusRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::DescribeVolumeStatusRequest::VolumeIdsHasBeenSet
bool VolumeIdsHasBeenSet() const
Definition: DescribeVolumeStatusRequest.h:404
AWSString.h
Aws::EC2::Model::DescribeVolumeStatusRequest::WithVolumeIds
DescribeVolumeStatusRequest & WithVolumeIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeVolumeStatusRequest.h:419
Aws::EC2::Model::DescribeVolumeStatusRequest::AddVolumeIds
DescribeVolumeStatusRequest & AddVolumeIds(const Aws::String &value)
Definition: DescribeVolumeStatusRequest.h:429
Aws::EC2::Model::DescribeVolumeStatusRequest::WithFilters
DescribeVolumeStatusRequest & WithFilters(const Aws::Vector< Filter > &value)
Definition: DescribeVolumeStatusRequest.h:179
Aws::EC2::Model::DescribeVolumeStatusRequest::SerializePayload
Aws::String SerializePayload() const override
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::DescribeVolumeStatusRequest::SetNextToken
void SetNextToken(const char *value)
Definition: DescribeVolumeStatusRequest.h:366
Aws::EC2::Model::DescribeVolumeStatusRequest
Definition: DescribeVolumeStatusRequest.h:24
Aws::EC2::Model::DescribeVolumeStatusRequest::AddFilters
DescribeVolumeStatusRequest & AddFilters(const Filter &value)
Definition: DescribeVolumeStatusRequest.h:235
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::DescribeVolumeStatusRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: DescribeVolumeStatusRequest.h:357
Aws::EC2::Model::DescribeVolumeStatusRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeVolumeStatusRequest.h:32
Aws::EC2::Model::DescribeVolumeStatusRequest::SetFilters
void SetFilters(Aws::Vector< Filter > &&value)
Definition: DescribeVolumeStatusRequest.h:151
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::DescribeVolumeStatusRequest::AddVolumeIds
DescribeVolumeStatusRequest & AddVolumeIds(Aws::String &&value)
Definition: DescribeVolumeStatusRequest.h:434
Aws::EC2::Model::DescribeVolumeStatusRequest::WithNextToken
DescribeVolumeStatusRequest & WithNextToken(const char *value)
Definition: DescribeVolumeStatusRequest.h:393
EC2_EXPORTS.h
Aws::EC2::Model::DescribeVolumeStatusRequest::WithDryRun
DescribeVolumeStatusRequest & WithDryRun(bool value)
Definition: DescribeVolumeStatusRequest.h:472
Aws::EC2::Model::DescribeVolumeStatusRequest::SetMaxResults
void SetMaxResults(int value)
Definition: DescribeVolumeStatusRequest.h:306
Aws::EC2::Model::DescribeVolumeStatusRequest::WithNextToken
DescribeVolumeStatusRequest & WithNextToken(const Aws::String &value)
Definition: DescribeVolumeStatusRequest.h:375