AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
EbsBlockDevice.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10#include <aws/ec2/model/VolumeType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace EC2 {
21namespace Model {
22
29 public:
30 AWS_EC2_API EbsBlockDevice() = default;
31 AWS_EC2_API EbsBlockDevice(const Aws::Utils::Xml::XmlNode& xmlNode);
33
34 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
35 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
36
38
45 inline bool GetDeleteOnTermination() const { return m_deleteOnTermination; }
46 inline bool DeleteOnTerminationHasBeenSet() const { return m_deleteOnTerminationHasBeenSet; }
47 inline void SetDeleteOnTermination(bool value) {
48 m_deleteOnTerminationHasBeenSet = true;
49 m_deleteOnTermination = value;
50 }
53 return *this;
54 }
56
58
74 inline int GetIops() const { return m_iops; }
75 inline bool IopsHasBeenSet() const { return m_iopsHasBeenSet; }
76 inline void SetIops(int value) {
77 m_iopsHasBeenSet = true;
78 m_iops = value;
79 }
80 inline EbsBlockDevice& WithIops(int value) {
81 SetIops(value);
82 return *this;
83 }
85
87
90 inline const Aws::String& GetSnapshotId() const { return m_snapshotId; }
91 inline bool SnapshotIdHasBeenSet() const { return m_snapshotIdHasBeenSet; }
92 template <typename SnapshotIdT = Aws::String>
93 void SetSnapshotId(SnapshotIdT&& value) {
94 m_snapshotIdHasBeenSet = true;
95 m_snapshotId = std::forward<SnapshotIdT>(value);
96 }
97 template <typename SnapshotIdT = Aws::String>
98 EbsBlockDevice& WithSnapshotId(SnapshotIdT&& value) {
99 SetSnapshotId(std::forward<SnapshotIdT>(value));
100 return *this;
101 }
103
105
116 inline int GetVolumeSize() const { return m_volumeSize; }
117 inline bool VolumeSizeHasBeenSet() const { return m_volumeSizeHasBeenSet; }
118 inline void SetVolumeSize(int value) {
119 m_volumeSizeHasBeenSet = true;
120 m_volumeSize = value;
121 }
122 inline EbsBlockDevice& WithVolumeSize(int value) {
123 SetVolumeSize(value);
124 return *this;
125 }
127
129
134 inline VolumeType GetVolumeType() const { return m_volumeType; }
135 inline bool VolumeTypeHasBeenSet() const { return m_volumeTypeHasBeenSet; }
136 inline void SetVolumeType(VolumeType value) {
137 m_volumeTypeHasBeenSet = true;
138 m_volumeType = value;
139 }
141 SetVolumeType(value);
142 return *this;
143 }
145
147
157 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
158 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
159 template <typename KmsKeyIdT = Aws::String>
160 void SetKmsKeyId(KmsKeyIdT&& value) {
161 m_kmsKeyIdHasBeenSet = true;
162 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
163 }
164 template <typename KmsKeyIdT = Aws::String>
165 EbsBlockDevice& WithKmsKeyId(KmsKeyIdT&& value) {
166 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
167 return *this;
168 }
170
172
177 inline int GetThroughput() const { return m_throughput; }
178 inline bool ThroughputHasBeenSet() const { return m_throughputHasBeenSet; }
179 inline void SetThroughput(int value) {
180 m_throughputHasBeenSet = true;
181 m_throughput = value;
182 }
183 inline EbsBlockDevice& WithThroughput(int value) {
184 SetThroughput(value);
185 return *this;
186 }
188
190
195 inline const Aws::String& GetOutpostArn() const { return m_outpostArn; }
196 inline bool OutpostArnHasBeenSet() const { return m_outpostArnHasBeenSet; }
197 template <typename OutpostArnT = Aws::String>
198 void SetOutpostArn(OutpostArnT&& value) {
199 m_outpostArnHasBeenSet = true;
200 m_outpostArn = std::forward<OutpostArnT>(value);
201 }
202 template <typename OutpostArnT = Aws::String>
203 EbsBlockDevice& WithOutpostArn(OutpostArnT&& value) {
204 SetOutpostArn(std::forward<OutpostArnT>(value));
205 return *this;
206 }
208
210
228 inline const Aws::String& GetAvailabilityZone() const { return m_availabilityZone; }
229 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
230 template <typename AvailabilityZoneT = Aws::String>
231 void SetAvailabilityZone(AvailabilityZoneT&& value) {
232 m_availabilityZoneHasBeenSet = true;
233 m_availabilityZone = std::forward<AvailabilityZoneT>(value);
234 }
235 template <typename AvailabilityZoneT = Aws::String>
236 EbsBlockDevice& WithAvailabilityZone(AvailabilityZoneT&& value) {
237 SetAvailabilityZone(std::forward<AvailabilityZoneT>(value));
238 return *this;
239 }
241
243
277 inline bool GetEncrypted() const { return m_encrypted; }
278 inline bool EncryptedHasBeenSet() const { return m_encryptedHasBeenSet; }
279 inline void SetEncrypted(bool value) {
280 m_encryptedHasBeenSet = true;
281 m_encrypted = value;
282 }
283 inline EbsBlockDevice& WithEncrypted(bool value) {
284 SetEncrypted(value);
285 return *this;
286 }
288
290
313 inline int GetVolumeInitializationRate() const { return m_volumeInitializationRate; }
314 inline bool VolumeInitializationRateHasBeenSet() const { return m_volumeInitializationRateHasBeenSet; }
315 inline void SetVolumeInitializationRate(int value) {
316 m_volumeInitializationRateHasBeenSet = true;
317 m_volumeInitializationRate = value;
318 }
321 return *this;
322 }
324
326
344 inline const Aws::String& GetAvailabilityZoneId() const { return m_availabilityZoneId; }
345 inline bool AvailabilityZoneIdHasBeenSet() const { return m_availabilityZoneIdHasBeenSet; }
346 template <typename AvailabilityZoneIdT = Aws::String>
347 void SetAvailabilityZoneId(AvailabilityZoneIdT&& value) {
348 m_availabilityZoneIdHasBeenSet = true;
349 m_availabilityZoneId = std::forward<AvailabilityZoneIdT>(value);
350 }
351 template <typename AvailabilityZoneIdT = Aws::String>
352 EbsBlockDevice& WithAvailabilityZoneId(AvailabilityZoneIdT&& value) {
353 SetAvailabilityZoneId(std::forward<AvailabilityZoneIdT>(value));
354 return *this;
355 }
357 private:
358 bool m_deleteOnTermination{false};
359
360 int m_iops{0};
361
362 Aws::String m_snapshotId;
363
364 int m_volumeSize{0};
365
366 VolumeType m_volumeType{VolumeType::NOT_SET};
367
368 Aws::String m_kmsKeyId;
369
370 int m_throughput{0};
371
372 Aws::String m_outpostArn;
373
374 Aws::String m_availabilityZone;
375
376 bool m_encrypted{false};
377
378 int m_volumeInitializationRate{0};
379
380 Aws::String m_availabilityZoneId;
381 bool m_deleteOnTerminationHasBeenSet = false;
382 bool m_iopsHasBeenSet = false;
383 bool m_snapshotIdHasBeenSet = false;
384 bool m_volumeSizeHasBeenSet = false;
385 bool m_volumeTypeHasBeenSet = false;
386 bool m_kmsKeyIdHasBeenSet = false;
387 bool m_throughputHasBeenSet = false;
388 bool m_outpostArnHasBeenSet = false;
389 bool m_availabilityZoneHasBeenSet = false;
390 bool m_encryptedHasBeenSet = false;
391 bool m_volumeInitializationRateHasBeenSet = false;
392 bool m_availabilityZoneIdHasBeenSet = false;
393};
394
395} // namespace Model
396} // namespace EC2
397} // namespace Aws
EbsBlockDevice & WithAvailabilityZoneId(AvailabilityZoneIdT &&value)
EbsBlockDevice & WithIops(int value)
const Aws::String & GetSnapshotId() const
void SetAvailabilityZoneId(AvailabilityZoneIdT &&value)
void SetVolumeType(VolumeType value)
const Aws::String & GetKmsKeyId() const
EbsBlockDevice & WithSnapshotId(SnapshotIdT &&value)
AWS_EC2_API EbsBlockDevice & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
bool VolumeInitializationRateHasBeenSet() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetOutpostArn(OutpostArnT &&value)
void SetKmsKeyId(KmsKeyIdT &&value)
EbsBlockDevice & WithEncrypted(bool value)
const Aws::String & GetOutpostArn() const
void SetSnapshotId(SnapshotIdT &&value)
EbsBlockDevice & WithThroughput(int value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetVolumeInitializationRate(int value)
EbsBlockDevice & WithOutpostArn(OutpostArnT &&value)
EbsBlockDevice & WithVolumeType(VolumeType value)
const Aws::String & GetAvailabilityZone() const
EbsBlockDevice & WithDeleteOnTermination(bool value)
EbsBlockDevice & WithAvailabilityZone(AvailabilityZoneT &&value)
AWS_EC2_API EbsBlockDevice()=default
const Aws::String & GetAvailabilityZoneId() const
EbsBlockDevice & WithVolumeSize(int value)
AWS_EC2_API EbsBlockDevice(const Aws::Utils::Xml::XmlNode &xmlNode)
EbsBlockDevice & WithKmsKeyId(KmsKeyIdT &&value)
void SetDeleteOnTermination(bool value)
EbsBlockDevice & WithVolumeInitializationRate(int value)
void SetAvailabilityZone(AvailabilityZoneT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream