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>
44 m_encryptedHasBeenSet =
true;
60 m_deleteOnTerminationHasBeenSet =
true;
61 m_deleteOnTermination = value;
73 inline int GetIops()
const {
return m_iops; }
76 m_iopsHasBeenSet =
true;
92 template <
typename KmsKeyIdT = Aws::String>
94 m_kmsKeyIdHasBeenSet =
true;
95 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
97 template <
typename KmsKeyIdT = Aws::String>
110 template <
typename SnapshotIdT = Aws::String>
112 m_snapshotIdHasBeenSet =
true;
113 m_snapshotId = std::forward<SnapshotIdT>(value);
115 template <
typename SnapshotIdT = Aws::String>
129 m_volumeSizeHasBeenSet =
true;
130 m_volumeSize = value;
145 m_volumeTypeHasBeenSet =
true;
146 m_volumeType = value;
161 m_throughputHasBeenSet =
true;
162 m_throughput = value;
179 m_volumeInitializationRateHasBeenSet =
true;
180 m_volumeInitializationRate = value;
188 bool m_encrypted{
false};
190 bool m_deleteOnTermination{
false};
204 int m_volumeInitializationRate{0};
205 bool m_encryptedHasBeenSet =
false;
206 bool m_deleteOnTerminationHasBeenSet =
false;
207 bool m_iopsHasBeenSet =
false;
208 bool m_kmsKeyIdHasBeenSet =
false;
209 bool m_snapshotIdHasBeenSet =
false;
210 bool m_volumeSizeHasBeenSet =
false;
211 bool m_volumeTypeHasBeenSet =
false;
212 bool m_throughputHasBeenSet =
false;
213 bool m_volumeInitializationRateHasBeenSet =
false;
bool VolumeInitializationRateHasBeenSet() const
LaunchTemplateEbsBlockDevice & WithKmsKeyId(KmsKeyIdT &&value)
LaunchTemplateEbsBlockDevice & WithVolumeSize(int value)
bool GetEncrypted() const
void SetThroughput(int value)
const Aws::String & GetKmsKeyId() const
void SetVolumeInitializationRate(int value)
int GetVolumeSize() const
void SetVolumeType(VolumeType value)
LaunchTemplateEbsBlockDevice & WithThroughput(int value)
LaunchTemplateEbsBlockDevice & WithVolumeType(VolumeType value)
int GetVolumeInitializationRate() const
bool SnapshotIdHasBeenSet() const
bool GetDeleteOnTermination() const
LaunchTemplateEbsBlockDevice & WithDeleteOnTermination(bool value)
bool KmsKeyIdHasBeenSet() const
bool VolumeSizeHasBeenSet() const
void SetSnapshotId(SnapshotIdT &&value)
int GetThroughput() const
AWS_EC2_API LaunchTemplateEbsBlockDevice()=default
VolumeType GetVolumeType() const
void SetKmsKeyId(KmsKeyIdT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
bool DeleteOnTerminationHasBeenSet() const
LaunchTemplateEbsBlockDevice & WithSnapshotId(SnapshotIdT &&value)
AWS_EC2_API LaunchTemplateEbsBlockDevice(const Aws::Utils::Xml::XmlNode &xmlNode)
bool IopsHasBeenSet() const
void SetEncrypted(bool value)
bool ThroughputHasBeenSet() const
void SetDeleteOnTermination(bool value)
AWS_EC2_API LaunchTemplateEbsBlockDevice & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
LaunchTemplateEbsBlockDevice & WithVolumeInitializationRate(int value)
LaunchTemplateEbsBlockDevice & WithIops(int value)
bool VolumeTypeHasBeenSet() const
const Aws::String & GetSnapshotId() const
void SetVolumeSize(int value)
bool EncryptedHasBeenSet() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
LaunchTemplateEbsBlockDevice & WithEncrypted(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream