AWS SDK for C++

AWS SDK for C++ Version 1.11.811

Loading...
Searching...
No Matches
DescribeVolumeStatusRequest.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 DescribeVolumeStatusRequest() = 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 "DescribeVolumeStatus"; }
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
44 inline int GetMaxResults() const { return m_maxResults; }
45 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
46 inline void SetMaxResults(int value) {
47 m_maxResultsHasBeenSet = true;
48 m_maxResults = value;
49 }
51 SetMaxResults(value);
52 return *this;
53 }
55
57
61 inline const Aws::String& GetNextToken() const { return m_nextToken; }
62 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
63 template <typename NextTokenT = Aws::String>
64 void SetNextToken(NextTokenT&& value) {
65 m_nextTokenHasBeenSet = true;
66 m_nextToken = std::forward<NextTokenT>(value);
67 }
68 template <typename NextTokenT = Aws::String>
70 SetNextToken(std::forward<NextTokenT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::Vector<Aws::String>& GetVolumeIds() const { return m_volumeIds; }
80 inline bool VolumeIdsHasBeenSet() const { return m_volumeIdsHasBeenSet; }
81 template <typename VolumeIdsT = Aws::Vector<Aws::String>>
82 void SetVolumeIds(VolumeIdsT&& value) {
83 m_volumeIdsHasBeenSet = true;
84 m_volumeIds = std::forward<VolumeIdsT>(value);
85 }
86 template <typename VolumeIdsT = Aws::Vector<Aws::String>>
88 SetVolumeIds(std::forward<VolumeIdsT>(value));
89 return *this;
90 }
91 template <typename VolumeIdsT = Aws::String>
93 m_volumeIdsHasBeenSet = true;
94 m_volumeIds.emplace_back(std::forward<VolumeIdsT>(value));
95 return *this;
96 }
98
100
106 inline bool GetIncludeManagedResources() const { return m_includeManagedResources; }
107 inline bool IncludeManagedResourcesHasBeenSet() const { return m_includeManagedResourcesHasBeenSet; }
108 inline void SetIncludeManagedResources(bool value) {
109 m_includeManagedResourcesHasBeenSet = true;
110 m_includeManagedResources = value;
111 }
114 return *this;
115 }
117
119
125 inline bool GetDryRun() const { return m_dryRun; }
126 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
127 inline void SetDryRun(bool value) {
128 m_dryRunHasBeenSet = true;
129 m_dryRun = value;
130 }
132 SetDryRun(value);
133 return *this;
134 }
136
138
164 inline const Aws::Vector<Filter>& GetFilters() const { return m_filters; }
165 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
166 template <typename FiltersT = Aws::Vector<Filter>>
167 void SetFilters(FiltersT&& value) {
168 m_filtersHasBeenSet = true;
169 m_filters = std::forward<FiltersT>(value);
170 }
171 template <typename FiltersT = Aws::Vector<Filter>>
173 SetFilters(std::forward<FiltersT>(value));
174 return *this;
175 }
176 template <typename FiltersT = Filter>
178 m_filtersHasBeenSet = true;
179 m_filters.emplace_back(std::forward<FiltersT>(value));
180 return *this;
181 }
183 private:
184 int m_maxResults{0};
185
186 Aws::String m_nextToken;
187
188 Aws::Vector<Aws::String> m_volumeIds;
189
190 bool m_includeManagedResources{false};
191
192 bool m_dryRun{false};
193
194 Aws::Vector<Filter> m_filters;
195 bool m_maxResultsHasBeenSet = false;
196 bool m_nextTokenHasBeenSet = false;
197 bool m_volumeIdsHasBeenSet = false;
198 bool m_includeManagedResourcesHasBeenSet = false;
199 bool m_dryRunHasBeenSet = false;
200 bool m_filtersHasBeenSet = false;
201};
202
203} // namespace Model
204} // namespace EC2
205} // namespace Aws
DescribeVolumeStatusRequest & WithFilters(FiltersT &&value)
AWS_EC2_API Aws::String SerializePayload() const override
DescribeVolumeStatusRequest & WithDryRun(bool value)
virtual const char * GetServiceRequestName() const override
DescribeVolumeStatusRequest & AddFilters(FiltersT &&value)
DescribeVolumeStatusRequest & AddVolumeIds(VolumeIdsT &&value)
DescribeVolumeStatusRequest & WithMaxResults(int value)
AWS_EC2_API DescribeVolumeStatusRequest()=default
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DescribeVolumeStatusRequest & WithIncludeManagedResources(bool value)
DescribeVolumeStatusRequest & WithNextToken(NextTokenT &&value)
const Aws::Vector< Aws::String > & GetVolumeIds() const
DescribeVolumeStatusRequest & WithVolumeIds(VolumeIdsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector