AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
LaunchTemplateEbsBlockDeviceRequest.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
34 {
35 public:
36 AWS_EC2_API LaunchTemplateEbsBlockDeviceRequest() = default;
39
40 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
50 inline bool GetEncrypted() const { return m_encrypted; }
51 inline bool EncryptedHasBeenSet() const { return m_encryptedHasBeenSet; }
52 inline void SetEncrypted(bool value) { m_encryptedHasBeenSet = true; m_encrypted = value; }
53 inline LaunchTemplateEbsBlockDeviceRequest& WithEncrypted(bool value) { SetEncrypted(value); return *this;}
55
57
60 inline bool GetDeleteOnTermination() const { return m_deleteOnTermination; }
61 inline bool DeleteOnTerminationHasBeenSet() const { return m_deleteOnTerminationHasBeenSet; }
62 inline void SetDeleteOnTermination(bool value) { m_deleteOnTerminationHasBeenSet = true; m_deleteOnTermination = value; }
65
67
82 inline int GetIops() const { return m_iops; }
83 inline bool IopsHasBeenSet() const { return m_iopsHasBeenSet; }
84 inline void SetIops(int value) { m_iopsHasBeenSet = true; m_iops = value; }
85 inline LaunchTemplateEbsBlockDeviceRequest& WithIops(int value) { SetIops(value); return *this;}
87
89
93 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
94 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
95 template<typename KmsKeyIdT = Aws::String>
96 void SetKmsKeyId(KmsKeyIdT&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::forward<KmsKeyIdT>(value); }
97 template<typename KmsKeyIdT = Aws::String>
98 LaunchTemplateEbsBlockDeviceRequest& WithKmsKeyId(KmsKeyIdT&& value) { SetKmsKeyId(std::forward<KmsKeyIdT>(value)); return *this;}
100
102
105 inline const Aws::String& GetSnapshotId() const { return m_snapshotId; }
106 inline bool SnapshotIdHasBeenSet() const { return m_snapshotIdHasBeenSet; }
107 template<typename SnapshotIdT = Aws::String>
108 void SetSnapshotId(SnapshotIdT&& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = std::forward<SnapshotIdT>(value); }
109 template<typename SnapshotIdT = Aws::String>
110 LaunchTemplateEbsBlockDeviceRequest& WithSnapshotId(SnapshotIdT&& value) { SetSnapshotId(std::forward<SnapshotIdT>(value)); return *this;}
112
114
123 inline int GetVolumeSize() const { return m_volumeSize; }
124 inline bool VolumeSizeHasBeenSet() const { return m_volumeSizeHasBeenSet; }
125 inline void SetVolumeSize(int value) { m_volumeSizeHasBeenSet = true; m_volumeSize = value; }
126 inline LaunchTemplateEbsBlockDeviceRequest& WithVolumeSize(int value) { SetVolumeSize(value); return *this;}
128
130
135 inline VolumeType GetVolumeType() const { return m_volumeType; }
136 inline bool VolumeTypeHasBeenSet() const { return m_volumeTypeHasBeenSet; }
137 inline void SetVolumeType(VolumeType value) { m_volumeTypeHasBeenSet = true; m_volumeType = value; }
140
142
147 inline int GetThroughput() const { return m_throughput; }
148 inline bool ThroughputHasBeenSet() const { return m_throughputHasBeenSet; }
149 inline void SetThroughput(int value) { m_throughputHasBeenSet = true; m_throughput = value; }
150 inline LaunchTemplateEbsBlockDeviceRequest& WithThroughput(int value) { SetThroughput(value); return *this;}
152
154
172 inline int GetVolumeInitializationRate() const { return m_volumeInitializationRate; }
173 inline bool VolumeInitializationRateHasBeenSet() const { return m_volumeInitializationRateHasBeenSet; }
174 inline void SetVolumeInitializationRate(int value) { m_volumeInitializationRateHasBeenSet = true; m_volumeInitializationRate = value; }
177 private:
178
179 bool m_encrypted{false};
180 bool m_encryptedHasBeenSet = false;
181
182 bool m_deleteOnTermination{false};
183 bool m_deleteOnTerminationHasBeenSet = false;
184
185 int m_iops{0};
186 bool m_iopsHasBeenSet = false;
187
188 Aws::String m_kmsKeyId;
189 bool m_kmsKeyIdHasBeenSet = false;
190
191 Aws::String m_snapshotId;
192 bool m_snapshotIdHasBeenSet = false;
193
194 int m_volumeSize{0};
195 bool m_volumeSizeHasBeenSet = false;
196
197 VolumeType m_volumeType{VolumeType::NOT_SET};
198 bool m_volumeTypeHasBeenSet = false;
199
200 int m_throughput{0};
201 bool m_throughputHasBeenSet = false;
202
203 int m_volumeInitializationRate{0};
204 bool m_volumeInitializationRateHasBeenSet = false;
205 };
206
207} // namespace Model
208} // namespace EC2
209} // namespace Aws
LaunchTemplateEbsBlockDeviceRequest & WithKmsKeyId(KmsKeyIdT &&value)
LaunchTemplateEbsBlockDeviceRequest & WithIops(int value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
LaunchTemplateEbsBlockDeviceRequest & WithDeleteOnTermination(bool value)
LaunchTemplateEbsBlockDeviceRequest & WithEncrypted(bool value)
AWS_EC2_API LaunchTemplateEbsBlockDeviceRequest(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API LaunchTemplateEbsBlockDeviceRequest & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
LaunchTemplateEbsBlockDeviceRequest & WithVolumeType(VolumeType value)
LaunchTemplateEbsBlockDeviceRequest & WithThroughput(int value)
LaunchTemplateEbsBlockDeviceRequest & WithVolumeSize(int value)
LaunchTemplateEbsBlockDeviceRequest & WithVolumeInitializationRate(int value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
LaunchTemplateEbsBlockDeviceRequest & WithSnapshotId(SnapshotIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream