AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetVolumeId(const Aws::String& value) { m_volumeIdHasBeenSet = true; m_volumeId = value; }
53 inline void SetVolumeId(Aws::String&& value) { m_volumeIdHasBeenSet = true; m_volumeId = std::move(value); }
54 inline void SetVolumeId(const char* value) { m_volumeIdHasBeenSet = true; m_volumeId.assign(value); }
55 inline VolumeModification& WithVolumeId(const Aws::String& value) { SetVolumeId(value); return *this;}
56 inline VolumeModification& WithVolumeId(Aws::String&& value) { SetVolumeId(std::move(value)); return *this;}
57 inline VolumeModification& WithVolumeId(const char* value) { SetVolumeId(value); return *this;}
59
61
64 inline const VolumeModificationState& GetModificationState() const{ return m_modificationState; }
65 inline bool ModificationStateHasBeenSet() const { return m_modificationStateHasBeenSet; }
66 inline void SetModificationState(const VolumeModificationState& value) { m_modificationStateHasBeenSet = true; m_modificationState = value; }
67 inline void SetModificationState(VolumeModificationState&& value) { m_modificationStateHasBeenSet = true; m_modificationState = std::move(value); }
69 inline VolumeModification& WithModificationState(VolumeModificationState&& value) { SetModificationState(std::move(value)); return *this;}
71
73
76 inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; }
77 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
78 inline void SetStatusMessage(const Aws::String& value) { m_statusMessageHasBeenSet = true; m_statusMessage = value; }
79 inline void SetStatusMessage(Aws::String&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::move(value); }
80 inline void SetStatusMessage(const char* value) { m_statusMessageHasBeenSet = true; m_statusMessage.assign(value); }
81 inline VolumeModification& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;}
82 inline VolumeModification& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;}
83 inline VolumeModification& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;}
85
87
90 inline int GetTargetSize() const{ return m_targetSize; }
91 inline bool TargetSizeHasBeenSet() const { return m_targetSizeHasBeenSet; }
92 inline void SetTargetSize(int value) { m_targetSizeHasBeenSet = true; m_targetSize = value; }
93 inline VolumeModification& WithTargetSize(int value) { SetTargetSize(value); return *this;}
95
97
100 inline int GetTargetIops() const{ return m_targetIops; }
101 inline bool TargetIopsHasBeenSet() const { return m_targetIopsHasBeenSet; }
102 inline void SetTargetIops(int value) { m_targetIopsHasBeenSet = true; m_targetIops = value; }
103 inline VolumeModification& WithTargetIops(int value) { SetTargetIops(value); return *this;}
105
107
110 inline const VolumeType& GetTargetVolumeType() const{ return m_targetVolumeType; }
111 inline bool TargetVolumeTypeHasBeenSet() const { return m_targetVolumeTypeHasBeenSet; }
112 inline void SetTargetVolumeType(const VolumeType& value) { m_targetVolumeTypeHasBeenSet = true; m_targetVolumeType = value; }
113 inline void SetTargetVolumeType(VolumeType&& value) { m_targetVolumeTypeHasBeenSet = true; m_targetVolumeType = std::move(value); }
114 inline VolumeModification& WithTargetVolumeType(const VolumeType& value) { SetTargetVolumeType(value); return *this;}
115 inline VolumeModification& WithTargetVolumeType(VolumeType&& value) { SetTargetVolumeType(std::move(value)); return *this;}
117
119
122 inline int GetTargetThroughput() const{ return m_targetThroughput; }
123 inline bool TargetThroughputHasBeenSet() const { return m_targetThroughputHasBeenSet; }
124 inline void SetTargetThroughput(int value) { m_targetThroughputHasBeenSet = true; m_targetThroughput = value; }
125 inline VolumeModification& WithTargetThroughput(int value) { SetTargetThroughput(value); return *this;}
127
129
132 inline bool GetTargetMultiAttachEnabled() const{ return m_targetMultiAttachEnabled; }
133 inline bool TargetMultiAttachEnabledHasBeenSet() const { return m_targetMultiAttachEnabledHasBeenSet; }
134 inline void SetTargetMultiAttachEnabled(bool value) { m_targetMultiAttachEnabledHasBeenSet = true; m_targetMultiAttachEnabled = value; }
137
139
142 inline int GetOriginalSize() const{ return m_originalSize; }
143 inline bool OriginalSizeHasBeenSet() const { return m_originalSizeHasBeenSet; }
144 inline void SetOriginalSize(int value) { m_originalSizeHasBeenSet = true; m_originalSize = value; }
145 inline VolumeModification& WithOriginalSize(int value) { SetOriginalSize(value); return *this;}
147
149
152 inline int GetOriginalIops() const{ return m_originalIops; }
153 inline bool OriginalIopsHasBeenSet() const { return m_originalIopsHasBeenSet; }
154 inline void SetOriginalIops(int value) { m_originalIopsHasBeenSet = true; m_originalIops = value; }
155 inline VolumeModification& WithOriginalIops(int value) { SetOriginalIops(value); return *this;}
157
159
162 inline const VolumeType& GetOriginalVolumeType() const{ return m_originalVolumeType; }
163 inline bool OriginalVolumeTypeHasBeenSet() const { return m_originalVolumeTypeHasBeenSet; }
164 inline void SetOriginalVolumeType(const VolumeType& value) { m_originalVolumeTypeHasBeenSet = true; m_originalVolumeType = value; }
165 inline void SetOriginalVolumeType(VolumeType&& value) { m_originalVolumeTypeHasBeenSet = true; m_originalVolumeType = std::move(value); }
166 inline VolumeModification& WithOriginalVolumeType(const VolumeType& value) { SetOriginalVolumeType(value); return *this;}
167 inline VolumeModification& WithOriginalVolumeType(VolumeType&& value) { SetOriginalVolumeType(std::move(value)); return *this;}
169
171
174 inline int GetOriginalThroughput() const{ return m_originalThroughput; }
175 inline bool OriginalThroughputHasBeenSet() const { return m_originalThroughputHasBeenSet; }
176 inline void SetOriginalThroughput(int value) { m_originalThroughputHasBeenSet = true; m_originalThroughput = value; }
177 inline VolumeModification& WithOriginalThroughput(int value) { SetOriginalThroughput(value); return *this;}
179
181
184 inline bool GetOriginalMultiAttachEnabled() const{ return m_originalMultiAttachEnabled; }
185 inline bool OriginalMultiAttachEnabledHasBeenSet() const { return m_originalMultiAttachEnabledHasBeenSet; }
186 inline void SetOriginalMultiAttachEnabled(bool value) { m_originalMultiAttachEnabledHasBeenSet = true; m_originalMultiAttachEnabled = value; }
189
191
194 inline long long GetProgress() const{ return m_progress; }
195 inline bool ProgressHasBeenSet() const { return m_progressHasBeenSet; }
196 inline void SetProgress(long long value) { m_progressHasBeenSet = true; m_progress = value; }
197 inline VolumeModification& WithProgress(long long value) { SetProgress(value); return *this;}
199
201
204 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
205 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
206 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
207 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
208 inline VolumeModification& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
209 inline VolumeModification& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
211
213
216 inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
217 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
218 inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
219 inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
220 inline VolumeModification& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
221 inline VolumeModification& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
223 private:
224
225 Aws::String m_volumeId;
226 bool m_volumeIdHasBeenSet = false;
227
228 VolumeModificationState m_modificationState;
229 bool m_modificationStateHasBeenSet = false;
230
231 Aws::String m_statusMessage;
232 bool m_statusMessageHasBeenSet = false;
233
234 int m_targetSize;
235 bool m_targetSizeHasBeenSet = false;
236
237 int m_targetIops;
238 bool m_targetIopsHasBeenSet = false;
239
240 VolumeType m_targetVolumeType;
241 bool m_targetVolumeTypeHasBeenSet = false;
242
243 int m_targetThroughput;
244 bool m_targetThroughputHasBeenSet = false;
245
246 bool m_targetMultiAttachEnabled;
247 bool m_targetMultiAttachEnabledHasBeenSet = false;
248
249 int m_originalSize;
250 bool m_originalSizeHasBeenSet = false;
251
252 int m_originalIops;
253 bool m_originalIopsHasBeenSet = false;
254
255 VolumeType m_originalVolumeType;
256 bool m_originalVolumeTypeHasBeenSet = false;
257
258 int m_originalThroughput;
259 bool m_originalThroughputHasBeenSet = false;
260
261 bool m_originalMultiAttachEnabled;
262 bool m_originalMultiAttachEnabledHasBeenSet = false;
263
264 long long m_progress;
265 bool m_progressHasBeenSet = false;
266
267 Aws::Utils::DateTime m_startTime;
268 bool m_startTimeHasBeenSet = false;
269
270 Aws::Utils::DateTime m_endTime;
271 bool m_endTimeHasBeenSet = false;
272 };
273
274} // namespace Model
275} // namespace EC2
276} // namespace Aws
VolumeModification & WithOriginalThroughput(int value)
void SetStatusMessage(const char *value)
VolumeModification & WithOriginalMultiAttachEnabled(bool value)
VolumeModification & WithTargetThroughput(int value)
void SetEndTime(Aws::Utils::DateTime &&value)
const Aws::String & GetStatusMessage() const
void SetVolumeId(Aws::String &&value)
void SetOriginalVolumeType(const VolumeType &value)
const Aws::Utils::DateTime & GetEndTime() const
VolumeModification & WithStatusMessage(Aws::String &&value)
VolumeModification & WithTargetIops(int value)
VolumeModification & WithModificationState(const VolumeModificationState &value)
VolumeModification & WithTargetSize(int value)
VolumeModification & WithStatusMessage(const Aws::String &value)
VolumeModification & WithOriginalSize(int value)
VolumeModification & WithTargetVolumeType(VolumeType &&value)
void SetModificationState(VolumeModificationState &&value)
VolumeModification & WithTargetVolumeType(const VolumeType &value)
AWS_EC2_API VolumeModification & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
VolumeModification & WithStartTime(Aws::Utils::DateTime &&value)
void SetStartTime(Aws::Utils::DateTime &&value)
VolumeModification & WithVolumeId(const char *value)
VolumeModification & WithStartTime(const Aws::Utils::DateTime &value)
VolumeModification & WithOriginalIops(int value)
VolumeModification & WithProgress(long long value)
VolumeModification & WithModificationState(VolumeModificationState &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
VolumeModification & WithVolumeId(const Aws::String &value)
void SetStartTime(const Aws::Utils::DateTime &value)
VolumeModification & WithVolumeId(Aws::String &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetOriginalVolumeType(VolumeType &&value)
VolumeModification & WithEndTime(const Aws::Utils::DateTime &value)
const VolumeModificationState & GetModificationState() const
void SetEndTime(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetStartTime() const
const VolumeType & GetTargetVolumeType() const
void SetModificationState(const VolumeModificationState &value)
void SetTargetVolumeType(const VolumeType &value)
VolumeModification & WithTargetMultiAttachEnabled(bool value)
void SetVolumeId(const Aws::String &value)
VolumeModification & WithEndTime(Aws::Utils::DateTime &&value)
VolumeModification & WithOriginalVolumeType(VolumeType &&value)
const VolumeType & GetOriginalVolumeType() const
AWS_EC2_API VolumeModification(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetStatusMessage(Aws::String &&value)
VolumeModification & WithStatusMessage(const char *value)
const Aws::String & GetVolumeId() const
void SetTargetVolumeType(VolumeType &&value)
void SetStatusMessage(const Aws::String &value)
VolumeModification & WithOriginalVolumeType(const VolumeType &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream