AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
LaunchTemplateEbsBlockDevice.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 LaunchTemplateEbsBlockDevice() = 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
47 inline bool GetEncrypted() const { return m_encrypted; }
48 inline bool EncryptedHasBeenSet() const { return m_encryptedHasBeenSet; }
49 inline void SetEncrypted(bool value) { m_encryptedHasBeenSet = true; m_encrypted = value; }
50 inline LaunchTemplateEbsBlockDevice& WithEncrypted(bool value) { SetEncrypted(value); return *this;}
52
54
57 inline bool GetDeleteOnTermination() const { return m_deleteOnTermination; }
58 inline bool DeleteOnTerminationHasBeenSet() const { return m_deleteOnTerminationHasBeenSet; }
59 inline void SetDeleteOnTermination(bool value) { m_deleteOnTerminationHasBeenSet = true; m_deleteOnTermination = value; }
62
64
67 inline int GetIops() const { return m_iops; }
68 inline bool IopsHasBeenSet() const { return m_iopsHasBeenSet; }
69 inline void SetIops(int value) { m_iopsHasBeenSet = true; m_iops = value; }
70 inline LaunchTemplateEbsBlockDevice& WithIops(int value) { SetIops(value); return *this;}
72
74
78 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
79 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
80 template<typename KmsKeyIdT = Aws::String>
81 void SetKmsKeyId(KmsKeyIdT&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::forward<KmsKeyIdT>(value); }
82 template<typename KmsKeyIdT = Aws::String>
83 LaunchTemplateEbsBlockDevice& WithKmsKeyId(KmsKeyIdT&& value) { SetKmsKeyId(std::forward<KmsKeyIdT>(value)); return *this;}
85
87
90 inline const Aws::String& GetSnapshotId() const { return m_snapshotId; }
91 inline bool SnapshotIdHasBeenSet() const { return m_snapshotIdHasBeenSet; }
92 template<typename SnapshotIdT = Aws::String>
93 void SetSnapshotId(SnapshotIdT&& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = std::forward<SnapshotIdT>(value); }
94 template<typename SnapshotIdT = Aws::String>
95 LaunchTemplateEbsBlockDevice& WithSnapshotId(SnapshotIdT&& value) { SetSnapshotId(std::forward<SnapshotIdT>(value)); return *this;}
97
99
102 inline int GetVolumeSize() const { return m_volumeSize; }
103 inline bool VolumeSizeHasBeenSet() const { return m_volumeSizeHasBeenSet; }
104 inline void SetVolumeSize(int value) { m_volumeSizeHasBeenSet = true; m_volumeSize = value; }
105 inline LaunchTemplateEbsBlockDevice& WithVolumeSize(int value) { SetVolumeSize(value); return *this;}
107
109
112 inline VolumeType GetVolumeType() const { return m_volumeType; }
113 inline bool VolumeTypeHasBeenSet() const { return m_volumeTypeHasBeenSet; }
114 inline void SetVolumeType(VolumeType value) { m_volumeTypeHasBeenSet = true; m_volumeType = value; }
117
119
122 inline int GetThroughput() const { return m_throughput; }
123 inline bool ThroughputHasBeenSet() const { return m_throughputHasBeenSet; }
124 inline void SetThroughput(int value) { m_throughputHasBeenSet = true; m_throughput = value; }
125 inline LaunchTemplateEbsBlockDevice& WithThroughput(int value) { SetThroughput(value); return *this;}
127
129
134 inline int GetVolumeInitializationRate() const { return m_volumeInitializationRate; }
135 inline bool VolumeInitializationRateHasBeenSet() const { return m_volumeInitializationRateHasBeenSet; }
136 inline void SetVolumeInitializationRate(int value) { m_volumeInitializationRateHasBeenSet = true; m_volumeInitializationRate = value; }
139 private:
140
141 bool m_encrypted{false};
142 bool m_encryptedHasBeenSet = false;
143
144 bool m_deleteOnTermination{false};
145 bool m_deleteOnTerminationHasBeenSet = false;
146
147 int m_iops{0};
148 bool m_iopsHasBeenSet = false;
149
150 Aws::String m_kmsKeyId;
151 bool m_kmsKeyIdHasBeenSet = false;
152
153 Aws::String m_snapshotId;
154 bool m_snapshotIdHasBeenSet = false;
155
156 int m_volumeSize{0};
157 bool m_volumeSizeHasBeenSet = false;
158
159 VolumeType m_volumeType{VolumeType::NOT_SET};
160 bool m_volumeTypeHasBeenSet = false;
161
162 int m_throughput{0};
163 bool m_throughputHasBeenSet = false;
164
165 int m_volumeInitializationRate{0};
166 bool m_volumeInitializationRateHasBeenSet = false;
167 };
168
169} // namespace Model
170} // namespace EC2
171} // namespace Aws
LaunchTemplateEbsBlockDevice & WithKmsKeyId(KmsKeyIdT &&value)
LaunchTemplateEbsBlockDevice & WithVolumeSize(int value)
LaunchTemplateEbsBlockDevice & WithThroughput(int value)
LaunchTemplateEbsBlockDevice & WithVolumeType(VolumeType value)
LaunchTemplateEbsBlockDevice & WithDeleteOnTermination(bool value)
AWS_EC2_API LaunchTemplateEbsBlockDevice()=default
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
LaunchTemplateEbsBlockDevice & WithSnapshotId(SnapshotIdT &&value)
AWS_EC2_API LaunchTemplateEbsBlockDevice(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API LaunchTemplateEbsBlockDevice & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
LaunchTemplateEbsBlockDevice & WithVolumeInitializationRate(int value)
LaunchTemplateEbsBlockDevice & WithIops(int value)
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