AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
EbsBlockDevice.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 EbsBlockDevice();
36 AWS_EC2_API EbsBlockDevice(const Aws::Utils::Xml::XmlNode& xmlNode);
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
51 inline bool GetDeleteOnTermination() const{ return m_deleteOnTermination; }
52 inline bool DeleteOnTerminationHasBeenSet() const { return m_deleteOnTerminationHasBeenSet; }
53 inline void SetDeleteOnTermination(bool value) { m_deleteOnTerminationHasBeenSet = true; m_deleteOnTermination = value; }
54 inline EbsBlockDevice& WithDeleteOnTermination(bool value) { SetDeleteOnTermination(value); return *this;}
56
58
74 inline int GetIops() const{ return m_iops; }
75 inline bool IopsHasBeenSet() const { return m_iopsHasBeenSet; }
76 inline void SetIops(int value) { m_iopsHasBeenSet = true; m_iops = value; }
77 inline EbsBlockDevice& WithIops(int value) { SetIops(value); return *this;}
79
81
84 inline const Aws::String& GetSnapshotId() const{ return m_snapshotId; }
85 inline bool SnapshotIdHasBeenSet() const { return m_snapshotIdHasBeenSet; }
86 inline void SetSnapshotId(const Aws::String& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = value; }
87 inline void SetSnapshotId(Aws::String&& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = std::move(value); }
88 inline void SetSnapshotId(const char* value) { m_snapshotIdHasBeenSet = true; m_snapshotId.assign(value); }
89 inline EbsBlockDevice& WithSnapshotId(const Aws::String& value) { SetSnapshotId(value); return *this;}
90 inline EbsBlockDevice& WithSnapshotId(Aws::String&& value) { SetSnapshotId(std::move(value)); return *this;}
91 inline EbsBlockDevice& WithSnapshotId(const char* value) { SetSnapshotId(value); return *this;}
93
95
105 inline int GetVolumeSize() const{ return m_volumeSize; }
106 inline bool VolumeSizeHasBeenSet() const { return m_volumeSizeHasBeenSet; }
107 inline void SetVolumeSize(int value) { m_volumeSizeHasBeenSet = true; m_volumeSize = value; }
108 inline EbsBlockDevice& WithVolumeSize(int value) { SetVolumeSize(value); return *this;}
110
112
117 inline const VolumeType& GetVolumeType() const{ return m_volumeType; }
118 inline bool VolumeTypeHasBeenSet() const { return m_volumeTypeHasBeenSet; }
119 inline void SetVolumeType(const VolumeType& value) { m_volumeTypeHasBeenSet = true; m_volumeType = value; }
120 inline void SetVolumeType(VolumeType&& value) { m_volumeTypeHasBeenSet = true; m_volumeType = std::move(value); }
121 inline EbsBlockDevice& WithVolumeType(const VolumeType& value) { SetVolumeType(value); return *this;}
122 inline EbsBlockDevice& WithVolumeType(VolumeType&& value) { SetVolumeType(std::move(value)); return *this;}
124
126
136 inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
137 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
138 inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
139 inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
140 inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
141 inline EbsBlockDevice& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
142 inline EbsBlockDevice& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
143 inline EbsBlockDevice& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
145
147
152 inline int GetThroughput() const{ return m_throughput; }
153 inline bool ThroughputHasBeenSet() const { return m_throughputHasBeenSet; }
154 inline void SetThroughput(int value) { m_throughputHasBeenSet = true; m_throughput = value; }
155 inline EbsBlockDevice& WithThroughput(int value) { SetThroughput(value); return *this;}
157
159
164 inline const Aws::String& GetOutpostArn() const{ return m_outpostArn; }
165 inline bool OutpostArnHasBeenSet() const { return m_outpostArnHasBeenSet; }
166 inline void SetOutpostArn(const Aws::String& value) { m_outpostArnHasBeenSet = true; m_outpostArn = value; }
167 inline void SetOutpostArn(Aws::String&& value) { m_outpostArnHasBeenSet = true; m_outpostArn = std::move(value); }
168 inline void SetOutpostArn(const char* value) { m_outpostArnHasBeenSet = true; m_outpostArn.assign(value); }
169 inline EbsBlockDevice& WithOutpostArn(const Aws::String& value) { SetOutpostArn(value); return *this;}
170 inline EbsBlockDevice& WithOutpostArn(Aws::String&& value) { SetOutpostArn(std::move(value)); return *this;}
171 inline EbsBlockDevice& WithOutpostArn(const char* value) { SetOutpostArn(value); return *this;}
173
175
209 inline bool GetEncrypted() const{ return m_encrypted; }
210 inline bool EncryptedHasBeenSet() const { return m_encryptedHasBeenSet; }
211 inline void SetEncrypted(bool value) { m_encryptedHasBeenSet = true; m_encrypted = value; }
212 inline EbsBlockDevice& WithEncrypted(bool value) { SetEncrypted(value); return *this;}
214 private:
215
216 bool m_deleteOnTermination;
217 bool m_deleteOnTerminationHasBeenSet = false;
218
219 int m_iops;
220 bool m_iopsHasBeenSet = false;
221
222 Aws::String m_snapshotId;
223 bool m_snapshotIdHasBeenSet = false;
224
225 int m_volumeSize;
226 bool m_volumeSizeHasBeenSet = false;
227
228 VolumeType m_volumeType;
229 bool m_volumeTypeHasBeenSet = false;
230
231 Aws::String m_kmsKeyId;
232 bool m_kmsKeyIdHasBeenSet = false;
233
234 int m_throughput;
235 bool m_throughputHasBeenSet = false;
236
237 Aws::String m_outpostArn;
238 bool m_outpostArnHasBeenSet = false;
239
240 bool m_encrypted;
241 bool m_encryptedHasBeenSet = false;
242 };
243
244} // namespace Model
245} // namespace EC2
246} // namespace Aws
EbsBlockDevice & WithIops(int value)
const Aws::String & GetSnapshotId() const
EbsBlockDevice & WithVolumeType(VolumeType &&value)
const Aws::String & GetKmsKeyId() const
void SetSnapshotId(const char *value)
EbsBlockDevice & WithVolumeType(const VolumeType &value)
void SetOutpostArn(Aws::String &&value)
void SetOutpostArn(const char *value)
void SetSnapshotId(const Aws::String &value)
EbsBlockDevice & WithSnapshotId(const char *value)
AWS_EC2_API EbsBlockDevice & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetVolumeType(VolumeType &&value)
EbsBlockDevice & WithOutpostArn(const Aws::String &value)
EbsBlockDevice & WithEncrypted(bool value)
void SetKmsKeyId(const Aws::String &value)
EbsBlockDevice & WithKmsKeyId(const Aws::String &value)
const Aws::String & GetOutpostArn() const
EbsBlockDevice & WithOutpostArn(Aws::String &&value)
EbsBlockDevice & WithThroughput(int value)
const VolumeType & GetVolumeType() const
EbsBlockDevice & WithOutpostArn(const char *value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
EbsBlockDevice & WithKmsKeyId(const char *value)
void SetSnapshotId(Aws::String &&value)
EbsBlockDevice & WithSnapshotId(const Aws::String &value)
EbsBlockDevice & WithDeleteOnTermination(bool value)
EbsBlockDevice & WithKmsKeyId(Aws::String &&value)
void SetKmsKeyId(Aws::String &&value)
EbsBlockDevice & WithVolumeSize(int value)
void SetVolumeType(const VolumeType &value)
EbsBlockDevice & WithSnapshotId(Aws::String &&value)
AWS_EC2_API EbsBlockDevice(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetKmsKeyId(const char *value)
void SetDeleteOnTermination(bool value)
void SetOutpostArn(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream