AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
FleetEbsBlockDeviceRequest.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/VolumeType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace EC2
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_EC2_API FleetEbsBlockDeviceRequest() = default;
38
39 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
42
44
81 inline bool GetEncrypted() const { return m_encrypted; }
82 inline bool EncryptedHasBeenSet() const { return m_encryptedHasBeenSet; }
83 inline void SetEncrypted(bool value) { m_encryptedHasBeenSet = true; m_encrypted = value; }
84 inline FleetEbsBlockDeviceRequest& WithEncrypted(bool value) { SetEncrypted(value); return *this;}
86
88
94 inline bool GetDeleteOnTermination() const { return m_deleteOnTermination; }
95 inline bool DeleteOnTerminationHasBeenSet() const { return m_deleteOnTerminationHasBeenSet; }
96 inline void SetDeleteOnTermination(bool value) { m_deleteOnTerminationHasBeenSet = true; m_deleteOnTermination = value; }
99
101
117 inline int GetIops() const { return m_iops; }
118 inline bool IopsHasBeenSet() const { return m_iopsHasBeenSet; }
119 inline void SetIops(int value) { m_iopsHasBeenSet = true; m_iops = value; }
120 inline FleetEbsBlockDeviceRequest& WithIops(int value) { SetIops(value); return *this;}
122
124
129 inline int GetThroughput() const { return m_throughput; }
130 inline bool ThroughputHasBeenSet() const { return m_throughputHasBeenSet; }
131 inline void SetThroughput(int value) { m_throughputHasBeenSet = true; m_throughput = value; }
132 inline FleetEbsBlockDeviceRequest& WithThroughput(int value) { SetThroughput(value); return *this;}
134
136
146 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
147 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
148 template<typename KmsKeyIdT = Aws::String>
149 void SetKmsKeyId(KmsKeyIdT&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::forward<KmsKeyIdT>(value); }
150 template<typename KmsKeyIdT = Aws::String>
151 FleetEbsBlockDeviceRequest& WithKmsKeyId(KmsKeyIdT&& value) { SetKmsKeyId(std::forward<KmsKeyIdT>(value)); return *this;}
153
155
158 inline const Aws::String& GetSnapshotId() const { return m_snapshotId; }
159 inline bool SnapshotIdHasBeenSet() const { return m_snapshotIdHasBeenSet; }
160 template<typename SnapshotIdT = Aws::String>
161 void SetSnapshotId(SnapshotIdT&& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = std::forward<SnapshotIdT>(value); }
162 template<typename SnapshotIdT = Aws::String>
163 FleetEbsBlockDeviceRequest& WithSnapshotId(SnapshotIdT&& value) { SetSnapshotId(std::forward<SnapshotIdT>(value)); return *this;}
165
167
177 inline int GetVolumeSize() const { return m_volumeSize; }
178 inline bool VolumeSizeHasBeenSet() const { return m_volumeSizeHasBeenSet; }
179 inline void SetVolumeSize(int value) { m_volumeSizeHasBeenSet = true; m_volumeSize = value; }
180 inline FleetEbsBlockDeviceRequest& WithVolumeSize(int value) { SetVolumeSize(value); return *this;}
182
184
189 inline VolumeType GetVolumeType() const { return m_volumeType; }
190 inline bool VolumeTypeHasBeenSet() const { return m_volumeTypeHasBeenSet; }
191 inline void SetVolumeType(VolumeType value) { m_volumeTypeHasBeenSet = true; m_volumeType = value; }
194 private:
195
196 bool m_encrypted{false};
197 bool m_encryptedHasBeenSet = false;
198
199 bool m_deleteOnTermination{false};
200 bool m_deleteOnTerminationHasBeenSet = false;
201
202 int m_iops{0};
203 bool m_iopsHasBeenSet = false;
204
205 int m_throughput{0};
206 bool m_throughputHasBeenSet = false;
207
208 Aws::String m_kmsKeyId;
209 bool m_kmsKeyIdHasBeenSet = false;
210
211 Aws::String m_snapshotId;
212 bool m_snapshotIdHasBeenSet = false;
213
214 int m_volumeSize{0};
215 bool m_volumeSizeHasBeenSet = false;
216
217 VolumeType m_volumeType{VolumeType::NOT_SET};
218 bool m_volumeTypeHasBeenSet = false;
219 };
220
221} // namespace Model
222} // namespace EC2
223} // 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