AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
VolumeModification.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ec2/model/VolumeModificationState.h>
11#include <aws/ec2/model/VolumeType.h>
12#include <aws/core/utils/DateTime.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Xml
20{
21 class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace EC2
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_EC2_API VolumeModification() = default;
39 AWS_EC2_API VolumeModification(const Aws::Utils::Xml::XmlNode& xmlNode);
41
42 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
44
45
47
50 inline const Aws::String& GetVolumeId() const { return m_volumeId; }
51 inline bool VolumeIdHasBeenSet() const { return m_volumeIdHasBeenSet; }
52 template<typename VolumeIdT = Aws::String>
53 void SetVolumeId(VolumeIdT&& value) { m_volumeIdHasBeenSet = true; m_volumeId = std::forward<VolumeIdT>(value); }
54 template<typename VolumeIdT = Aws::String>
55 VolumeModification& WithVolumeId(VolumeIdT&& value) { SetVolumeId(std::forward<VolumeIdT>(value)); return *this;}
57
59
62 inline VolumeModificationState GetModificationState() const { return m_modificationState; }
63 inline bool ModificationStateHasBeenSet() const { return m_modificationStateHasBeenSet; }
64 inline void SetModificationState(VolumeModificationState value) { m_modificationStateHasBeenSet = true; m_modificationState = value; }
67
69
72 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
73 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
74 template<typename StatusMessageT = Aws::String>
75 void SetStatusMessage(StatusMessageT&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::forward<StatusMessageT>(value); }
76 template<typename StatusMessageT = Aws::String>
77 VolumeModification& WithStatusMessage(StatusMessageT&& value) { SetStatusMessage(std::forward<StatusMessageT>(value)); return *this;}
79
81
84 inline int GetTargetSize() const { return m_targetSize; }
85 inline bool TargetSizeHasBeenSet() const { return m_targetSizeHasBeenSet; }
86 inline void SetTargetSize(int value) { m_targetSizeHasBeenSet = true; m_targetSize = value; }
87 inline VolumeModification& WithTargetSize(int value) { SetTargetSize(value); return *this;}
89
91
94 inline int GetTargetIops() const { return m_targetIops; }
95 inline bool TargetIopsHasBeenSet() const { return m_targetIopsHasBeenSet; }
96 inline void SetTargetIops(int value) { m_targetIopsHasBeenSet = true; m_targetIops = value; }
97 inline VolumeModification& WithTargetIops(int value) { SetTargetIops(value); return *this;}
99
101
104 inline VolumeType GetTargetVolumeType() const { return m_targetVolumeType; }
105 inline bool TargetVolumeTypeHasBeenSet() const { return m_targetVolumeTypeHasBeenSet; }
106 inline void SetTargetVolumeType(VolumeType value) { m_targetVolumeTypeHasBeenSet = true; m_targetVolumeType = value; }
109
111
114 inline int GetTargetThroughput() const { return m_targetThroughput; }
115 inline bool TargetThroughputHasBeenSet() const { return m_targetThroughputHasBeenSet; }
116 inline void SetTargetThroughput(int value) { m_targetThroughputHasBeenSet = true; m_targetThroughput = value; }
117 inline VolumeModification& WithTargetThroughput(int value) { SetTargetThroughput(value); return *this;}
119
121
124 inline bool GetTargetMultiAttachEnabled() const { return m_targetMultiAttachEnabled; }
125 inline bool TargetMultiAttachEnabledHasBeenSet() const { return m_targetMultiAttachEnabledHasBeenSet; }
126 inline void SetTargetMultiAttachEnabled(bool value) { m_targetMultiAttachEnabledHasBeenSet = true; m_targetMultiAttachEnabled = value; }
129
131
134 inline int GetOriginalSize() const { return m_originalSize; }
135 inline bool OriginalSizeHasBeenSet() const { return m_originalSizeHasBeenSet; }
136 inline void SetOriginalSize(int value) { m_originalSizeHasBeenSet = true; m_originalSize = value; }
137 inline VolumeModification& WithOriginalSize(int value) { SetOriginalSize(value); return *this;}
139
141
144 inline int GetOriginalIops() const { return m_originalIops; }
145 inline bool OriginalIopsHasBeenSet() const { return m_originalIopsHasBeenSet; }
146 inline void SetOriginalIops(int value) { m_originalIopsHasBeenSet = true; m_originalIops = value; }
147 inline VolumeModification& WithOriginalIops(int value) { SetOriginalIops(value); return *this;}
149
151
154 inline VolumeType GetOriginalVolumeType() const { return m_originalVolumeType; }
155 inline bool OriginalVolumeTypeHasBeenSet() const { return m_originalVolumeTypeHasBeenSet; }
156 inline void SetOriginalVolumeType(VolumeType value) { m_originalVolumeTypeHasBeenSet = true; m_originalVolumeType = value; }
159
161
164 inline int GetOriginalThroughput() const { return m_originalThroughput; }
165 inline bool OriginalThroughputHasBeenSet() const { return m_originalThroughputHasBeenSet; }
166 inline void SetOriginalThroughput(int value) { m_originalThroughputHasBeenSet = true; m_originalThroughput = value; }
167 inline VolumeModification& WithOriginalThroughput(int value) { SetOriginalThroughput(value); return *this;}
169
171
174 inline bool GetOriginalMultiAttachEnabled() const { return m_originalMultiAttachEnabled; }
175 inline bool OriginalMultiAttachEnabledHasBeenSet() const { return m_originalMultiAttachEnabledHasBeenSet; }
176 inline void SetOriginalMultiAttachEnabled(bool value) { m_originalMultiAttachEnabledHasBeenSet = true; m_originalMultiAttachEnabled = value; }
179
181
184 inline long long GetProgress() const { return m_progress; }
185 inline bool ProgressHasBeenSet() const { return m_progressHasBeenSet; }
186 inline void SetProgress(long long value) { m_progressHasBeenSet = true; m_progress = value; }
187 inline VolumeModification& WithProgress(long long value) { SetProgress(value); return *this;}
189
191
194 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
195 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
196 template<typename StartTimeT = Aws::Utils::DateTime>
197 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
198 template<typename StartTimeT = Aws::Utils::DateTime>
199 VolumeModification& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
201
203
206 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
207 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
208 template<typename EndTimeT = Aws::Utils::DateTime>
209 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
210 template<typename EndTimeT = Aws::Utils::DateTime>
211 VolumeModification& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
213 private:
214
215 Aws::String m_volumeId;
216 bool m_volumeIdHasBeenSet = false;
217
219 bool m_modificationStateHasBeenSet = false;
220
221 Aws::String m_statusMessage;
222 bool m_statusMessageHasBeenSet = false;
223
224 int m_targetSize{0};
225 bool m_targetSizeHasBeenSet = false;
226
227 int m_targetIops{0};
228 bool m_targetIopsHasBeenSet = false;
229
230 VolumeType m_targetVolumeType{VolumeType::NOT_SET};
231 bool m_targetVolumeTypeHasBeenSet = false;
232
233 int m_targetThroughput{0};
234 bool m_targetThroughputHasBeenSet = false;
235
236 bool m_targetMultiAttachEnabled{false};
237 bool m_targetMultiAttachEnabledHasBeenSet = false;
238
239 int m_originalSize{0};
240 bool m_originalSizeHasBeenSet = false;
241
242 int m_originalIops{0};
243 bool m_originalIopsHasBeenSet = false;
244
245 VolumeType m_originalVolumeType{VolumeType::NOT_SET};
246 bool m_originalVolumeTypeHasBeenSet = false;
247
248 int m_originalThroughput{0};
249 bool m_originalThroughputHasBeenSet = false;
250
251 bool m_originalMultiAttachEnabled{false};
252 bool m_originalMultiAttachEnabledHasBeenSet = false;
253
254 long long m_progress{0};
255 bool m_progressHasBeenSet = false;
256
257 Aws::Utils::DateTime m_startTime{};
258 bool m_startTimeHasBeenSet = false;
259
260 Aws::Utils::DateTime m_endTime{};
261 bool m_endTimeHasBeenSet = false;
262 };
263
264} // namespace Model
265} // namespace EC2
266} // 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