AWS SDK for C++  1.9.65
AWS SDK for C++
LaunchTemplateEbsBlockDeviceRequest.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 
34  {
35  public:
39 
40  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41  void OutputToStream(Aws::OStream& oStream, const char* location) const;
42 
43 
49  inline bool GetEncrypted() const{ return m_encrypted; }
50 
56  inline bool EncryptedHasBeenSet() const { return m_encryptedHasBeenSet; }
57 
63  inline void SetEncrypted(bool value) { m_encryptedHasBeenSet = true; m_encrypted = value; }
64 
70  inline LaunchTemplateEbsBlockDeviceRequest& WithEncrypted(bool value) { SetEncrypted(value); return *this;}
71 
72 
76  inline bool GetDeleteOnTermination() const{ return m_deleteOnTermination; }
77 
81  inline bool DeleteOnTerminationHasBeenSet() const { return m_deleteOnTerminationHasBeenSet; }
82 
86  inline void SetDeleteOnTermination(bool value) { m_deleteOnTerminationHasBeenSet = true; m_deleteOnTermination = value; }
87 
91  inline LaunchTemplateEbsBlockDeviceRequest& WithDeleteOnTermination(bool value) { SetDeleteOnTermination(value); return *this;}
92 
93 
112  inline int GetIops() const{ return m_iops; }
113 
132  inline bool IopsHasBeenSet() const { return m_iopsHasBeenSet; }
133 
152  inline void SetIops(int value) { m_iopsHasBeenSet = true; m_iops = value; }
153 
172  inline LaunchTemplateEbsBlockDeviceRequest& WithIops(int value) { SetIops(value); return *this;}
173 
174 
179  inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
180 
185  inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
186 
191  inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
192 
197  inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
198 
203  inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
204 
209  inline LaunchTemplateEbsBlockDeviceRequest& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
210 
215  inline LaunchTemplateEbsBlockDeviceRequest& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
216 
221  inline LaunchTemplateEbsBlockDeviceRequest& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
222 
223 
227  inline const Aws::String& GetSnapshotId() const{ return m_snapshotId; }
228 
232  inline bool SnapshotIdHasBeenSet() const { return m_snapshotIdHasBeenSet; }
233 
237  inline void SetSnapshotId(const Aws::String& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = value; }
238 
242  inline void SetSnapshotId(Aws::String&& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = std::move(value); }
243 
247  inline void SetSnapshotId(const char* value) { m_snapshotIdHasBeenSet = true; m_snapshotId.assign(value); }
248 
252  inline LaunchTemplateEbsBlockDeviceRequest& WithSnapshotId(const Aws::String& value) { SetSnapshotId(value); return *this;}
253 
257  inline LaunchTemplateEbsBlockDeviceRequest& WithSnapshotId(Aws::String&& value) { SetSnapshotId(std::move(value)); return *this;}
258 
262  inline LaunchTemplateEbsBlockDeviceRequest& WithSnapshotId(const char* value) { SetSnapshotId(value); return *this;}
263 
264 
273  inline int GetVolumeSize() const{ return m_volumeSize; }
274 
283  inline bool VolumeSizeHasBeenSet() const { return m_volumeSizeHasBeenSet; }
284 
293  inline void SetVolumeSize(int value) { m_volumeSizeHasBeenSet = true; m_volumeSize = value; }
294 
303  inline LaunchTemplateEbsBlockDeviceRequest& WithVolumeSize(int value) { SetVolumeSize(value); return *this;}
304 
305 
311  inline const VolumeType& GetVolumeType() const{ return m_volumeType; }
312 
318  inline bool VolumeTypeHasBeenSet() const { return m_volumeTypeHasBeenSet; }
319 
325  inline void SetVolumeType(const VolumeType& value) { m_volumeTypeHasBeenSet = true; m_volumeType = value; }
326 
332  inline void SetVolumeType(VolumeType&& value) { m_volumeTypeHasBeenSet = true; m_volumeType = std::move(value); }
333 
339  inline LaunchTemplateEbsBlockDeviceRequest& WithVolumeType(const VolumeType& value) { SetVolumeType(value); return *this;}
340 
346  inline LaunchTemplateEbsBlockDeviceRequest& WithVolumeType(VolumeType&& value) { SetVolumeType(std::move(value)); return *this;}
347 
348 
354  inline int GetThroughput() const{ return m_throughput; }
355 
361  inline bool ThroughputHasBeenSet() const { return m_throughputHasBeenSet; }
362 
368  inline void SetThroughput(int value) { m_throughputHasBeenSet = true; m_throughput = value; }
369 
375  inline LaunchTemplateEbsBlockDeviceRequest& WithThroughput(int value) { SetThroughput(value); return *this;}
376 
377  private:
378 
379  bool m_encrypted;
380  bool m_encryptedHasBeenSet;
381 
382  bool m_deleteOnTermination;
383  bool m_deleteOnTerminationHasBeenSet;
384 
385  int m_iops;
386  bool m_iopsHasBeenSet;
387 
388  Aws::String m_kmsKeyId;
389  bool m_kmsKeyIdHasBeenSet;
390 
391  Aws::String m_snapshotId;
392  bool m_snapshotIdHasBeenSet;
393 
394  int m_volumeSize;
395  bool m_volumeSizeHasBeenSet;
396 
397  VolumeType m_volumeType;
398  bool m_volumeTypeHasBeenSet;
399 
400  int m_throughput;
401  bool m_throughputHasBeenSet;
402  };
403 
404 } // namespace Model
405 } // namespace EC2
406 } // namespace Aws
Aws::EC2::Model::LaunchTemplateEbsBlockDeviceRequest::WithSnapshotId
LaunchTemplateEbsBlockDeviceRequest & WithSnapshotId(const char *value)
Definition: LaunchTemplateEbsBlockDeviceRequest.h:262
Aws::EC2::Model::LaunchTemplateEbsBlockDeviceRequest::LaunchTemplateEbsBlockDeviceRequest
LaunchTemplateEbsBlockDeviceRequest()
Aws::EC2::Model::LaunchTemplateEbsBlockDeviceRequest::WithVolumeSize
LaunchTemplateEbsBlockDeviceRequest & WithVolumeSize(int value)
Definition: LaunchTemplateEbsBlockDeviceRequest.h:303
Aws::EC2::Model::LaunchTemplateEbsBlockDeviceRequest::DeleteOnTerminationHasBeenSet
bool DeleteOnTerminationHasBeenSet() const
Definition: LaunchTemplateEbsBlockDeviceRequest.h:81
Aws::EC2::Model::LaunchTemplateEbsBlockDeviceRequest::WithEncrypted
LaunchTemplateEbsBlockDeviceRequest & WithEncrypted(bool value)
Definition: LaunchTemplateEbsBlockDeviceRequest.h:70
Aws::EC2::Model::LaunchTemplateEbsBlockDeviceRequest::WithVolumeType
LaunchTemplateEbsBlockDeviceRequest & WithVolumeType(VolumeType &&value)
Definition: LaunchTemplateEbsBlockDeviceRequest.h:346
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::LaunchTemplateEbsBlockDeviceRequest::EncryptedHasBeenSet
bool EncryptedHasBeenSet() const
Definition: LaunchTemplateEbsBlockDeviceRequest.h:56
VolumeType.h
Aws::EC2::Model::LaunchTemplateEbsBlockDeviceRequest::SetSnapshotId
void SetSnapshotId(Aws::String &&value)
Definition: LaunchTemplateEbsBlockDeviceRequest.h:242
Aws::EC2::Model::LaunchTemplateEbsBlockDeviceRequest::WithSnapshotId
LaunchTemplateEbsBlockDeviceRequest & WithSnapshotId(const Aws::String &value)
Definition: LaunchTemplateEbsBlockDeviceRequest.h:252
Aws::EC2::Model::LaunchTemplateEbsBlockDeviceRequest::GetKmsKeyId
const Aws::String & GetKmsKeyId() const
Definition: LaunchTemplateEbsBlockDeviceRequest.h:179
AWSStreamFwd.h
Aws::EC2::Model::LaunchTemplateEbsBlockDeviceRequest::SetVolumeSize
void SetVolumeSize(int value)
Definition: LaunchTemplateEbsBlockDeviceRequest.h:293
Aws::EC2::Model::LaunchTemplateEbsBlockDeviceRequest::SetDeleteOnTermination
void SetDeleteOnTermination(bool value)
Definition: LaunchTemplateEbsBlockDeviceRequest.h:86
Aws::EC2::Model::LaunchTemplateEbsBlockDeviceRequest::SetVolumeType
void SetVolumeType(const VolumeType &value)
Definition: LaunchTemplateEbsBlockDeviceRequest.h:325
Aws::EC2::Model::LaunchTemplateEbsBlockDeviceRequest::VolumeTypeHasBeenSet
bool VolumeTypeHasBeenSet() const
Definition: LaunchTemplateEbsBlockDeviceRequest.h:318
Aws::EC2::Model::LaunchTemplateEbsBlockDeviceRequest::SetKmsKeyId
void SetKmsKeyId(const Aws::String &value)
Definition: LaunchTemplateEbsBlockDeviceRequest.h:191
Aws::EC2::Model::LaunchTemplateEbsBlockDeviceRequest::SetThroughput
void SetThroughput(int value)
Definition: LaunchTemplateEbsBlockDeviceRequest.h:368
Aws::EC2::Model::LaunchTemplateEbsBlockDeviceRequest::SnapshotIdHasBeenSet
bool SnapshotIdHasBeenSet() const
Definition: LaunchTemplateEbsBlockDeviceRequest.h:232
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::LaunchTemplateEbsBlockDeviceRequest::WithKmsKeyId
LaunchTemplateEbsBlockDeviceRequest & WithKmsKeyId(Aws::String &&value)
Definition: LaunchTemplateEbsBlockDeviceRequest.h:215
Aws::EC2::Model::LaunchTemplateEbsBlockDeviceRequest::SetKmsKeyId
void SetKmsKeyId(Aws::String &&value)
Definition: LaunchTemplateEbsBlockDeviceRequest.h:197
Aws::EC2::Model::LaunchTemplateEbsBlockDeviceRequest::SetIops
void SetIops(int value)
Definition: LaunchTemplateEbsBlockDeviceRequest.h:152
Aws::EC2::Model::LaunchTemplateEbsBlockDeviceRequest::WithIops
LaunchTemplateEbsBlockDeviceRequest & WithIops(int value)
Definition: LaunchTemplateEbsBlockDeviceRequest.h:172
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::LaunchTemplateEbsBlockDeviceRequest::KmsKeyIdHasBeenSet
bool KmsKeyIdHasBeenSet() const
Definition: LaunchTemplateEbsBlockDeviceRequest.h:185
Aws::EC2::Model::LaunchTemplateEbsBlockDeviceRequest::WithThroughput
LaunchTemplateEbsBlockDeviceRequest & WithThroughput(int value)
Definition: LaunchTemplateEbsBlockDeviceRequest.h:375
Aws::EC2::Model::LaunchTemplateEbsBlockDeviceRequest::SetVolumeType
void SetVolumeType(VolumeType &&value)
Definition: LaunchTemplateEbsBlockDeviceRequest.h:332
Aws::EC2::Model::LaunchTemplateEbsBlockDeviceRequest::GetEncrypted
bool GetEncrypted() const
Definition: LaunchTemplateEbsBlockDeviceRequest.h:49
Aws::EC2::Model::LaunchTemplateEbsBlockDeviceRequest::WithVolumeType
LaunchTemplateEbsBlockDeviceRequest & WithVolumeType(const VolumeType &value)
Definition: LaunchTemplateEbsBlockDeviceRequest.h:339
Aws::EC2::Model::LaunchTemplateEbsBlockDeviceRequest::operator=
LaunchTemplateEbsBlockDeviceRequest & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWSString.h
Aws::EC2::Model::LaunchTemplateEbsBlockDeviceRequest::GetDeleteOnTermination
bool GetDeleteOnTermination() const
Definition: LaunchTemplateEbsBlockDeviceRequest.h:76
Aws::EC2::Model::LaunchTemplateEbsBlockDeviceRequest::GetSnapshotId
const Aws::String & GetSnapshotId() const
Definition: LaunchTemplateEbsBlockDeviceRequest.h:227
Aws::EC2::Model::LaunchTemplateEbsBlockDeviceRequest::WithKmsKeyId
LaunchTemplateEbsBlockDeviceRequest & WithKmsKeyId(const Aws::String &value)
Definition: LaunchTemplateEbsBlockDeviceRequest.h:209
Aws::EC2::Model::LaunchTemplateEbsBlockDeviceRequest::SetSnapshotId
void SetSnapshotId(const Aws::String &value)
Definition: LaunchTemplateEbsBlockDeviceRequest.h:237
Aws::EC2::Model::LaunchTemplateEbsBlockDeviceRequest::IopsHasBeenSet
bool IopsHasBeenSet() const
Definition: LaunchTemplateEbsBlockDeviceRequest.h:132
Aws::EC2::Model::LaunchTemplateEbsBlockDeviceRequest::VolumeSizeHasBeenSet
bool VolumeSizeHasBeenSet() const
Definition: LaunchTemplateEbsBlockDeviceRequest.h:283
Aws::EC2::Model::LaunchTemplateEbsBlockDeviceRequest::SetKmsKeyId
void SetKmsKeyId(const char *value)
Definition: LaunchTemplateEbsBlockDeviceRequest.h:203
Aws::EC2::Model::LaunchTemplateEbsBlockDeviceRequest::WithDeleteOnTermination
LaunchTemplateEbsBlockDeviceRequest & WithDeleteOnTermination(bool value)
Definition: LaunchTemplateEbsBlockDeviceRequest.h:91
Aws::EC2::Model::LaunchTemplateEbsBlockDeviceRequest::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::LaunchTemplateEbsBlockDeviceRequest::SetSnapshotId
void SetSnapshotId(const char *value)
Definition: LaunchTemplateEbsBlockDeviceRequest.h:247
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::LaunchTemplateEbsBlockDeviceRequest::ThroughputHasBeenSet
bool ThroughputHasBeenSet() const
Definition: LaunchTemplateEbsBlockDeviceRequest.h:361
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::LaunchTemplateEbsBlockDeviceRequest::GetVolumeSize
int GetVolumeSize() const
Definition: LaunchTemplateEbsBlockDeviceRequest.h:273
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::LaunchTemplateEbsBlockDeviceRequest::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::LaunchTemplateEbsBlockDeviceRequest::LaunchTemplateEbsBlockDeviceRequest
LaunchTemplateEbsBlockDeviceRequest(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::LaunchTemplateEbsBlockDeviceRequest::GetIops
int GetIops() const
Definition: LaunchTemplateEbsBlockDeviceRequest.h:112
Aws::EC2::Model::LaunchTemplateEbsBlockDeviceRequest::WithKmsKeyId
LaunchTemplateEbsBlockDeviceRequest & WithKmsKeyId(const char *value)
Definition: LaunchTemplateEbsBlockDeviceRequest.h:221
Aws::EC2::Model::LaunchTemplateEbsBlockDeviceRequest::GetThroughput
int GetThroughput() const
Definition: LaunchTemplateEbsBlockDeviceRequest.h:354
EC2_EXPORTS.h
Aws::EC2::Model::LaunchTemplateEbsBlockDeviceRequest::GetVolumeType
const VolumeType & GetVolumeType() const
Definition: LaunchTemplateEbsBlockDeviceRequest.h:311
Aws::EC2::Model::LaunchTemplateEbsBlockDeviceRequest::SetEncrypted
void SetEncrypted(bool value)
Definition: LaunchTemplateEbsBlockDeviceRequest.h:63
Aws::EC2::Model::LaunchTemplateEbsBlockDeviceRequest
Definition: LaunchTemplateEbsBlockDeviceRequest.h:34
Aws::EC2::Model::LaunchTemplateEbsBlockDeviceRequest::WithSnapshotId
LaunchTemplateEbsBlockDeviceRequest & WithSnapshotId(Aws::String &&value)
Definition: LaunchTemplateEbsBlockDeviceRequest.h:257