AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AwsEc2VolumeDetails.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/securityhub/model/AwsEc2VolumeAttachment.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SecurityHub
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_SECURITYHUB_API AwsEc2VolumeDetails();
37 AWS_SECURITYHUB_API AwsEc2VolumeDetails(Aws::Utils::Json::JsonView jsonValue);
39 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
60 inline const Aws::String& GetCreateTime() const{ return m_createTime; }
61 inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; }
62 inline void SetCreateTime(const Aws::String& value) { m_createTimeHasBeenSet = true; m_createTime = value; }
63 inline void SetCreateTime(Aws::String&& value) { m_createTimeHasBeenSet = true; m_createTime = std::move(value); }
64 inline void SetCreateTime(const char* value) { m_createTimeHasBeenSet = true; m_createTime.assign(value); }
65 inline AwsEc2VolumeDetails& WithCreateTime(const Aws::String& value) { SetCreateTime(value); return *this;}
66 inline AwsEc2VolumeDetails& WithCreateTime(Aws::String&& value) { SetCreateTime(std::move(value)); return *this;}
67 inline AwsEc2VolumeDetails& WithCreateTime(const char* value) { SetCreateTime(value); return *this;}
69
71
74 inline const Aws::String& GetDeviceName() const{ return m_deviceName; }
75 inline bool DeviceNameHasBeenSet() const { return m_deviceNameHasBeenSet; }
76 inline void SetDeviceName(const Aws::String& value) { m_deviceNameHasBeenSet = true; m_deviceName = value; }
77 inline void SetDeviceName(Aws::String&& value) { m_deviceNameHasBeenSet = true; m_deviceName = std::move(value); }
78 inline void SetDeviceName(const char* value) { m_deviceNameHasBeenSet = true; m_deviceName.assign(value); }
79 inline AwsEc2VolumeDetails& WithDeviceName(const Aws::String& value) { SetDeviceName(value); return *this;}
80 inline AwsEc2VolumeDetails& WithDeviceName(Aws::String&& value) { SetDeviceName(std::move(value)); return *this;}
81 inline AwsEc2VolumeDetails& WithDeviceName(const char* value) { SetDeviceName(value); return *this;}
83
85
88 inline bool GetEncrypted() const{ return m_encrypted; }
89 inline bool EncryptedHasBeenSet() const { return m_encryptedHasBeenSet; }
90 inline void SetEncrypted(bool value) { m_encryptedHasBeenSet = true; m_encrypted = value; }
91 inline AwsEc2VolumeDetails& WithEncrypted(bool value) { SetEncrypted(value); return *this;}
93
95
98 inline int GetSize() const{ return m_size; }
99 inline bool SizeHasBeenSet() const { return m_sizeHasBeenSet; }
100 inline void SetSize(int value) { m_sizeHasBeenSet = true; m_size = value; }
101 inline AwsEc2VolumeDetails& WithSize(int value) { SetSize(value); return *this;}
103
105
108 inline const Aws::String& GetSnapshotId() const{ return m_snapshotId; }
109 inline bool SnapshotIdHasBeenSet() const { return m_snapshotIdHasBeenSet; }
110 inline void SetSnapshotId(const Aws::String& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = value; }
111 inline void SetSnapshotId(Aws::String&& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = std::move(value); }
112 inline void SetSnapshotId(const char* value) { m_snapshotIdHasBeenSet = true; m_snapshotId.assign(value); }
113 inline AwsEc2VolumeDetails& WithSnapshotId(const Aws::String& value) { SetSnapshotId(value); return *this;}
114 inline AwsEc2VolumeDetails& WithSnapshotId(Aws::String&& value) { SetSnapshotId(std::move(value)); return *this;}
115 inline AwsEc2VolumeDetails& WithSnapshotId(const char* value) { SetSnapshotId(value); return *this;}
117
119
126 inline const Aws::String& GetStatus() const{ return m_status; }
127 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
128 inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
129 inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
130 inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
131 inline AwsEc2VolumeDetails& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
132 inline AwsEc2VolumeDetails& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
133 inline AwsEc2VolumeDetails& WithStatus(const char* value) { SetStatus(value); return *this;}
135
137
141 inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
142 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
143 inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
144 inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
145 inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
146 inline AwsEc2VolumeDetails& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
147 inline AwsEc2VolumeDetails& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
148 inline AwsEc2VolumeDetails& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
150
152
155 inline const Aws::Vector<AwsEc2VolumeAttachment>& GetAttachments() const{ return m_attachments; }
156 inline bool AttachmentsHasBeenSet() const { return m_attachmentsHasBeenSet; }
157 inline void SetAttachments(const Aws::Vector<AwsEc2VolumeAttachment>& value) { m_attachmentsHasBeenSet = true; m_attachments = value; }
158 inline void SetAttachments(Aws::Vector<AwsEc2VolumeAttachment>&& value) { m_attachmentsHasBeenSet = true; m_attachments = std::move(value); }
161 inline AwsEc2VolumeDetails& AddAttachments(const AwsEc2VolumeAttachment& value) { m_attachmentsHasBeenSet = true; m_attachments.push_back(value); return *this; }
162 inline AwsEc2VolumeDetails& AddAttachments(AwsEc2VolumeAttachment&& value) { m_attachmentsHasBeenSet = true; m_attachments.push_back(std::move(value)); return *this; }
164
166
169 inline const Aws::String& GetVolumeId() const{ return m_volumeId; }
170 inline bool VolumeIdHasBeenSet() const { return m_volumeIdHasBeenSet; }
171 inline void SetVolumeId(const Aws::String& value) { m_volumeIdHasBeenSet = true; m_volumeId = value; }
172 inline void SetVolumeId(Aws::String&& value) { m_volumeIdHasBeenSet = true; m_volumeId = std::move(value); }
173 inline void SetVolumeId(const char* value) { m_volumeIdHasBeenSet = true; m_volumeId.assign(value); }
174 inline AwsEc2VolumeDetails& WithVolumeId(const Aws::String& value) { SetVolumeId(value); return *this;}
175 inline AwsEc2VolumeDetails& WithVolumeId(Aws::String&& value) { SetVolumeId(std::move(value)); return *this;}
176 inline AwsEc2VolumeDetails& WithVolumeId(const char* value) { SetVolumeId(value); return *this;}
178
180
183 inline const Aws::String& GetVolumeType() const{ return m_volumeType; }
184 inline bool VolumeTypeHasBeenSet() const { return m_volumeTypeHasBeenSet; }
185 inline void SetVolumeType(const Aws::String& value) { m_volumeTypeHasBeenSet = true; m_volumeType = value; }
186 inline void SetVolumeType(Aws::String&& value) { m_volumeTypeHasBeenSet = true; m_volumeType = std::move(value); }
187 inline void SetVolumeType(const char* value) { m_volumeTypeHasBeenSet = true; m_volumeType.assign(value); }
188 inline AwsEc2VolumeDetails& WithVolumeType(const Aws::String& value) { SetVolumeType(value); return *this;}
189 inline AwsEc2VolumeDetails& WithVolumeType(Aws::String&& value) { SetVolumeType(std::move(value)); return *this;}
190 inline AwsEc2VolumeDetails& WithVolumeType(const char* value) { SetVolumeType(value); return *this;}
192
194
197 inline const Aws::String& GetVolumeScanStatus() const{ return m_volumeScanStatus; }
198 inline bool VolumeScanStatusHasBeenSet() const { return m_volumeScanStatusHasBeenSet; }
199 inline void SetVolumeScanStatus(const Aws::String& value) { m_volumeScanStatusHasBeenSet = true; m_volumeScanStatus = value; }
200 inline void SetVolumeScanStatus(Aws::String&& value) { m_volumeScanStatusHasBeenSet = true; m_volumeScanStatus = std::move(value); }
201 inline void SetVolumeScanStatus(const char* value) { m_volumeScanStatusHasBeenSet = true; m_volumeScanStatus.assign(value); }
202 inline AwsEc2VolumeDetails& WithVolumeScanStatus(const Aws::String& value) { SetVolumeScanStatus(value); return *this;}
203 inline AwsEc2VolumeDetails& WithVolumeScanStatus(Aws::String&& value) { SetVolumeScanStatus(std::move(value)); return *this;}
204 inline AwsEc2VolumeDetails& WithVolumeScanStatus(const char* value) { SetVolumeScanStatus(value); return *this;}
206 private:
207
208 Aws::String m_createTime;
209 bool m_createTimeHasBeenSet = false;
210
211 Aws::String m_deviceName;
212 bool m_deviceNameHasBeenSet = false;
213
214 bool m_encrypted;
215 bool m_encryptedHasBeenSet = false;
216
217 int m_size;
218 bool m_sizeHasBeenSet = false;
219
220 Aws::String m_snapshotId;
221 bool m_snapshotIdHasBeenSet = false;
222
223 Aws::String m_status;
224 bool m_statusHasBeenSet = false;
225
226 Aws::String m_kmsKeyId;
227 bool m_kmsKeyIdHasBeenSet = false;
228
230 bool m_attachmentsHasBeenSet = false;
231
232 Aws::String m_volumeId;
233 bool m_volumeIdHasBeenSet = false;
234
235 Aws::String m_volumeType;
236 bool m_volumeTypeHasBeenSet = false;
237
238 Aws::String m_volumeScanStatus;
239 bool m_volumeScanStatusHasBeenSet = false;
240 };
241
242} // namespace Model
243} // namespace SecurityHub
244} // namespace Aws
AwsEc2VolumeDetails & WithCreateTime(Aws::String &&value)
AWS_SECURITYHUB_API AwsEc2VolumeDetails(Aws::Utils::Json::JsonView jsonValue)
AwsEc2VolumeDetails & WithVolumeType(const char *value)
AwsEc2VolumeDetails & AddAttachments(AwsEc2VolumeAttachment &&value)
AwsEc2VolumeDetails & WithEncrypted(bool value)
AwsEc2VolumeDetails & WithVolumeId(const char *value)
AwsEc2VolumeDetails & WithKmsKeyId(const Aws::String &value)
AwsEc2VolumeDetails & WithKmsKeyId(const char *value)
AwsEc2VolumeDetails & WithDeviceName(Aws::String &&value)
AwsEc2VolumeDetails & WithStatus(const Aws::String &value)
AwsEc2VolumeDetails & WithKmsKeyId(Aws::String &&value)
AwsEc2VolumeDetails & WithVolumeId(const Aws::String &value)
AwsEc2VolumeDetails & WithDeviceName(const Aws::String &value)
AwsEc2VolumeDetails & WithVolumeScanStatus(const Aws::String &value)
void SetAttachments(Aws::Vector< AwsEc2VolumeAttachment > &&value)
AwsEc2VolumeDetails & WithCreateTime(const char *value)
AwsEc2VolumeDetails & WithAttachments(const Aws::Vector< AwsEc2VolumeAttachment > &value)
AwsEc2VolumeDetails & AddAttachments(const AwsEc2VolumeAttachment &value)
const Aws::Vector< AwsEc2VolumeAttachment > & GetAttachments() const
AwsEc2VolumeDetails & WithCreateTime(const Aws::String &value)
void SetVolumeScanStatus(const Aws::String &value)
AwsEc2VolumeDetails & WithVolumeType(Aws::String &&value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AwsEc2VolumeDetails & WithStatus(Aws::String &&value)
void SetAttachments(const Aws::Vector< AwsEc2VolumeAttachment > &value)
AwsEc2VolumeDetails & WithAttachments(Aws::Vector< AwsEc2VolumeAttachment > &&value)
AWS_SECURITYHUB_API AwsEc2VolumeDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AwsEc2VolumeDetails & WithVolumeId(Aws::String &&value)
AwsEc2VolumeDetails & WithDeviceName(const char *value)
AwsEc2VolumeDetails & WithStatus(const char *value)
AwsEc2VolumeDetails & WithVolumeScanStatus(Aws::String &&value)
AwsEc2VolumeDetails & WithVolumeType(const Aws::String &value)
AwsEc2VolumeDetails & WithVolumeScanStatus(const char *value)
AwsEc2VolumeDetails & WithSnapshotId(const Aws::String &value)
AwsEc2VolumeDetails & WithSnapshotId(Aws::String &&value)
AwsEc2VolumeDetails & WithSnapshotId(const char *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