AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
FleetEbsBlockDeviceRequest.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 FleetEbsBlockDeviceRequest() = default;
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
75 inline bool GetEncrypted() const { return m_encrypted; }
76 inline bool EncryptedHasBeenSet() const { return m_encryptedHasBeenSet; }
77 inline void SetEncrypted(bool value) {
78 m_encryptedHasBeenSet = true;
79 m_encrypted = value;
80 }
82 SetEncrypted(value);
83 return *this;
84 }
86
88
94 inline bool GetDeleteOnTermination() const { return m_deleteOnTermination; }
95 inline bool DeleteOnTerminationHasBeenSet() const { return m_deleteOnTerminationHasBeenSet; }
96 inline void SetDeleteOnTermination(bool value) {
97 m_deleteOnTerminationHasBeenSet = true;
98 m_deleteOnTermination = value;
99 }
102 return *this;
103 }
105
107
123 inline int GetIops() const { return m_iops; }
124 inline bool IopsHasBeenSet() const { return m_iopsHasBeenSet; }
125 inline void SetIops(int value) {
126 m_iopsHasBeenSet = true;
127 m_iops = value;
128 }
130 SetIops(value);
131 return *this;
132 }
134
136
141 inline int GetThroughput() const { return m_throughput; }
142 inline bool ThroughputHasBeenSet() const { return m_throughputHasBeenSet; }
143 inline void SetThroughput(int value) {
144 m_throughputHasBeenSet = true;
145 m_throughput = value;
146 }
148 SetThroughput(value);
149 return *this;
150 }
152
154
164 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
165 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
166 template <typename KmsKeyIdT = Aws::String>
167 void SetKmsKeyId(KmsKeyIdT&& value) {
168 m_kmsKeyIdHasBeenSet = true;
169 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
170 }
171 template <typename KmsKeyIdT = Aws::String>
173 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
174 return *this;
175 }
177
179
182 inline const Aws::String& GetSnapshotId() const { return m_snapshotId; }
183 inline bool SnapshotIdHasBeenSet() const { return m_snapshotIdHasBeenSet; }
184 template <typename SnapshotIdT = Aws::String>
185 void SetSnapshotId(SnapshotIdT&& value) {
186 m_snapshotIdHasBeenSet = true;
187 m_snapshotId = std::forward<SnapshotIdT>(value);
188 }
189 template <typename SnapshotIdT = Aws::String>
191 SetSnapshotId(std::forward<SnapshotIdT>(value));
192 return *this;
193 }
195
197
208 inline int GetVolumeSize() const { return m_volumeSize; }
209 inline bool VolumeSizeHasBeenSet() const { return m_volumeSizeHasBeenSet; }
210 inline void SetVolumeSize(int value) {
211 m_volumeSizeHasBeenSet = true;
212 m_volumeSize = value;
213 }
215 SetVolumeSize(value);
216 return *this;
217 }
219
221
226 inline VolumeType GetVolumeType() const { return m_volumeType; }
227 inline bool VolumeTypeHasBeenSet() const { return m_volumeTypeHasBeenSet; }
228 inline void SetVolumeType(VolumeType value) {
229 m_volumeTypeHasBeenSet = true;
230 m_volumeType = value;
231 }
233 SetVolumeType(value);
234 return *this;
235 }
237 private:
238 bool m_encrypted{false};
239
240 bool m_deleteOnTermination{false};
241
242 int m_iops{0};
243
244 int m_throughput{0};
245
246 Aws::String m_kmsKeyId;
247
248 Aws::String m_snapshotId;
249
250 int m_volumeSize{0};
251
252 VolumeType m_volumeType{VolumeType::NOT_SET};
253 bool m_encryptedHasBeenSet = false;
254 bool m_deleteOnTerminationHasBeenSet = false;
255 bool m_iopsHasBeenSet = false;
256 bool m_throughputHasBeenSet = false;
257 bool m_kmsKeyIdHasBeenSet = false;
258 bool m_snapshotIdHasBeenSet = false;
259 bool m_volumeSizeHasBeenSet = false;
260 bool m_volumeTypeHasBeenSet = false;
261};
262
263} // namespace Model
264} // namespace EC2
265} // namespace Aws
FleetEbsBlockDeviceRequest & WithVolumeSize(int value)
AWS_EC2_API FleetEbsBlockDeviceRequest()=default
FleetEbsBlockDeviceRequest & WithSnapshotId(SnapshotIdT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
FleetEbsBlockDeviceRequest & WithThroughput(int value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
FleetEbsBlockDeviceRequest & WithEncrypted(bool value)
FleetEbsBlockDeviceRequest & WithKmsKeyId(KmsKeyIdT &&value)
AWS_EC2_API FleetEbsBlockDeviceRequest(const Aws::Utils::Xml::XmlNode &xmlNode)
FleetEbsBlockDeviceRequest & WithDeleteOnTermination(bool value)
FleetEbsBlockDeviceRequest & WithIops(int value)
FleetEbsBlockDeviceRequest & WithVolumeType(VolumeType value)
AWS_EC2_API FleetEbsBlockDeviceRequest & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream