AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
37 AWS_SECURITYHUB_API AwsEc2VolumeDetails(Aws::Utils::Json::JsonView jsonValue);
39 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
48 inline const Aws::String& GetCreateTime() const { return m_createTime; }
49 inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; }
50 template<typename CreateTimeT = Aws::String>
51 void SetCreateTime(CreateTimeT&& value) { m_createTimeHasBeenSet = true; m_createTime = std::forward<CreateTimeT>(value); }
52 template<typename CreateTimeT = Aws::String>
53 AwsEc2VolumeDetails& WithCreateTime(CreateTimeT&& value) { SetCreateTime(std::forward<CreateTimeT>(value)); return *this;}
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) { m_deviceNameHasBeenSet = true; m_deviceName = std::forward<DeviceNameT>(value); }
64 template<typename DeviceNameT = Aws::String>
65 AwsEc2VolumeDetails& WithDeviceName(DeviceNameT&& value) { SetDeviceName(std::forward<DeviceNameT>(value)); return *this;}
67
69
72 inline bool GetEncrypted() const { return m_encrypted; }
73 inline bool EncryptedHasBeenSet() const { return m_encryptedHasBeenSet; }
74 inline void SetEncrypted(bool value) { m_encryptedHasBeenSet = true; m_encrypted = value; }
75 inline AwsEc2VolumeDetails& WithEncrypted(bool value) { SetEncrypted(value); return *this;}
77
79
82 inline int GetSize() const { return m_size; }
83 inline bool SizeHasBeenSet() const { return m_sizeHasBeenSet; }
84 inline void SetSize(int value) { m_sizeHasBeenSet = true; m_size = value; }
85 inline AwsEc2VolumeDetails& WithSize(int value) { SetSize(value); return *this;}
87
89
92 inline const Aws::String& GetSnapshotId() const { return m_snapshotId; }
93 inline bool SnapshotIdHasBeenSet() const { return m_snapshotIdHasBeenSet; }
94 template<typename SnapshotIdT = Aws::String>
95 void SetSnapshotId(SnapshotIdT&& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = std::forward<SnapshotIdT>(value); }
96 template<typename SnapshotIdT = Aws::String>
97 AwsEc2VolumeDetails& WithSnapshotId(SnapshotIdT&& value) { SetSnapshotId(std::forward<SnapshotIdT>(value)); return *this;}
99
101
108 inline const Aws::String& GetStatus() const { return m_status; }
109 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
110 template<typename StatusT = Aws::String>
111 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
112 template<typename StatusT = Aws::String>
113 AwsEc2VolumeDetails& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
115
117
121 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
122 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
123 template<typename KmsKeyIdT = Aws::String>
124 void SetKmsKeyId(KmsKeyIdT&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::forward<KmsKeyIdT>(value); }
125 template<typename KmsKeyIdT = Aws::String>
126 AwsEc2VolumeDetails& WithKmsKeyId(KmsKeyIdT&& value) { SetKmsKeyId(std::forward<KmsKeyIdT>(value)); return *this;}
128
130
133 inline const Aws::Vector<AwsEc2VolumeAttachment>& GetAttachments() const { return m_attachments; }
134 inline bool AttachmentsHasBeenSet() const { return m_attachmentsHasBeenSet; }
135 template<typename AttachmentsT = Aws::Vector<AwsEc2VolumeAttachment>>
136 void SetAttachments(AttachmentsT&& value) { m_attachmentsHasBeenSet = true; m_attachments = std::forward<AttachmentsT>(value); }
137 template<typename AttachmentsT = Aws::Vector<AwsEc2VolumeAttachment>>
138 AwsEc2VolumeDetails& WithAttachments(AttachmentsT&& value) { SetAttachments(std::forward<AttachmentsT>(value)); return *this;}
139 template<typename AttachmentsT = AwsEc2VolumeAttachment>
140 AwsEc2VolumeDetails& AddAttachments(AttachmentsT&& value) { m_attachmentsHasBeenSet = true; m_attachments.emplace_back(std::forward<AttachmentsT>(value)); return *this; }
142
144
147 inline const Aws::String& GetVolumeId() const { return m_volumeId; }
148 inline bool VolumeIdHasBeenSet() const { return m_volumeIdHasBeenSet; }
149 template<typename VolumeIdT = Aws::String>
150 void SetVolumeId(VolumeIdT&& value) { m_volumeIdHasBeenSet = true; m_volumeId = std::forward<VolumeIdT>(value); }
151 template<typename VolumeIdT = Aws::String>
152 AwsEc2VolumeDetails& WithVolumeId(VolumeIdT&& value) { SetVolumeId(std::forward<VolumeIdT>(value)); return *this;}
154
156
159 inline const Aws::String& GetVolumeType() const { return m_volumeType; }
160 inline bool VolumeTypeHasBeenSet() const { return m_volumeTypeHasBeenSet; }
161 template<typename VolumeTypeT = Aws::String>
162 void SetVolumeType(VolumeTypeT&& value) { m_volumeTypeHasBeenSet = true; m_volumeType = std::forward<VolumeTypeT>(value); }
163 template<typename VolumeTypeT = Aws::String>
164 AwsEc2VolumeDetails& WithVolumeType(VolumeTypeT&& value) { SetVolumeType(std::forward<VolumeTypeT>(value)); return *this;}
166
168
171 inline const Aws::String& GetVolumeScanStatus() const { return m_volumeScanStatus; }
172 inline bool VolumeScanStatusHasBeenSet() const { return m_volumeScanStatusHasBeenSet; }
173 template<typename VolumeScanStatusT = Aws::String>
174 void SetVolumeScanStatus(VolumeScanStatusT&& value) { m_volumeScanStatusHasBeenSet = true; m_volumeScanStatus = std::forward<VolumeScanStatusT>(value); }
175 template<typename VolumeScanStatusT = Aws::String>
176 AwsEc2VolumeDetails& WithVolumeScanStatus(VolumeScanStatusT&& value) { SetVolumeScanStatus(std::forward<VolumeScanStatusT>(value)); return *this;}
178 private:
179
180 Aws::String m_createTime;
181 bool m_createTimeHasBeenSet = false;
182
183 Aws::String m_deviceName;
184 bool m_deviceNameHasBeenSet = false;
185
186 bool m_encrypted{false};
187 bool m_encryptedHasBeenSet = false;
188
189 int m_size{0};
190 bool m_sizeHasBeenSet = false;
191
192 Aws::String m_snapshotId;
193 bool m_snapshotIdHasBeenSet = false;
194
195 Aws::String m_status;
196 bool m_statusHasBeenSet = false;
197
198 Aws::String m_kmsKeyId;
199 bool m_kmsKeyIdHasBeenSet = false;
200
202 bool m_attachmentsHasBeenSet = false;
203
204 Aws::String m_volumeId;
205 bool m_volumeIdHasBeenSet = false;
206
207 Aws::String m_volumeType;
208 bool m_volumeTypeHasBeenSet = false;
209
210 Aws::String m_volumeScanStatus;
211 bool m_volumeScanStatusHasBeenSet = false;
212 };
213
214} // namespace Model
215} // namespace SecurityHub
216} // 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 & WithSize(int 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