AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
EbsBlockDeviceResponse.h
1
6#pragma once
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>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace EC2 {
21namespace Model {
22
29 public:
30 AWS_EC2_API EbsBlockDeviceResponse() = default;
33
34 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
35 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
36
38
41 inline bool GetEncrypted() const { return m_encrypted; }
42 inline bool EncryptedHasBeenSet() const { return m_encryptedHasBeenSet; }
43 inline void SetEncrypted(bool value) {
44 m_encryptedHasBeenSet = true;
45 m_encrypted = value;
46 }
48 SetEncrypted(value);
49 return *this;
50 }
52
54
57 inline bool GetDeleteOnTermination() const { return m_deleteOnTermination; }
58 inline bool DeleteOnTerminationHasBeenSet() const { return m_deleteOnTerminationHasBeenSet; }
59 inline void SetDeleteOnTermination(bool value) {
60 m_deleteOnTerminationHasBeenSet = true;
61 m_deleteOnTermination = value;
62 }
65 return *this;
66 }
68
70
77 inline int GetIops() const { return m_iops; }
78 inline bool IopsHasBeenSet() const { return m_iopsHasBeenSet; }
79 inline void SetIops(int value) {
80 m_iopsHasBeenSet = true;
81 m_iops = value;
82 }
83 inline EbsBlockDeviceResponse& WithIops(int value) {
84 SetIops(value);
85 return *this;
86 }
88
90
93 inline int GetThroughput() const { return m_throughput; }
94 inline bool ThroughputHasBeenSet() const { return m_throughputHasBeenSet; }
95 inline void SetThroughput(int value) {
96 m_throughputHasBeenSet = true;
97 m_throughput = value;
98 }
100 SetThroughput(value);
101 return *this;
102 }
104
106
110 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
111 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
112 template <typename KmsKeyIdT = Aws::String>
113 void SetKmsKeyId(KmsKeyIdT&& value) {
114 m_kmsKeyIdHasBeenSet = true;
115 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
116 }
117 template <typename KmsKeyIdT = Aws::String>
119 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
120 return *this;
121 }
123
125
128 inline const Aws::String& GetSnapshotId() const { return m_snapshotId; }
129 inline bool SnapshotIdHasBeenSet() const { return m_snapshotIdHasBeenSet; }
130 template <typename SnapshotIdT = Aws::String>
131 void SetSnapshotId(SnapshotIdT&& value) {
132 m_snapshotIdHasBeenSet = true;
133 m_snapshotId = std::forward<SnapshotIdT>(value);
134 }
135 template <typename SnapshotIdT = Aws::String>
137 SetSnapshotId(std::forward<SnapshotIdT>(value));
138 return *this;
139 }
141
143
146 inline int GetVolumeSize() const { return m_volumeSize; }
147 inline bool VolumeSizeHasBeenSet() const { return m_volumeSizeHasBeenSet; }
148 inline void SetVolumeSize(int value) {
149 m_volumeSizeHasBeenSet = true;
150 m_volumeSize = value;
151 }
153 SetVolumeSize(value);
154 return *this;
155 }
157
159
164 inline VolumeType GetVolumeType() const { return m_volumeType; }
165 inline bool VolumeTypeHasBeenSet() const { return m_volumeTypeHasBeenSet; }
166 inline void SetVolumeType(VolumeType value) {
167 m_volumeTypeHasBeenSet = true;
168 m_volumeType = value;
169 }
171 SetVolumeType(value);
172 return *this;
173 }
175 private:
176 bool m_encrypted{false};
177
178 bool m_deleteOnTermination{false};
179
180 int m_iops{0};
181
182 int m_throughput{0};
183
184 Aws::String m_kmsKeyId;
185
186 Aws::String m_snapshotId;
187
188 int m_volumeSize{0};
189
190 VolumeType m_volumeType{VolumeType::NOT_SET};
191 bool m_encryptedHasBeenSet = false;
192 bool m_deleteOnTerminationHasBeenSet = false;
193 bool m_iopsHasBeenSet = false;
194 bool m_throughputHasBeenSet = false;
195 bool m_kmsKeyIdHasBeenSet = false;
196 bool m_snapshotIdHasBeenSet = false;
197 bool m_volumeSizeHasBeenSet = false;
198 bool m_volumeTypeHasBeenSet = false;
199};
200
201} // namespace Model
202} // namespace EC2
203} // namespace Aws
EbsBlockDeviceResponse & WithKmsKeyId(KmsKeyIdT &&value)
EbsBlockDeviceResponse & WithSnapshotId(SnapshotIdT &&value)
EbsBlockDeviceResponse & WithEncrypted(bool value)
EbsBlockDeviceResponse & WithIops(int value)
AWS_EC2_API EbsBlockDeviceResponse & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API EbsBlockDeviceResponse()=default
EbsBlockDeviceResponse & WithThroughput(int value)
AWS_EC2_API EbsBlockDeviceResponse(const Aws::Utils::Xml::XmlNode &xmlNode)
EbsBlockDeviceResponse & WithVolumeSize(int value)
EbsBlockDeviceResponse & WithDeleteOnTermination(bool value)
EbsBlockDeviceResponse & WithVolumeType(VolumeType value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream