AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
VolumeRecycleBinInfo.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11#include <aws/ec2/model/OperatorResponse.h>
12#include <aws/ec2/model/VolumeState.h>
13#include <aws/ec2/model/VolumeType.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Xml {
20class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace EC2 {
24namespace Model {
25
33 public:
34 AWS_EC2_API VolumeRecycleBinInfo() = default;
37
38 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
39 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
40
42
45 inline const Aws::String& GetVolumeId() const { return m_volumeId; }
46 inline bool VolumeIdHasBeenSet() const { return m_volumeIdHasBeenSet; }
47 template <typename VolumeIdT = Aws::String>
48 void SetVolumeId(VolumeIdT&& value) {
49 m_volumeIdHasBeenSet = true;
50 m_volumeId = std::forward<VolumeIdT>(value);
51 }
52 template <typename VolumeIdT = Aws::String>
53 VolumeRecycleBinInfo& WithVolumeId(VolumeIdT&& value) {
54 SetVolumeId(std::forward<VolumeIdT>(value));
55 return *this;
56 }
58
60
63 inline VolumeType GetVolumeType() const { return m_volumeType; }
64 inline bool VolumeTypeHasBeenSet() const { return m_volumeTypeHasBeenSet; }
65 inline void SetVolumeType(VolumeType value) {
66 m_volumeTypeHasBeenSet = true;
67 m_volumeType = value;
68 }
70 SetVolumeType(value);
71 return *this;
72 }
74
76
79 inline VolumeState GetState() const { return m_state; }
80 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
81 inline void SetState(VolumeState value) {
82 m_stateHasBeenSet = true;
83 m_state = value;
84 }
86 SetState(value);
87 return *this;
88 }
90
92
95 inline int GetSize() const { return m_size; }
96 inline bool SizeHasBeenSet() const { return m_sizeHasBeenSet; }
97 inline void SetSize(int value) {
98 m_sizeHasBeenSet = true;
99 m_size = value;
100 }
101 inline VolumeRecycleBinInfo& WithSize(int value) {
102 SetSize(value);
103 return *this;
104 }
106
108
111 inline int GetIops() const { return m_iops; }
112 inline bool IopsHasBeenSet() const { return m_iopsHasBeenSet; }
113 inline void SetIops(int value) {
114 m_iopsHasBeenSet = true;
115 m_iops = value;
116 }
117 inline VolumeRecycleBinInfo& WithIops(int value) {
118 SetIops(value);
119 return *this;
120 }
122
124
127 inline int GetThroughput() const { return m_throughput; }
128 inline bool ThroughputHasBeenSet() const { return m_throughputHasBeenSet; }
129 inline void SetThroughput(int value) {
130 m_throughputHasBeenSet = true;
131 m_throughput = value;
132 }
134 SetThroughput(value);
135 return *this;
136 }
138
140
146 inline const Aws::String& GetOutpostArn() const { return m_outpostArn; }
147 inline bool OutpostArnHasBeenSet() const { return m_outpostArnHasBeenSet; }
148 template <typename OutpostArnT = Aws::String>
149 void SetOutpostArn(OutpostArnT&& value) {
150 m_outpostArnHasBeenSet = true;
151 m_outpostArn = std::forward<OutpostArnT>(value);
152 }
153 template <typename OutpostArnT = Aws::String>
154 VolumeRecycleBinInfo& WithOutpostArn(OutpostArnT&& value) {
155 SetOutpostArn(std::forward<OutpostArnT>(value));
156 return *this;
157 }
159
161
164 inline const Aws::String& GetAvailabilityZone() const { return m_availabilityZone; }
165 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
166 template <typename AvailabilityZoneT = Aws::String>
167 void SetAvailabilityZone(AvailabilityZoneT&& value) {
168 m_availabilityZoneHasBeenSet = true;
169 m_availabilityZone = std::forward<AvailabilityZoneT>(value);
170 }
171 template <typename AvailabilityZoneT = Aws::String>
172 VolumeRecycleBinInfo& WithAvailabilityZone(AvailabilityZoneT&& value) {
173 SetAvailabilityZone(std::forward<AvailabilityZoneT>(value));
174 return *this;
175 }
177
179
182 inline const Aws::String& GetAvailabilityZoneId() const { return m_availabilityZoneId; }
183 inline bool AvailabilityZoneIdHasBeenSet() const { return m_availabilityZoneIdHasBeenSet; }
184 template <typename AvailabilityZoneIdT = Aws::String>
185 void SetAvailabilityZoneId(AvailabilityZoneIdT&& value) {
186 m_availabilityZoneIdHasBeenSet = true;
187 m_availabilityZoneId = std::forward<AvailabilityZoneIdT>(value);
188 }
189 template <typename AvailabilityZoneIdT = Aws::String>
190 VolumeRecycleBinInfo& WithAvailabilityZoneId(AvailabilityZoneIdT&& value) {
191 SetAvailabilityZoneId(std::forward<AvailabilityZoneIdT>(value));
192 return *this;
193 }
195
197
200 inline const Aws::String& GetSourceVolumeId() const { return m_sourceVolumeId; }
201 inline bool SourceVolumeIdHasBeenSet() const { return m_sourceVolumeIdHasBeenSet; }
202 template <typename SourceVolumeIdT = Aws::String>
203 void SetSourceVolumeId(SourceVolumeIdT&& value) {
204 m_sourceVolumeIdHasBeenSet = true;
205 m_sourceVolumeId = std::forward<SourceVolumeIdT>(value);
206 }
207 template <typename SourceVolumeIdT = Aws::String>
208 VolumeRecycleBinInfo& WithSourceVolumeId(SourceVolumeIdT&& value) {
209 SetSourceVolumeId(std::forward<SourceVolumeIdT>(value));
210 return *this;
211 }
213
215
218 inline const Aws::String& GetSnapshotId() const { return m_snapshotId; }
219 inline bool SnapshotIdHasBeenSet() const { return m_snapshotIdHasBeenSet; }
220 template <typename SnapshotIdT = Aws::String>
221 void SetSnapshotId(SnapshotIdT&& value) {
222 m_snapshotIdHasBeenSet = true;
223 m_snapshotId = std::forward<SnapshotIdT>(value);
224 }
225 template <typename SnapshotIdT = Aws::String>
226 VolumeRecycleBinInfo& WithSnapshotId(SnapshotIdT&& value) {
227 SetSnapshotId(std::forward<SnapshotIdT>(value));
228 return *this;
229 }
231
233
236 inline const OperatorResponse& GetOperator() const { return m_operator; }
237 inline bool OperatorHasBeenSet() const { return m_operatorHasBeenSet; }
238 template <typename OperatorT = OperatorResponse>
239 void SetOperator(OperatorT&& value) {
240 m_operatorHasBeenSet = true;
241 m_operator = std::forward<OperatorT>(value);
242 }
243 template <typename OperatorT = OperatorResponse>
244 VolumeRecycleBinInfo& WithOperator(OperatorT&& value) {
245 SetOperator(std::forward<OperatorT>(value));
246 return *this;
247 }
249
251
254 inline const Aws::Utils::DateTime& GetCreateTime() const { return m_createTime; }
255 inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; }
256 template <typename CreateTimeT = Aws::Utils::DateTime>
257 void SetCreateTime(CreateTimeT&& value) {
258 m_createTimeHasBeenSet = true;
259 m_createTime = std::forward<CreateTimeT>(value);
260 }
261 template <typename CreateTimeT = Aws::Utils::DateTime>
262 VolumeRecycleBinInfo& WithCreateTime(CreateTimeT&& value) {
263 SetCreateTime(std::forward<CreateTimeT>(value));
264 return *this;
265 }
267
269
272 inline const Aws::Utils::DateTime& GetRecycleBinEnterTime() const { return m_recycleBinEnterTime; }
273 inline bool RecycleBinEnterTimeHasBeenSet() const { return m_recycleBinEnterTimeHasBeenSet; }
274 template <typename RecycleBinEnterTimeT = Aws::Utils::DateTime>
275 void SetRecycleBinEnterTime(RecycleBinEnterTimeT&& value) {
276 m_recycleBinEnterTimeHasBeenSet = true;
277 m_recycleBinEnterTime = std::forward<RecycleBinEnterTimeT>(value);
278 }
279 template <typename RecycleBinEnterTimeT = Aws::Utils::DateTime>
280 VolumeRecycleBinInfo& WithRecycleBinEnterTime(RecycleBinEnterTimeT&& value) {
281 SetRecycleBinEnterTime(std::forward<RecycleBinEnterTimeT>(value));
282 return *this;
283 }
285
287
291 inline const Aws::Utils::DateTime& GetRecycleBinExitTime() const { return m_recycleBinExitTime; }
292 inline bool RecycleBinExitTimeHasBeenSet() const { return m_recycleBinExitTimeHasBeenSet; }
293 template <typename RecycleBinExitTimeT = Aws::Utils::DateTime>
294 void SetRecycleBinExitTime(RecycleBinExitTimeT&& value) {
295 m_recycleBinExitTimeHasBeenSet = true;
296 m_recycleBinExitTime = std::forward<RecycleBinExitTimeT>(value);
297 }
298 template <typename RecycleBinExitTimeT = Aws::Utils::DateTime>
299 VolumeRecycleBinInfo& WithRecycleBinExitTime(RecycleBinExitTimeT&& value) {
300 SetRecycleBinExitTime(std::forward<RecycleBinExitTimeT>(value));
301 return *this;
302 }
304 private:
305 Aws::String m_volumeId;
306
307 VolumeType m_volumeType{VolumeType::NOT_SET};
308
310
311 int m_size{0};
312
313 int m_iops{0};
314
315 int m_throughput{0};
316
317 Aws::String m_outpostArn;
318
319 Aws::String m_availabilityZone;
320
321 Aws::String m_availabilityZoneId;
322
323 Aws::String m_sourceVolumeId;
324
325 Aws::String m_snapshotId;
326
327 OperatorResponse m_operator;
328
329 Aws::Utils::DateTime m_createTime{};
330
331 Aws::Utils::DateTime m_recycleBinEnterTime{};
332
333 Aws::Utils::DateTime m_recycleBinExitTime{};
334 bool m_volumeIdHasBeenSet = false;
335 bool m_volumeTypeHasBeenSet = false;
336 bool m_stateHasBeenSet = false;
337 bool m_sizeHasBeenSet = false;
338 bool m_iopsHasBeenSet = false;
339 bool m_throughputHasBeenSet = false;
340 bool m_outpostArnHasBeenSet = false;
341 bool m_availabilityZoneHasBeenSet = false;
342 bool m_availabilityZoneIdHasBeenSet = false;
343 bool m_sourceVolumeIdHasBeenSet = false;
344 bool m_snapshotIdHasBeenSet = false;
345 bool m_operatorHasBeenSet = false;
346 bool m_createTimeHasBeenSet = false;
347 bool m_recycleBinEnterTimeHasBeenSet = false;
348 bool m_recycleBinExitTimeHasBeenSet = false;
349};
350
351} // namespace Model
352} // namespace EC2
353} // namespace Aws
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API VolumeRecycleBinInfo & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
VolumeRecycleBinInfo & WithSnapshotId(SnapshotIdT &&value)
const Aws::Utils::DateTime & GetRecycleBinEnterTime() const
void SetSourceVolumeId(SourceVolumeIdT &&value)
VolumeRecycleBinInfo & WithState(VolumeState value)
const Aws::Utils::DateTime & GetCreateTime() const
void SetAvailabilityZone(AvailabilityZoneT &&value)
VolumeRecycleBinInfo & WithRecycleBinExitTime(RecycleBinExitTimeT &&value)
VolumeRecycleBinInfo & WithAvailabilityZoneId(AvailabilityZoneIdT &&value)
AWS_EC2_API VolumeRecycleBinInfo()=default
const OperatorResponse & GetOperator() const
VolumeRecycleBinInfo & WithVolumeType(VolumeType value)
VolumeRecycleBinInfo & WithRecycleBinEnterTime(RecycleBinEnterTimeT &&value)
VolumeRecycleBinInfo & WithSize(int value)
const Aws::String & GetSourceVolumeId() const
void SetRecycleBinEnterTime(RecycleBinEnterTimeT &&value)
VolumeRecycleBinInfo & WithAvailabilityZone(AvailabilityZoneT &&value)
const Aws::String & GetVolumeId() const
void SetAvailabilityZoneId(AvailabilityZoneIdT &&value)
const Aws::String & GetAvailabilityZone() const
const Aws::String & GetOutpostArn() const
VolumeRecycleBinInfo & WithCreateTime(CreateTimeT &&value)
VolumeRecycleBinInfo & WithIops(int value)
const Aws::String & GetAvailabilityZoneId() const
VolumeRecycleBinInfo & WithThroughput(int value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::Utils::DateTime & GetRecycleBinExitTime() const
void SetRecycleBinExitTime(RecycleBinExitTimeT &&value)
const Aws::String & GetSnapshotId() const
VolumeRecycleBinInfo & WithVolumeId(VolumeIdT &&value)
VolumeRecycleBinInfo & WithSourceVolumeId(SourceVolumeIdT &&value)
VolumeRecycleBinInfo & WithOutpostArn(OutpostArnT &&value)
VolumeRecycleBinInfo & WithOperator(OperatorT &&value)
AWS_EC2_API VolumeRecycleBinInfo(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream