AWS SDK for C++  1.9.66
AWS SDK for C++
LaunchTemplateEbsBlockDevice.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Xml
18 {
19  class XmlNode;
20 } // namespace Xml
21 } // namespace Utils
22 namespace EC2
23 {
24 namespace Model
25 {
26 
33  {
34  public:
38 
39  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40  void OutputToStream(Aws::OStream& oStream, const char* location) const;
41 
42 
46  inline bool GetEncrypted() const{ return m_encrypted; }
47 
51  inline bool EncryptedHasBeenSet() const { return m_encryptedHasBeenSet; }
52 
56  inline void SetEncrypted(bool value) { m_encryptedHasBeenSet = true; m_encrypted = value; }
57 
61  inline LaunchTemplateEbsBlockDevice& WithEncrypted(bool value) { SetEncrypted(value); return *this;}
62 
63 
67  inline bool GetDeleteOnTermination() const{ return m_deleteOnTermination; }
68 
72  inline bool DeleteOnTerminationHasBeenSet() const { return m_deleteOnTerminationHasBeenSet; }
73 
77  inline void SetDeleteOnTermination(bool value) { m_deleteOnTerminationHasBeenSet = true; m_deleteOnTermination = value; }
78 
82  inline LaunchTemplateEbsBlockDevice& WithDeleteOnTermination(bool value) { SetDeleteOnTermination(value); return *this;}
83 
84 
88  inline int GetIops() const{ return m_iops; }
89 
93  inline bool IopsHasBeenSet() const { return m_iopsHasBeenSet; }
94 
98  inline void SetIops(int value) { m_iopsHasBeenSet = true; m_iops = value; }
99 
103  inline LaunchTemplateEbsBlockDevice& WithIops(int value) { SetIops(value); return *this;}
104 
105 
109  inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
110 
114  inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
115 
119  inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
120 
124  inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
125 
129  inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
130 
134  inline LaunchTemplateEbsBlockDevice& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
135 
139  inline LaunchTemplateEbsBlockDevice& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
140 
144  inline LaunchTemplateEbsBlockDevice& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
145 
146 
150  inline const Aws::String& GetSnapshotId() const{ return m_snapshotId; }
151 
155  inline bool SnapshotIdHasBeenSet() const { return m_snapshotIdHasBeenSet; }
156 
160  inline void SetSnapshotId(const Aws::String& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = value; }
161 
165  inline void SetSnapshotId(Aws::String&& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = std::move(value); }
166 
170  inline void SetSnapshotId(const char* value) { m_snapshotIdHasBeenSet = true; m_snapshotId.assign(value); }
171 
175  inline LaunchTemplateEbsBlockDevice& WithSnapshotId(const Aws::String& value) { SetSnapshotId(value); return *this;}
176 
180  inline LaunchTemplateEbsBlockDevice& WithSnapshotId(Aws::String&& value) { SetSnapshotId(std::move(value)); return *this;}
181 
185  inline LaunchTemplateEbsBlockDevice& WithSnapshotId(const char* value) { SetSnapshotId(value); return *this;}
186 
187 
191  inline int GetVolumeSize() const{ return m_volumeSize; }
192 
196  inline bool VolumeSizeHasBeenSet() const { return m_volumeSizeHasBeenSet; }
197 
201  inline void SetVolumeSize(int value) { m_volumeSizeHasBeenSet = true; m_volumeSize = value; }
202 
206  inline LaunchTemplateEbsBlockDevice& WithVolumeSize(int value) { SetVolumeSize(value); return *this;}
207 
208 
212  inline const VolumeType& GetVolumeType() const{ return m_volumeType; }
213 
217  inline bool VolumeTypeHasBeenSet() const { return m_volumeTypeHasBeenSet; }
218 
222  inline void SetVolumeType(const VolumeType& value) { m_volumeTypeHasBeenSet = true; m_volumeType = value; }
223 
227  inline void SetVolumeType(VolumeType&& value) { m_volumeTypeHasBeenSet = true; m_volumeType = std::move(value); }
228 
232  inline LaunchTemplateEbsBlockDevice& WithVolumeType(const VolumeType& value) { SetVolumeType(value); return *this;}
233 
237  inline LaunchTemplateEbsBlockDevice& WithVolumeType(VolumeType&& value) { SetVolumeType(std::move(value)); return *this;}
238 
239 
243  inline int GetThroughput() const{ return m_throughput; }
244 
248  inline bool ThroughputHasBeenSet() const { return m_throughputHasBeenSet; }
249 
253  inline void SetThroughput(int value) { m_throughputHasBeenSet = true; m_throughput = value; }
254 
258  inline LaunchTemplateEbsBlockDevice& WithThroughput(int value) { SetThroughput(value); return *this;}
259 
260  private:
261 
262  bool m_encrypted;
263  bool m_encryptedHasBeenSet;
264 
265  bool m_deleteOnTermination;
266  bool m_deleteOnTerminationHasBeenSet;
267 
268  int m_iops;
269  bool m_iopsHasBeenSet;
270 
271  Aws::String m_kmsKeyId;
272  bool m_kmsKeyIdHasBeenSet;
273 
274  Aws::String m_snapshotId;
275  bool m_snapshotIdHasBeenSet;
276 
277  int m_volumeSize;
278  bool m_volumeSizeHasBeenSet;
279 
280  VolumeType m_volumeType;
281  bool m_volumeTypeHasBeenSet;
282 
283  int m_throughput;
284  bool m_throughputHasBeenSet;
285  };
286 
287 } // namespace Model
288 } // namespace EC2
289 } // namespace Aws
Aws::EC2::Model::LaunchTemplateEbsBlockDevice::WithVolumeType
LaunchTemplateEbsBlockDevice & WithVolumeType(const VolumeType &value)
Definition: LaunchTemplateEbsBlockDevice.h:232
Aws::EC2::Model::LaunchTemplateEbsBlockDevice::SetEncrypted
void SetEncrypted(bool value)
Definition: LaunchTemplateEbsBlockDevice.h:56
Aws::EC2::Model::LaunchTemplateEbsBlockDevice::SetSnapshotId
void SetSnapshotId(const Aws::String &value)
Definition: LaunchTemplateEbsBlockDevice.h:160
Aws::EC2::Model::LaunchTemplateEbsBlockDevice::GetEncrypted
bool GetEncrypted() const
Definition: LaunchTemplateEbsBlockDevice.h:46
Aws::EC2::Model::LaunchTemplateEbsBlockDevice::WithSnapshotId
LaunchTemplateEbsBlockDevice & WithSnapshotId(const Aws::String &value)
Definition: LaunchTemplateEbsBlockDevice.h:175
Aws::EC2::Model::LaunchTemplateEbsBlockDevice::WithKmsKeyId
LaunchTemplateEbsBlockDevice & WithKmsKeyId(Aws::String &&value)
Definition: LaunchTemplateEbsBlockDevice.h:139
Aws::EC2::Model::LaunchTemplateEbsBlockDevice::ThroughputHasBeenSet
bool ThroughputHasBeenSet() const
Definition: LaunchTemplateEbsBlockDevice.h:248
Aws::EC2::Model::LaunchTemplateEbsBlockDevice::SetThroughput
void SetThroughput(int value)
Definition: LaunchTemplateEbsBlockDevice.h:253
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
VolumeType.h
Aws::EC2::Model::LaunchTemplateEbsBlockDevice::WithIops
LaunchTemplateEbsBlockDevice & WithIops(int value)
Definition: LaunchTemplateEbsBlockDevice.h:103
Aws::EC2::Model::LaunchTemplateEbsBlockDevice::VolumeSizeHasBeenSet
bool VolumeSizeHasBeenSet() const
Definition: LaunchTemplateEbsBlockDevice.h:196
Aws::EC2::Model::LaunchTemplateEbsBlockDevice::KmsKeyIdHasBeenSet
bool KmsKeyIdHasBeenSet() const
Definition: LaunchTemplateEbsBlockDevice.h:114
Aws::EC2::Model::LaunchTemplateEbsBlockDevice::LaunchTemplateEbsBlockDevice
LaunchTemplateEbsBlockDevice(const Aws::Utils::Xml::XmlNode &xmlNode)
AWSStreamFwd.h
Aws::EC2::Model::LaunchTemplateEbsBlockDevice::IopsHasBeenSet
bool IopsHasBeenSet() const
Definition: LaunchTemplateEbsBlockDevice.h:93
Aws::EC2::Model::LaunchTemplateEbsBlockDevice::GetKmsKeyId
const Aws::String & GetKmsKeyId() const
Definition: LaunchTemplateEbsBlockDevice.h:109
Aws::EC2::Model::LaunchTemplateEbsBlockDevice::SetVolumeType
void SetVolumeType(VolumeType &&value)
Definition: LaunchTemplateEbsBlockDevice.h:227
Aws::EC2::Model::LaunchTemplateEbsBlockDevice::WithSnapshotId
LaunchTemplateEbsBlockDevice & WithSnapshotId(Aws::String &&value)
Definition: LaunchTemplateEbsBlockDevice.h:180
Aws::EC2::Model::LaunchTemplateEbsBlockDevice::WithVolumeType
LaunchTemplateEbsBlockDevice & WithVolumeType(VolumeType &&value)
Definition: LaunchTemplateEbsBlockDevice.h:237
Aws::EC2::Model::LaunchTemplateEbsBlockDevice::EncryptedHasBeenSet
bool EncryptedHasBeenSet() const
Definition: LaunchTemplateEbsBlockDevice.h:51
Aws::EC2::Model::LaunchTemplateEbsBlockDevice::GetSnapshotId
const Aws::String & GetSnapshotId() const
Definition: LaunchTemplateEbsBlockDevice.h:150
Aws::EC2::Model::VolumeType
VolumeType
Definition: VolumeType.h:17
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::LaunchTemplateEbsBlockDevice::VolumeTypeHasBeenSet
bool VolumeTypeHasBeenSet() const
Definition: LaunchTemplateEbsBlockDevice.h:217
Aws::EC2::Model::LaunchTemplateEbsBlockDevice::SetVolumeSize
void SetVolumeSize(int value)
Definition: LaunchTemplateEbsBlockDevice.h:201
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::LaunchTemplateEbsBlockDevice::SetKmsKeyId
void SetKmsKeyId(Aws::String &&value)
Definition: LaunchTemplateEbsBlockDevice.h:124
Aws::EC2::Model::LaunchTemplateEbsBlockDevice::WithEncrypted
LaunchTemplateEbsBlockDevice & WithEncrypted(bool value)
Definition: LaunchTemplateEbsBlockDevice.h:61
Aws::EC2::Model::LaunchTemplateEbsBlockDevice::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::LaunchTemplateEbsBlockDevice::GetDeleteOnTermination
bool GetDeleteOnTermination() const
Definition: LaunchTemplateEbsBlockDevice.h:67
Aws::EC2::Model::LaunchTemplateEbsBlockDevice::SetSnapshotId
void SetSnapshotId(Aws::String &&value)
Definition: LaunchTemplateEbsBlockDevice.h:165
Aws::EC2::Model::LaunchTemplateEbsBlockDevice::WithDeleteOnTermination
LaunchTemplateEbsBlockDevice & WithDeleteOnTermination(bool value)
Definition: LaunchTemplateEbsBlockDevice.h:82
Aws::EC2::Model::LaunchTemplateEbsBlockDevice::SetKmsKeyId
void SetKmsKeyId(const Aws::String &value)
Definition: LaunchTemplateEbsBlockDevice.h:119
Aws::EC2::Model::LaunchTemplateEbsBlockDevice::WithSnapshotId
LaunchTemplateEbsBlockDevice & WithSnapshotId(const char *value)
Definition: LaunchTemplateEbsBlockDevice.h:185
Aws::EC2::Model::LaunchTemplateEbsBlockDevice::WithKmsKeyId
LaunchTemplateEbsBlockDevice & WithKmsKeyId(const char *value)
Definition: LaunchTemplateEbsBlockDevice.h:144
Aws::EC2::Model::LaunchTemplateEbsBlockDevice::LaunchTemplateEbsBlockDevice
LaunchTemplateEbsBlockDevice()
Aws::EC2::Model::LaunchTemplateEbsBlockDevice::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWSString.h
Aws::EC2::Model::LaunchTemplateEbsBlockDevice::GetIops
int GetIops() const
Definition: LaunchTemplateEbsBlockDevice.h:88
Aws::EC2::Model::LaunchTemplateEbsBlockDevice::SnapshotIdHasBeenSet
bool SnapshotIdHasBeenSet() const
Definition: LaunchTemplateEbsBlockDevice.h:155
Aws::EC2::Model::LaunchTemplateEbsBlockDevice::GetVolumeType
const VolumeType & GetVolumeType() const
Definition: LaunchTemplateEbsBlockDevice.h:212
Aws::EC2::Model::LaunchTemplateEbsBlockDevice::GetVolumeSize
int GetVolumeSize() const
Definition: LaunchTemplateEbsBlockDevice.h:191
Aws::EC2::Model::LaunchTemplateEbsBlockDevice::SetKmsKeyId
void SetKmsKeyId(const char *value)
Definition: LaunchTemplateEbsBlockDevice.h:129
Aws::EC2::Model::LaunchTemplateEbsBlockDevice::operator=
LaunchTemplateEbsBlockDevice & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::LaunchTemplateEbsBlockDevice::WithVolumeSize
LaunchTemplateEbsBlockDevice & WithVolumeSize(int value)
Definition: LaunchTemplateEbsBlockDevice.h:206
Aws::EC2::Model::LaunchTemplateEbsBlockDevice::GetThroughput
int GetThroughput() const
Definition: LaunchTemplateEbsBlockDevice.h:243
Aws::EC2::Model::LaunchTemplateEbsBlockDevice::SetSnapshotId
void SetSnapshotId(const char *value)
Definition: LaunchTemplateEbsBlockDevice.h:170
Aws::EC2::Model::LaunchTemplateEbsBlockDevice::SetDeleteOnTermination
void SetDeleteOnTermination(bool value)
Definition: LaunchTemplateEbsBlockDevice.h:77
Aws::EC2::Model::LaunchTemplateEbsBlockDevice::SetVolumeType
void SetVolumeType(const VolumeType &value)
Definition: LaunchTemplateEbsBlockDevice.h:222
Aws::EC2::Model::LaunchTemplateEbsBlockDevice::WithKmsKeyId
LaunchTemplateEbsBlockDevice & WithKmsKeyId(const Aws::String &value)
Definition: LaunchTemplateEbsBlockDevice.h:134
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::LaunchTemplateEbsBlockDevice::SetIops
void SetIops(int value)
Definition: LaunchTemplateEbsBlockDevice.h:98
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::LaunchTemplateEbsBlockDevice::WithThroughput
LaunchTemplateEbsBlockDevice & WithThroughput(int value)
Definition: LaunchTemplateEbsBlockDevice.h:258
EC2_EXPORTS.h
Aws::EC2::Model::LaunchTemplateEbsBlockDevice
Definition: LaunchTemplateEbsBlockDevice.h:33
Aws::EC2::Model::LaunchTemplateEbsBlockDevice::DeleteOnTerminationHasBeenSet
bool DeleteOnTerminationHasBeenSet() const
Definition: LaunchTemplateEbsBlockDevice.h:72