AWS SDK for C++

AWS SDK for C++ Version 1.11.717

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/VolumeModificationState.h>
12#include <aws/ec2/model/VolumeType.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Xml {
19class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace EC2 {
23namespace Model {
24
32 public:
33 AWS_EC2_API VolumeModification() = default;
34 AWS_EC2_API VolumeModification(const Aws::Utils::Xml::XmlNode& xmlNode);
36
37 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
38 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
39
41
44 inline const Aws::String& GetVolumeId() const { return m_volumeId; }
45 inline bool VolumeIdHasBeenSet() const { return m_volumeIdHasBeenSet; }
46 template <typename VolumeIdT = Aws::String>
47 void SetVolumeId(VolumeIdT&& value) {
48 m_volumeIdHasBeenSet = true;
49 m_volumeId = std::forward<VolumeIdT>(value);
50 }
51 template <typename VolumeIdT = Aws::String>
52 VolumeModification& WithVolumeId(VolumeIdT&& value) {
53 SetVolumeId(std::forward<VolumeIdT>(value));
54 return *this;
55 }
57
59
62 inline VolumeModificationState GetModificationState() const { return m_modificationState; }
63 inline bool ModificationStateHasBeenSet() const { return m_modificationStateHasBeenSet; }
65 m_modificationStateHasBeenSet = true;
66 m_modificationState = value;
67 }
70 return *this;
71 }
73
75
78 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
79 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
80 template <typename StatusMessageT = Aws::String>
81 void SetStatusMessage(StatusMessageT&& value) {
82 m_statusMessageHasBeenSet = true;
83 m_statusMessage = std::forward<StatusMessageT>(value);
84 }
85 template <typename StatusMessageT = Aws::String>
86 VolumeModification& WithStatusMessage(StatusMessageT&& value) {
87 SetStatusMessage(std::forward<StatusMessageT>(value));
88 return *this;
89 }
91
93
96 inline int GetTargetSize() const { return m_targetSize; }
97 inline bool TargetSizeHasBeenSet() const { return m_targetSizeHasBeenSet; }
98 inline void SetTargetSize(int value) {
99 m_targetSizeHasBeenSet = true;
100 m_targetSize = value;
101 }
103 SetTargetSize(value);
104 return *this;
105 }
107
109
112 inline int GetTargetIops() const { return m_targetIops; }
113 inline bool TargetIopsHasBeenSet() const { return m_targetIopsHasBeenSet; }
114 inline void SetTargetIops(int value) {
115 m_targetIopsHasBeenSet = true;
116 m_targetIops = value;
117 }
119 SetTargetIops(value);
120 return *this;
121 }
123
125
128 inline VolumeType GetTargetVolumeType() const { return m_targetVolumeType; }
129 inline bool TargetVolumeTypeHasBeenSet() const { return m_targetVolumeTypeHasBeenSet; }
130 inline void SetTargetVolumeType(VolumeType value) {
131 m_targetVolumeTypeHasBeenSet = true;
132 m_targetVolumeType = value;
133 }
135 SetTargetVolumeType(value);
136 return *this;
137 }
139
141
144 inline int GetTargetThroughput() const { return m_targetThroughput; }
145 inline bool TargetThroughputHasBeenSet() const { return m_targetThroughputHasBeenSet; }
146 inline void SetTargetThroughput(int value) {
147 m_targetThroughputHasBeenSet = true;
148 m_targetThroughput = value;
149 }
151 SetTargetThroughput(value);
152 return *this;
153 }
155
157
160 inline bool GetTargetMultiAttachEnabled() const { return m_targetMultiAttachEnabled; }
161 inline bool TargetMultiAttachEnabledHasBeenSet() const { return m_targetMultiAttachEnabledHasBeenSet; }
162 inline void SetTargetMultiAttachEnabled(bool value) {
163 m_targetMultiAttachEnabledHasBeenSet = true;
164 m_targetMultiAttachEnabled = value;
165 }
168 return *this;
169 }
171
173
176 inline int GetOriginalSize() const { return m_originalSize; }
177 inline bool OriginalSizeHasBeenSet() const { return m_originalSizeHasBeenSet; }
178 inline void SetOriginalSize(int value) {
179 m_originalSizeHasBeenSet = true;
180 m_originalSize = value;
181 }
183 SetOriginalSize(value);
184 return *this;
185 }
187
189
192 inline int GetOriginalIops() const { return m_originalIops; }
193 inline bool OriginalIopsHasBeenSet() const { return m_originalIopsHasBeenSet; }
194 inline void SetOriginalIops(int value) {
195 m_originalIopsHasBeenSet = true;
196 m_originalIops = value;
197 }
199 SetOriginalIops(value);
200 return *this;
201 }
203
205
208 inline VolumeType GetOriginalVolumeType() const { return m_originalVolumeType; }
209 inline bool OriginalVolumeTypeHasBeenSet() const { return m_originalVolumeTypeHasBeenSet; }
211 m_originalVolumeTypeHasBeenSet = true;
212 m_originalVolumeType = value;
213 }
216 return *this;
217 }
219
221
224 inline int GetOriginalThroughput() const { return m_originalThroughput; }
225 inline bool OriginalThroughputHasBeenSet() const { return m_originalThroughputHasBeenSet; }
226 inline void SetOriginalThroughput(int value) {
227 m_originalThroughputHasBeenSet = true;
228 m_originalThroughput = value;
229 }
232 return *this;
233 }
235
237
240 inline bool GetOriginalMultiAttachEnabled() const { return m_originalMultiAttachEnabled; }
241 inline bool OriginalMultiAttachEnabledHasBeenSet() const { return m_originalMultiAttachEnabledHasBeenSet; }
242 inline void SetOriginalMultiAttachEnabled(bool value) {
243 m_originalMultiAttachEnabledHasBeenSet = true;
244 m_originalMultiAttachEnabled = value;
245 }
248 return *this;
249 }
251
253
256 inline long long GetProgress() const { return m_progress; }
257 inline bool ProgressHasBeenSet() const { return m_progressHasBeenSet; }
258 inline void SetProgress(long long value) {
259 m_progressHasBeenSet = true;
260 m_progress = value;
261 }
262 inline VolumeModification& WithProgress(long long value) {
263 SetProgress(value);
264 return *this;
265 }
267
269
272 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
273 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
274 template <typename StartTimeT = Aws::Utils::DateTime>
275 void SetStartTime(StartTimeT&& value) {
276 m_startTimeHasBeenSet = true;
277 m_startTime = std::forward<StartTimeT>(value);
278 }
279 template <typename StartTimeT = Aws::Utils::DateTime>
280 VolumeModification& WithStartTime(StartTimeT&& value) {
281 SetStartTime(std::forward<StartTimeT>(value));
282 return *this;
283 }
285
287
290 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
291 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
292 template <typename EndTimeT = Aws::Utils::DateTime>
293 void SetEndTime(EndTimeT&& value) {
294 m_endTimeHasBeenSet = true;
295 m_endTime = std::forward<EndTimeT>(value);
296 }
297 template <typename EndTimeT = Aws::Utils::DateTime>
298 VolumeModification& WithEndTime(EndTimeT&& value) {
299 SetEndTime(std::forward<EndTimeT>(value));
300 return *this;
301 }
303 private:
304 Aws::String m_volumeId;
305
307
308 Aws::String m_statusMessage;
309
310 int m_targetSize{0};
311
312 int m_targetIops{0};
313
314 VolumeType m_targetVolumeType{VolumeType::NOT_SET};
315
316 int m_targetThroughput{0};
317
318 bool m_targetMultiAttachEnabled{false};
319
320 int m_originalSize{0};
321
322 int m_originalIops{0};
323
324 VolumeType m_originalVolumeType{VolumeType::NOT_SET};
325
326 int m_originalThroughput{0};
327
328 bool m_originalMultiAttachEnabled{false};
329
330 long long m_progress{0};
331
332 Aws::Utils::DateTime m_startTime{};
333
334 Aws::Utils::DateTime m_endTime{};
335 bool m_volumeIdHasBeenSet = false;
336 bool m_modificationStateHasBeenSet = false;
337 bool m_statusMessageHasBeenSet = false;
338 bool m_targetSizeHasBeenSet = false;
339 bool m_targetIopsHasBeenSet = false;
340 bool m_targetVolumeTypeHasBeenSet = false;
341 bool m_targetThroughputHasBeenSet = false;
342 bool m_targetMultiAttachEnabledHasBeenSet = false;
343 bool m_originalSizeHasBeenSet = false;
344 bool m_originalIopsHasBeenSet = false;
345 bool m_originalVolumeTypeHasBeenSet = false;
346 bool m_originalThroughputHasBeenSet = false;
347 bool m_originalMultiAttachEnabledHasBeenSet = false;
348 bool m_progressHasBeenSet = false;
349 bool m_startTimeHasBeenSet = false;
350 bool m_endTimeHasBeenSet = false;
351};
352
353} // namespace Model
354} // namespace EC2
355} // 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 & 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)
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