AWS SDK for C++

AWS SDK for C++ Version 1.11.816

Loading...
Searching...
No Matches
VolumeModification.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/VolumeModificationState.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 VolumeModification() = default;
35 AWS_EC2_API VolumeModification(const Aws::Utils::Xml::XmlNode& xmlNode);
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 VolumeModification& WithVolumeId(VolumeIdT&& value) {
54 SetVolumeId(std::forward<VolumeIdT>(value));
55 return *this;
56 }
58
60
63 inline VolumeModificationState GetModificationState() const { return m_modificationState; }
64 inline bool ModificationStateHasBeenSet() const { return m_modificationStateHasBeenSet; }
66 m_modificationStateHasBeenSet = true;
67 m_modificationState = value;
68 }
71 return *this;
72 }
74
76
79 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
80 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
81 template <typename StatusMessageT = Aws::String>
82 void SetStatusMessage(StatusMessageT&& value) {
83 m_statusMessageHasBeenSet = true;
84 m_statusMessage = std::forward<StatusMessageT>(value);
85 }
86 template <typename StatusMessageT = Aws::String>
87 VolumeModification& WithStatusMessage(StatusMessageT&& value) {
88 SetStatusMessage(std::forward<StatusMessageT>(value));
89 return *this;
90 }
92
94
97 inline int GetTargetSize() const { return m_targetSize; }
98 inline bool TargetSizeHasBeenSet() const { return m_targetSizeHasBeenSet; }
99 inline void SetTargetSize(int value) {
100 m_targetSizeHasBeenSet = true;
101 m_targetSize = value;
102 }
104 SetTargetSize(value);
105 return *this;
106 }
108
110
113 inline int GetTargetIops() const { return m_targetIops; }
114 inline bool TargetIopsHasBeenSet() const { return m_targetIopsHasBeenSet; }
115 inline void SetTargetIops(int value) {
116 m_targetIopsHasBeenSet = true;
117 m_targetIops = value;
118 }
120 SetTargetIops(value);
121 return *this;
122 }
124
126
129 inline VolumeType GetTargetVolumeType() const { return m_targetVolumeType; }
130 inline bool TargetVolumeTypeHasBeenSet() const { return m_targetVolumeTypeHasBeenSet; }
131 inline void SetTargetVolumeType(VolumeType value) {
132 m_targetVolumeTypeHasBeenSet = true;
133 m_targetVolumeType = value;
134 }
136 SetTargetVolumeType(value);
137 return *this;
138 }
140
142
145 inline int GetTargetThroughput() const { return m_targetThroughput; }
146 inline bool TargetThroughputHasBeenSet() const { return m_targetThroughputHasBeenSet; }
147 inline void SetTargetThroughput(int value) {
148 m_targetThroughputHasBeenSet = true;
149 m_targetThroughput = value;
150 }
152 SetTargetThroughput(value);
153 return *this;
154 }
156
158
161 inline bool GetTargetMultiAttachEnabled() const { return m_targetMultiAttachEnabled; }
162 inline bool TargetMultiAttachEnabledHasBeenSet() const { return m_targetMultiAttachEnabledHasBeenSet; }
163 inline void SetTargetMultiAttachEnabled(bool value) {
164 m_targetMultiAttachEnabledHasBeenSet = true;
165 m_targetMultiAttachEnabled = value;
166 }
169 return *this;
170 }
172
174
177 inline int GetOriginalSize() const { return m_originalSize; }
178 inline bool OriginalSizeHasBeenSet() const { return m_originalSizeHasBeenSet; }
179 inline void SetOriginalSize(int value) {
180 m_originalSizeHasBeenSet = true;
181 m_originalSize = value;
182 }
184 SetOriginalSize(value);
185 return *this;
186 }
188
190
193 inline int GetOriginalIops() const { return m_originalIops; }
194 inline bool OriginalIopsHasBeenSet() const { return m_originalIopsHasBeenSet; }
195 inline void SetOriginalIops(int value) {
196 m_originalIopsHasBeenSet = true;
197 m_originalIops = value;
198 }
200 SetOriginalIops(value);
201 return *this;
202 }
204
206
209 inline VolumeType GetOriginalVolumeType() const { return m_originalVolumeType; }
210 inline bool OriginalVolumeTypeHasBeenSet() const { return m_originalVolumeTypeHasBeenSet; }
212 m_originalVolumeTypeHasBeenSet = true;
213 m_originalVolumeType = value;
214 }
217 return *this;
218 }
220
222
225 inline int GetOriginalThroughput() const { return m_originalThroughput; }
226 inline bool OriginalThroughputHasBeenSet() const { return m_originalThroughputHasBeenSet; }
227 inline void SetOriginalThroughput(int value) {
228 m_originalThroughputHasBeenSet = true;
229 m_originalThroughput = value;
230 }
233 return *this;
234 }
236
238
241 inline bool GetOriginalMultiAttachEnabled() const { return m_originalMultiAttachEnabled; }
242 inline bool OriginalMultiAttachEnabledHasBeenSet() const { return m_originalMultiAttachEnabledHasBeenSet; }
243 inline void SetOriginalMultiAttachEnabled(bool value) {
244 m_originalMultiAttachEnabledHasBeenSet = true;
245 m_originalMultiAttachEnabled = value;
246 }
249 return *this;
250 }
252
254
257 inline long long GetProgress() const { return m_progress; }
258 inline bool ProgressHasBeenSet() const { return m_progressHasBeenSet; }
259 inline void SetProgress(long long value) {
260 m_progressHasBeenSet = true;
261 m_progress = value;
262 }
263 inline VolumeModification& WithProgress(long long value) {
264 SetProgress(value);
265 return *this;
266 }
268
270
273 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
274 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
275 template <typename StartTimeT = Aws::Utils::DateTime>
276 void SetStartTime(StartTimeT&& value) {
277 m_startTimeHasBeenSet = true;
278 m_startTime = std::forward<StartTimeT>(value);
279 }
280 template <typename StartTimeT = Aws::Utils::DateTime>
281 VolumeModification& WithStartTime(StartTimeT&& value) {
282 SetStartTime(std::forward<StartTimeT>(value));
283 return *this;
284 }
286
288
291 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
292 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
293 template <typename EndTimeT = Aws::Utils::DateTime>
294 void SetEndTime(EndTimeT&& value) {
295 m_endTimeHasBeenSet = true;
296 m_endTime = std::forward<EndTimeT>(value);
297 }
298 template <typename EndTimeT = Aws::Utils::DateTime>
299 VolumeModification& WithEndTime(EndTimeT&& value) {
300 SetEndTime(std::forward<EndTimeT>(value));
301 return *this;
302 }
304
306
307 inline const OperatorResponse& GetOperator() const { return m_operator; }
308 inline bool OperatorHasBeenSet() const { return m_operatorHasBeenSet; }
309 template <typename OperatorT = OperatorResponse>
310 void SetOperator(OperatorT&& value) {
311 m_operatorHasBeenSet = true;
312 m_operator = std::forward<OperatorT>(value);
313 }
314 template <typename OperatorT = OperatorResponse>
315 VolumeModification& WithOperator(OperatorT&& value) {
316 SetOperator(std::forward<OperatorT>(value));
317 return *this;
318 }
320 private:
321 Aws::String m_volumeId;
322
324
325 Aws::String m_statusMessage;
326
327 int m_targetSize{0};
328
329 int m_targetIops{0};
330
331 VolumeType m_targetVolumeType{VolumeType::NOT_SET};
332
333 int m_targetThroughput{0};
334
335 bool m_targetMultiAttachEnabled{false};
336
337 int m_originalSize{0};
338
339 int m_originalIops{0};
340
341 VolumeType m_originalVolumeType{VolumeType::NOT_SET};
342
343 int m_originalThroughput{0};
344
345 bool m_originalMultiAttachEnabled{false};
346
347 long long m_progress{0};
348
349 Aws::Utils::DateTime m_startTime{};
350
351 Aws::Utils::DateTime m_endTime{};
352
353 OperatorResponse m_operator;
354 bool m_volumeIdHasBeenSet = false;
355 bool m_modificationStateHasBeenSet = false;
356 bool m_statusMessageHasBeenSet = false;
357 bool m_targetSizeHasBeenSet = false;
358 bool m_targetIopsHasBeenSet = false;
359 bool m_targetVolumeTypeHasBeenSet = false;
360 bool m_targetThroughputHasBeenSet = false;
361 bool m_targetMultiAttachEnabledHasBeenSet = false;
362 bool m_originalSizeHasBeenSet = false;
363 bool m_originalIopsHasBeenSet = false;
364 bool m_originalVolumeTypeHasBeenSet = false;
365 bool m_originalThroughputHasBeenSet = false;
366 bool m_originalMultiAttachEnabledHasBeenSet = false;
367 bool m_progressHasBeenSet = false;
368 bool m_startTimeHasBeenSet = false;
369 bool m_endTimeHasBeenSet = false;
370 bool m_operatorHasBeenSet = false;
371};
372
373} // namespace Model
374} // namespace EC2
375} // namespace Aws
VolumeModification & WithOriginalThroughput(int value)
VolumeModification & WithOriginalMultiAttachEnabled(bool value)
VolumeModification & WithTargetThroughput(int value)
VolumeModification & WithTargetVolumeType(VolumeType value)
const Aws::String & GetStatusMessage() const
const Aws::Utils::DateTime & GetEndTime() const
VolumeModification & WithOperator(OperatorT &&value)
VolumeModification & WithTargetIops(int value)
VolumeModification & WithModificationState(VolumeModificationState value)
VolumeModification & WithTargetSize(int value)
VolumeModification & WithOriginalSize(int value)
void SetStatusMessage(StatusMessageT &&value)
AWS_EC2_API VolumeModification()=default
VolumeModification & WithOriginalVolumeType(VolumeType value)
void SetModificationState(VolumeModificationState value)
AWS_EC2_API VolumeModification & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
VolumeModification & WithStatusMessage(StatusMessageT &&value)
VolumeModification & WithOriginalIops(int value)
VolumeModification & WithProgress(long long value)
const OperatorResponse & GetOperator() const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
VolumeModificationState GetModificationState() const
VolumeModification & WithEndTime(EndTimeT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::Utils::DateTime & GetStartTime() const
VolumeModification & WithTargetMultiAttachEnabled(bool value)
VolumeModification & WithVolumeId(VolumeIdT &&value)
AWS_EC2_API VolumeModification(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetOriginalVolumeType(VolumeType value)
const Aws::String & GetVolumeId() const
VolumeModification & WithStartTime(StartTimeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream