AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DescribeVolumesRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ec2/EC2Request.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11#include <aws/ec2/model/Filter.h>
12
13#include <utility>
14
15namespace Aws {
16namespace EC2 {
17namespace Model {
18
22 public:
23 AWS_EC2_API DescribeVolumesRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "DescribeVolumes"; }
30
31 AWS_EC2_API Aws::String SerializePayload() const override;
32
33 protected:
34 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
35
36 public:
38
42 inline const Aws::Vector<Aws::String>& GetVolumeIds() const { return m_volumeIds; }
43 inline bool VolumeIdsHasBeenSet() const { return m_volumeIdsHasBeenSet; }
44 template <typename VolumeIdsT = Aws::Vector<Aws::String>>
45 void SetVolumeIds(VolumeIdsT&& value) {
46 m_volumeIdsHasBeenSet = true;
47 m_volumeIds = std::forward<VolumeIdsT>(value);
48 }
49 template <typename VolumeIdsT = Aws::Vector<Aws::String>>
51 SetVolumeIds(std::forward<VolumeIdsT>(value));
52 return *this;
53 }
54 template <typename VolumeIdsT = Aws::String>
55 DescribeVolumesRequest& AddVolumeIds(VolumeIdsT&& value) {
56 m_volumeIdsHasBeenSet = true;
57 m_volumeIds.emplace_back(std::forward<VolumeIdsT>(value));
58 return *this;
59 }
61
63
69 inline bool GetDryRun() const { return m_dryRun; }
70 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
71 inline void SetDryRun(bool value) {
72 m_dryRunHasBeenSet = true;
73 m_dryRun = value;
74 }
75 inline DescribeVolumesRequest& WithDryRun(bool value) {
76 SetDryRun(value);
77 return *this;
78 }
80
82
124 inline const Aws::Vector<Filter>& GetFilters() const { return m_filters; }
125 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
126 template <typename FiltersT = Aws::Vector<Filter>>
127 void SetFilters(FiltersT&& value) {
128 m_filtersHasBeenSet = true;
129 m_filters = std::forward<FiltersT>(value);
130 }
131 template <typename FiltersT = Aws::Vector<Filter>>
133 SetFilters(std::forward<FiltersT>(value));
134 return *this;
135 }
136 template <typename FiltersT = Filter>
138 m_filtersHasBeenSet = true;
139 m_filters.emplace_back(std::forward<FiltersT>(value));
140 return *this;
141 }
143
145
149 inline const Aws::String& GetNextToken() const { return m_nextToken; }
150 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
151 template <typename NextTokenT = Aws::String>
152 void SetNextToken(NextTokenT&& value) {
153 m_nextTokenHasBeenSet = true;
154 m_nextToken = std::forward<NextTokenT>(value);
155 }
156 template <typename NextTokenT = Aws::String>
158 SetNextToken(std::forward<NextTokenT>(value));
159 return *this;
160 }
162
164
170 inline int GetMaxResults() const { return m_maxResults; }
171 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
172 inline void SetMaxResults(int value) {
173 m_maxResultsHasBeenSet = true;
174 m_maxResults = value;
175 }
177 SetMaxResults(value);
178 return *this;
179 }
181 private:
182 Aws::Vector<Aws::String> m_volumeIds;
183
184 bool m_dryRun{false};
185
186 Aws::Vector<Filter> m_filters;
187
188 Aws::String m_nextToken;
189
190 int m_maxResults{0};
191 bool m_volumeIdsHasBeenSet = false;
192 bool m_dryRunHasBeenSet = false;
193 bool m_filtersHasBeenSet = false;
194 bool m_nextTokenHasBeenSet = false;
195 bool m_maxResultsHasBeenSet = false;
196};
197
198} // namespace Model
199} // namespace EC2
200} // namespace Aws
const Aws::Vector< Aws::String > & GetVolumeIds() const
DescribeVolumesRequest & AddFilters(FiltersT &&value)
DescribeVolumesRequest & WithFilters(FiltersT &&value)
virtual const char * GetServiceRequestName() const override
DescribeVolumesRequest & WithDryRun(bool value)
AWS_EC2_API DescribeVolumesRequest()=default
DescribeVolumesRequest & WithMaxResults(int value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DescribeVolumesRequest & WithNextToken(NextTokenT &&value)
DescribeVolumesRequest & WithVolumeIds(VolumeIdsT &&value)
DescribeVolumesRequest & AddVolumeIds(VolumeIdsT &&value)
AWS_EC2_API Aws::String SerializePayload() const override
const Aws::Vector< Filter > & GetFilters() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector