AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
AwsEc2VolumeDetails.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/securityhub/SecurityHub_EXPORTS.h>
10#include <aws/securityhub/model/AwsEc2VolumeAttachment.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SecurityHub {
22namespace Model {
23
30 public:
31 AWS_SECURITYHUB_API AwsEc2VolumeDetails() = default;
32 AWS_SECURITYHUB_API AwsEc2VolumeDetails(Aws::Utils::Json::JsonView jsonValue);
34 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
42 inline const Aws::String& GetCreateTime() const { return m_createTime; }
43 inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; }
44 template <typename CreateTimeT = Aws::String>
45 void SetCreateTime(CreateTimeT&& value) {
46 m_createTimeHasBeenSet = true;
47 m_createTime = std::forward<CreateTimeT>(value);
48 }
49 template <typename CreateTimeT = Aws::String>
50 AwsEc2VolumeDetails& WithCreateTime(CreateTimeT&& value) {
51 SetCreateTime(std::forward<CreateTimeT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetDeviceName() const { return m_deviceName; }
61 inline bool DeviceNameHasBeenSet() const { return m_deviceNameHasBeenSet; }
62 template <typename DeviceNameT = Aws::String>
63 void SetDeviceName(DeviceNameT&& value) {
64 m_deviceNameHasBeenSet = true;
65 m_deviceName = std::forward<DeviceNameT>(value);
66 }
67 template <typename DeviceNameT = Aws::String>
68 AwsEc2VolumeDetails& WithDeviceName(DeviceNameT&& value) {
69 SetDeviceName(std::forward<DeviceNameT>(value));
70 return *this;
71 }
73
75
78 inline bool GetEncrypted() const { return m_encrypted; }
79 inline bool EncryptedHasBeenSet() const { return m_encryptedHasBeenSet; }
80 inline void SetEncrypted(bool value) {
81 m_encryptedHasBeenSet = true;
82 m_encrypted = value;
83 }
84 inline AwsEc2VolumeDetails& WithEncrypted(bool value) {
85 SetEncrypted(value);
86 return *this;
87 }
89
91
94 inline int GetSize() const { return m_size; }
95 inline bool SizeHasBeenSet() const { return m_sizeHasBeenSet; }
96 inline void SetSize(int value) {
97 m_sizeHasBeenSet = true;
98 m_size = value;
99 }
100 inline AwsEc2VolumeDetails& WithSize(int value) {
101 SetSize(value);
102 return *this;
103 }
105
107
110 inline const Aws::String& GetSnapshotId() const { return m_snapshotId; }
111 inline bool SnapshotIdHasBeenSet() const { return m_snapshotIdHasBeenSet; }
112 template <typename SnapshotIdT = Aws::String>
113 void SetSnapshotId(SnapshotIdT&& value) {
114 m_snapshotIdHasBeenSet = true;
115 m_snapshotId = std::forward<SnapshotIdT>(value);
116 }
117 template <typename SnapshotIdT = Aws::String>
118 AwsEc2VolumeDetails& WithSnapshotId(SnapshotIdT&& value) {
119 SetSnapshotId(std::forward<SnapshotIdT>(value));
120 return *this;
121 }
123
125
132 inline const Aws::String& GetStatus() const { return m_status; }
133 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
134 template <typename StatusT = Aws::String>
135 void SetStatus(StatusT&& value) {
136 m_statusHasBeenSet = true;
137 m_status = std::forward<StatusT>(value);
138 }
139 template <typename StatusT = Aws::String>
140 AwsEc2VolumeDetails& WithStatus(StatusT&& value) {
141 SetStatus(std::forward<StatusT>(value));
142 return *this;
143 }
145
147
151 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
152 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
153 template <typename KmsKeyIdT = Aws::String>
154 void SetKmsKeyId(KmsKeyIdT&& value) {
155 m_kmsKeyIdHasBeenSet = true;
156 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
157 }
158 template <typename KmsKeyIdT = Aws::String>
159 AwsEc2VolumeDetails& WithKmsKeyId(KmsKeyIdT&& value) {
160 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
161 return *this;
162 }
164
166
169 inline const Aws::Vector<AwsEc2VolumeAttachment>& GetAttachments() const { return m_attachments; }
170 inline bool AttachmentsHasBeenSet() const { return m_attachmentsHasBeenSet; }
171 template <typename AttachmentsT = Aws::Vector<AwsEc2VolumeAttachment>>
172 void SetAttachments(AttachmentsT&& value) {
173 m_attachmentsHasBeenSet = true;
174 m_attachments = std::forward<AttachmentsT>(value);
175 }
176 template <typename AttachmentsT = Aws::Vector<AwsEc2VolumeAttachment>>
177 AwsEc2VolumeDetails& WithAttachments(AttachmentsT&& value) {
178 SetAttachments(std::forward<AttachmentsT>(value));
179 return *this;
180 }
181 template <typename AttachmentsT = AwsEc2VolumeAttachment>
182 AwsEc2VolumeDetails& AddAttachments(AttachmentsT&& value) {
183 m_attachmentsHasBeenSet = true;
184 m_attachments.emplace_back(std::forward<AttachmentsT>(value));
185 return *this;
186 }
188
190
193 inline const Aws::String& GetVolumeId() const { return m_volumeId; }
194 inline bool VolumeIdHasBeenSet() const { return m_volumeIdHasBeenSet; }
195 template <typename VolumeIdT = Aws::String>
196 void SetVolumeId(VolumeIdT&& value) {
197 m_volumeIdHasBeenSet = true;
198 m_volumeId = std::forward<VolumeIdT>(value);
199 }
200 template <typename VolumeIdT = Aws::String>
201 AwsEc2VolumeDetails& WithVolumeId(VolumeIdT&& value) {
202 SetVolumeId(std::forward<VolumeIdT>(value));
203 return *this;
204 }
206
208
211 inline const Aws::String& GetVolumeType() const { return m_volumeType; }
212 inline bool VolumeTypeHasBeenSet() const { return m_volumeTypeHasBeenSet; }
213 template <typename VolumeTypeT = Aws::String>
214 void SetVolumeType(VolumeTypeT&& value) {
215 m_volumeTypeHasBeenSet = true;
216 m_volumeType = std::forward<VolumeTypeT>(value);
217 }
218 template <typename VolumeTypeT = Aws::String>
219 AwsEc2VolumeDetails& WithVolumeType(VolumeTypeT&& value) {
220 SetVolumeType(std::forward<VolumeTypeT>(value));
221 return *this;
222 }
224
226
229 inline const Aws::String& GetVolumeScanStatus() const { return m_volumeScanStatus; }
230 inline bool VolumeScanStatusHasBeenSet() const { return m_volumeScanStatusHasBeenSet; }
231 template <typename VolumeScanStatusT = Aws::String>
232 void SetVolumeScanStatus(VolumeScanStatusT&& value) {
233 m_volumeScanStatusHasBeenSet = true;
234 m_volumeScanStatus = std::forward<VolumeScanStatusT>(value);
235 }
236 template <typename VolumeScanStatusT = Aws::String>
237 AwsEc2VolumeDetails& WithVolumeScanStatus(VolumeScanStatusT&& value) {
238 SetVolumeScanStatus(std::forward<VolumeScanStatusT>(value));
239 return *this;
240 }
242 private:
243 Aws::String m_createTime;
244
245 Aws::String m_deviceName;
246
247 bool m_encrypted{false};
248
249 int m_size{0};
250
251 Aws::String m_snapshotId;
252
253 Aws::String m_status;
254
255 Aws::String m_kmsKeyId;
256
258
259 Aws::String m_volumeId;
260
261 Aws::String m_volumeType;
262
263 Aws::String m_volumeScanStatus;
264 bool m_createTimeHasBeenSet = false;
265 bool m_deviceNameHasBeenSet = false;
266 bool m_encryptedHasBeenSet = false;
267 bool m_sizeHasBeenSet = false;
268 bool m_snapshotIdHasBeenSet = false;
269 bool m_statusHasBeenSet = false;
270 bool m_kmsKeyIdHasBeenSet = false;
271 bool m_attachmentsHasBeenSet = false;
272 bool m_volumeIdHasBeenSet = false;
273 bool m_volumeTypeHasBeenSet = false;
274 bool m_volumeScanStatusHasBeenSet = false;
275};
276
277} // namespace Model
278} // namespace SecurityHub
279} // namespace Aws
AWS_SECURITYHUB_API AwsEc2VolumeDetails(Aws::Utils::Json::JsonView jsonValue)
AwsEc2VolumeDetails & WithEncrypted(bool value)
AwsEc2VolumeDetails & WithCreateTime(CreateTimeT &&value)
AwsEc2VolumeDetails & AddAttachments(AttachmentsT &&value)
AWS_SECURITYHUB_API AwsEc2VolumeDetails()=default
AwsEc2VolumeDetails & WithVolumeScanStatus(VolumeScanStatusT &&value)
void SetVolumeScanStatus(VolumeScanStatusT &&value)
AwsEc2VolumeDetails & WithVolumeId(VolumeIdT &&value)
AwsEc2VolumeDetails & WithSnapshotId(SnapshotIdT &&value)
AwsEc2VolumeDetails & WithDeviceName(DeviceNameT &&value)
AwsEc2VolumeDetails & WithStatus(StatusT &&value)
const Aws::Vector< AwsEc2VolumeAttachment > & GetAttachments() const
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AwsEc2VolumeDetails & WithKmsKeyId(KmsKeyIdT &&value)
AwsEc2VolumeDetails & WithVolumeType(VolumeTypeT &&value)
AWS_SECURITYHUB_API AwsEc2VolumeDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AwsEc2VolumeDetails & WithAttachments(AttachmentsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue