AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Scan.h
1
6#pragma once
7#include <aws/guardduty/GuardDuty_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/guardduty/model/ScanStatus.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/guardduty/model/TriggerDetails.h>
12#include <aws/guardduty/model/ResourceDetails.h>
13#include <aws/guardduty/model/ScanResultDetails.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15#include <aws/guardduty/model/ScanType.h>
16#include <aws/guardduty/model/VolumeDetail.h>
17#include <utility>
18
19namespace Aws
20{
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26 class JsonView;
27} // namespace Json
28} // namespace Utils
29namespace GuardDuty
30{
31namespace Model
32{
33
39 class Scan
40 {
41 public:
42 AWS_GUARDDUTY_API Scan();
43 AWS_GUARDDUTY_API Scan(Aws::Utils::Json::JsonView jsonValue);
44 AWS_GUARDDUTY_API Scan& operator=(Aws::Utils::Json::JsonView jsonValue);
45 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
52 inline const Aws::String& GetDetectorId() const{ return m_detectorId; }
53 inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; }
54 inline void SetDetectorId(const Aws::String& value) { m_detectorIdHasBeenSet = true; m_detectorId = value; }
55 inline void SetDetectorId(Aws::String&& value) { m_detectorIdHasBeenSet = true; m_detectorId = std::move(value); }
56 inline void SetDetectorId(const char* value) { m_detectorIdHasBeenSet = true; m_detectorId.assign(value); }
57 inline Scan& WithDetectorId(const Aws::String& value) { SetDetectorId(value); return *this;}
58 inline Scan& WithDetectorId(Aws::String&& value) { SetDetectorId(std::move(value)); return *this;}
59 inline Scan& WithDetectorId(const char* value) { SetDetectorId(value); return *this;}
61
63
69 inline const Aws::String& GetAdminDetectorId() const{ return m_adminDetectorId; }
70 inline bool AdminDetectorIdHasBeenSet() const { return m_adminDetectorIdHasBeenSet; }
71 inline void SetAdminDetectorId(const Aws::String& value) { m_adminDetectorIdHasBeenSet = true; m_adminDetectorId = value; }
72 inline void SetAdminDetectorId(Aws::String&& value) { m_adminDetectorIdHasBeenSet = true; m_adminDetectorId = std::move(value); }
73 inline void SetAdminDetectorId(const char* value) { m_adminDetectorIdHasBeenSet = true; m_adminDetectorId.assign(value); }
74 inline Scan& WithAdminDetectorId(const Aws::String& value) { SetAdminDetectorId(value); return *this;}
75 inline Scan& WithAdminDetectorId(Aws::String&& value) { SetAdminDetectorId(std::move(value)); return *this;}
76 inline Scan& WithAdminDetectorId(const char* value) { SetAdminDetectorId(value); return *this;}
78
80
83 inline const Aws::String& GetScanId() const{ return m_scanId; }
84 inline bool ScanIdHasBeenSet() const { return m_scanIdHasBeenSet; }
85 inline void SetScanId(const Aws::String& value) { m_scanIdHasBeenSet = true; m_scanId = value; }
86 inline void SetScanId(Aws::String&& value) { m_scanIdHasBeenSet = true; m_scanId = std::move(value); }
87 inline void SetScanId(const char* value) { m_scanIdHasBeenSet = true; m_scanId.assign(value); }
88 inline Scan& WithScanId(const Aws::String& value) { SetScanId(value); return *this;}
89 inline Scan& WithScanId(Aws::String&& value) { SetScanId(std::move(value)); return *this;}
90 inline Scan& WithScanId(const char* value) { SetScanId(value); return *this;}
92
94
97 inline const ScanStatus& GetScanStatus() const{ return m_scanStatus; }
98 inline bool ScanStatusHasBeenSet() const { return m_scanStatusHasBeenSet; }
99 inline void SetScanStatus(const ScanStatus& value) { m_scanStatusHasBeenSet = true; m_scanStatus = value; }
100 inline void SetScanStatus(ScanStatus&& value) { m_scanStatusHasBeenSet = true; m_scanStatus = std::move(value); }
101 inline Scan& WithScanStatus(const ScanStatus& value) { SetScanStatus(value); return *this;}
102 inline Scan& WithScanStatus(ScanStatus&& value) { SetScanStatus(std::move(value)); return *this;}
104
106
109 inline const Aws::String& GetFailureReason() const{ return m_failureReason; }
110 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
111 inline void SetFailureReason(const Aws::String& value) { m_failureReasonHasBeenSet = true; m_failureReason = value; }
112 inline void SetFailureReason(Aws::String&& value) { m_failureReasonHasBeenSet = true; m_failureReason = std::move(value); }
113 inline void SetFailureReason(const char* value) { m_failureReasonHasBeenSet = true; m_failureReason.assign(value); }
114 inline Scan& WithFailureReason(const Aws::String& value) { SetFailureReason(value); return *this;}
115 inline Scan& WithFailureReason(Aws::String&& value) { SetFailureReason(std::move(value)); return *this;}
116 inline Scan& WithFailureReason(const char* value) { SetFailureReason(value); return *this;}
118
120
123 inline const Aws::Utils::DateTime& GetScanStartTime() const{ return m_scanStartTime; }
124 inline bool ScanStartTimeHasBeenSet() const { return m_scanStartTimeHasBeenSet; }
125 inline void SetScanStartTime(const Aws::Utils::DateTime& value) { m_scanStartTimeHasBeenSet = true; m_scanStartTime = value; }
126 inline void SetScanStartTime(Aws::Utils::DateTime&& value) { m_scanStartTimeHasBeenSet = true; m_scanStartTime = std::move(value); }
127 inline Scan& WithScanStartTime(const Aws::Utils::DateTime& value) { SetScanStartTime(value); return *this;}
128 inline Scan& WithScanStartTime(Aws::Utils::DateTime&& value) { SetScanStartTime(std::move(value)); return *this;}
130
132
135 inline const Aws::Utils::DateTime& GetScanEndTime() const{ return m_scanEndTime; }
136 inline bool ScanEndTimeHasBeenSet() const { return m_scanEndTimeHasBeenSet; }
137 inline void SetScanEndTime(const Aws::Utils::DateTime& value) { m_scanEndTimeHasBeenSet = true; m_scanEndTime = value; }
138 inline void SetScanEndTime(Aws::Utils::DateTime&& value) { m_scanEndTimeHasBeenSet = true; m_scanEndTime = std::move(value); }
139 inline Scan& WithScanEndTime(const Aws::Utils::DateTime& value) { SetScanEndTime(value); return *this;}
140 inline Scan& WithScanEndTime(Aws::Utils::DateTime&& value) { SetScanEndTime(std::move(value)); return *this;}
142
144
147 inline const TriggerDetails& GetTriggerDetails() const{ return m_triggerDetails; }
148 inline bool TriggerDetailsHasBeenSet() const { return m_triggerDetailsHasBeenSet; }
149 inline void SetTriggerDetails(const TriggerDetails& value) { m_triggerDetailsHasBeenSet = true; m_triggerDetails = value; }
150 inline void SetTriggerDetails(TriggerDetails&& value) { m_triggerDetailsHasBeenSet = true; m_triggerDetails = std::move(value); }
151 inline Scan& WithTriggerDetails(const TriggerDetails& value) { SetTriggerDetails(value); return *this;}
152 inline Scan& WithTriggerDetails(TriggerDetails&& value) { SetTriggerDetails(std::move(value)); return *this;}
154
156
159 inline const ResourceDetails& GetResourceDetails() const{ return m_resourceDetails; }
160 inline bool ResourceDetailsHasBeenSet() const { return m_resourceDetailsHasBeenSet; }
161 inline void SetResourceDetails(const ResourceDetails& value) { m_resourceDetailsHasBeenSet = true; m_resourceDetails = value; }
162 inline void SetResourceDetails(ResourceDetails&& value) { m_resourceDetailsHasBeenSet = true; m_resourceDetails = std::move(value); }
163 inline Scan& WithResourceDetails(const ResourceDetails& value) { SetResourceDetails(value); return *this;}
164 inline Scan& WithResourceDetails(ResourceDetails&& value) { SetResourceDetails(std::move(value)); return *this;}
166
168
171 inline const ScanResultDetails& GetScanResultDetails() const{ return m_scanResultDetails; }
172 inline bool ScanResultDetailsHasBeenSet() const { return m_scanResultDetailsHasBeenSet; }
173 inline void SetScanResultDetails(const ScanResultDetails& value) { m_scanResultDetailsHasBeenSet = true; m_scanResultDetails = value; }
174 inline void SetScanResultDetails(ScanResultDetails&& value) { m_scanResultDetailsHasBeenSet = true; m_scanResultDetails = std::move(value); }
175 inline Scan& WithScanResultDetails(const ScanResultDetails& value) { SetScanResultDetails(value); return *this;}
176 inline Scan& WithScanResultDetails(ScanResultDetails&& value) { SetScanResultDetails(std::move(value)); return *this;}
178
180
183 inline const Aws::String& GetAccountId() const{ return m_accountId; }
184 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
185 inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
186 inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
187 inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
188 inline Scan& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
189 inline Scan& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
190 inline Scan& WithAccountId(const char* value) { SetAccountId(value); return *this;}
192
194
197 inline long long GetTotalBytes() const{ return m_totalBytes; }
198 inline bool TotalBytesHasBeenSet() const { return m_totalBytesHasBeenSet; }
199 inline void SetTotalBytes(long long value) { m_totalBytesHasBeenSet = true; m_totalBytes = value; }
200 inline Scan& WithTotalBytes(long long value) { SetTotalBytes(value); return *this;}
202
204
207 inline long long GetFileCount() const{ return m_fileCount; }
208 inline bool FileCountHasBeenSet() const { return m_fileCountHasBeenSet; }
209 inline void SetFileCount(long long value) { m_fileCountHasBeenSet = true; m_fileCount = value; }
210 inline Scan& WithFileCount(long long value) { SetFileCount(value); return *this;}
212
214
218 inline const Aws::Vector<VolumeDetail>& GetAttachedVolumes() const{ return m_attachedVolumes; }
219 inline bool AttachedVolumesHasBeenSet() const { return m_attachedVolumesHasBeenSet; }
220 inline void SetAttachedVolumes(const Aws::Vector<VolumeDetail>& value) { m_attachedVolumesHasBeenSet = true; m_attachedVolumes = value; }
221 inline void SetAttachedVolumes(Aws::Vector<VolumeDetail>&& value) { m_attachedVolumesHasBeenSet = true; m_attachedVolumes = std::move(value); }
222 inline Scan& WithAttachedVolumes(const Aws::Vector<VolumeDetail>& value) { SetAttachedVolumes(value); return *this;}
223 inline Scan& WithAttachedVolumes(Aws::Vector<VolumeDetail>&& value) { SetAttachedVolumes(std::move(value)); return *this;}
224 inline Scan& AddAttachedVolumes(const VolumeDetail& value) { m_attachedVolumesHasBeenSet = true; m_attachedVolumes.push_back(value); return *this; }
225 inline Scan& AddAttachedVolumes(VolumeDetail&& value) { m_attachedVolumesHasBeenSet = true; m_attachedVolumes.push_back(std::move(value)); return *this; }
227
229
232 inline const ScanType& GetScanType() const{ return m_scanType; }
233 inline bool ScanTypeHasBeenSet() const { return m_scanTypeHasBeenSet; }
234 inline void SetScanType(const ScanType& value) { m_scanTypeHasBeenSet = true; m_scanType = value; }
235 inline void SetScanType(ScanType&& value) { m_scanTypeHasBeenSet = true; m_scanType = std::move(value); }
236 inline Scan& WithScanType(const ScanType& value) { SetScanType(value); return *this;}
237 inline Scan& WithScanType(ScanType&& value) { SetScanType(std::move(value)); return *this;}
239 private:
240
241 Aws::String m_detectorId;
242 bool m_detectorIdHasBeenSet = false;
243
244 Aws::String m_adminDetectorId;
245 bool m_adminDetectorIdHasBeenSet = false;
246
247 Aws::String m_scanId;
248 bool m_scanIdHasBeenSet = false;
249
250 ScanStatus m_scanStatus;
251 bool m_scanStatusHasBeenSet = false;
252
253 Aws::String m_failureReason;
254 bool m_failureReasonHasBeenSet = false;
255
256 Aws::Utils::DateTime m_scanStartTime;
257 bool m_scanStartTimeHasBeenSet = false;
258
259 Aws::Utils::DateTime m_scanEndTime;
260 bool m_scanEndTimeHasBeenSet = false;
261
262 TriggerDetails m_triggerDetails;
263 bool m_triggerDetailsHasBeenSet = false;
264
265 ResourceDetails m_resourceDetails;
266 bool m_resourceDetailsHasBeenSet = false;
267
268 ScanResultDetails m_scanResultDetails;
269 bool m_scanResultDetailsHasBeenSet = false;
270
271 Aws::String m_accountId;
272 bool m_accountIdHasBeenSet = false;
273
274 long long m_totalBytes;
275 bool m_totalBytesHasBeenSet = false;
276
277 long long m_fileCount;
278 bool m_fileCountHasBeenSet = false;
279
280 Aws::Vector<VolumeDetail> m_attachedVolumes;
281 bool m_attachedVolumesHasBeenSet = false;
282
283 ScanType m_scanType;
284 bool m_scanTypeHasBeenSet = false;
285 };
286
287} // namespace Model
288} // namespace GuardDuty
289} // namespace Aws
Scan & WithAccountId(const Aws::String &value)
Definition Scan.h:188
bool DetectorIdHasBeenSet() const
Definition Scan.h:53
Scan & WithAdminDetectorId(const Aws::String &value)
Definition Scan.h:74
Scan & WithDetectorId(const Aws::String &value)
Definition Scan.h:57
void SetAccountId(const Aws::String &value)
Definition Scan.h:185
Scan & WithAttachedVolumes(const Aws::Vector< VolumeDetail > &value)
Definition Scan.h:222
bool ScanResultDetailsHasBeenSet() const
Definition Scan.h:172
bool TriggerDetailsHasBeenSet() const
Definition Scan.h:148
Scan & WithAdminDetectorId(const char *value)
Definition Scan.h:76
Scan & WithScanEndTime(const Aws::Utils::DateTime &value)
Definition Scan.h:139
Scan & AddAttachedVolumes(VolumeDetail &&value)
Definition Scan.h:225
void SetAdminDetectorId(const Aws::String &value)
Definition Scan.h:71
Scan & WithScanResultDetails(const ScanResultDetails &value)
Definition Scan.h:175
const Aws::Vector< VolumeDetail > & GetAttachedVolumes() const
Definition Scan.h:218
Scan & WithDetectorId(const char *value)
Definition Scan.h:59
void SetTriggerDetails(const TriggerDetails &value)
Definition Scan.h:149
void SetResourceDetails(ResourceDetails &&value)
Definition Scan.h:162
Scan & WithScanEndTime(Aws::Utils::DateTime &&value)
Definition Scan.h:140
void SetScanId(const Aws::String &value)
Definition Scan.h:85
Scan & WithScanId(const char *value)
Definition Scan.h:90
void SetFailureReason(const char *value)
Definition Scan.h:113
bool AdminDetectorIdHasBeenSet() const
Definition Scan.h:70
Scan & WithScanType(ScanType &&value)
Definition Scan.h:237
Scan & WithDetectorId(Aws::String &&value)
Definition Scan.h:58
void SetScanStatus(const ScanStatus &value)
Definition Scan.h:99
void SetScanStartTime(Aws::Utils::DateTime &&value)
Definition Scan.h:126
bool ScanEndTimeHasBeenSet() const
Definition Scan.h:136
Scan & WithScanType(const ScanType &value)
Definition Scan.h:236
bool ResourceDetailsHasBeenSet() const
Definition Scan.h:160
Scan & AddAttachedVolumes(const VolumeDetail &value)
Definition Scan.h:224
Scan & WithAttachedVolumes(Aws::Vector< VolumeDetail > &&value)
Definition Scan.h:223
const Aws::String & GetDetectorId() const
Definition Scan.h:52
Scan & WithScanId(Aws::String &&value)
Definition Scan.h:89
void SetScanResultDetails(const ScanResultDetails &value)
Definition Scan.h:173
void SetDetectorId(const Aws::String &value)
Definition Scan.h:54
void SetResourceDetails(const ResourceDetails &value)
Definition Scan.h:161
Scan & WithTriggerDetails(TriggerDetails &&value)
Definition Scan.h:152
AWS_GUARDDUTY_API Scan & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDetectorId(Aws::String &&value)
Definition Scan.h:55
bool ScanStartTimeHasBeenSet() const
Definition Scan.h:124
const Aws::Utils::DateTime & GetScanEndTime() const
Definition Scan.h:135
void SetTotalBytes(long long value)
Definition Scan.h:199
bool FileCountHasBeenSet() const
Definition Scan.h:208
long long GetFileCount() const
Definition Scan.h:207
bool AccountIdHasBeenSet() const
Definition Scan.h:184
const Aws::String & GetScanId() const
Definition Scan.h:83
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
Scan & WithTriggerDetails(const TriggerDetails &value)
Definition Scan.h:151
Scan & WithAccountId(Aws::String &&value)
Definition Scan.h:189
bool ScanIdHasBeenSet() const
Definition Scan.h:84
bool ScanStatusHasBeenSet() const
Definition Scan.h:98
void SetFileCount(long long value)
Definition Scan.h:209
void SetScanId(Aws::String &&value)
Definition Scan.h:86
long long GetTotalBytes() const
Definition Scan.h:197
Scan & WithScanResultDetails(ScanResultDetails &&value)
Definition Scan.h:176
void SetScanStartTime(const Aws::Utils::DateTime &value)
Definition Scan.h:125
bool TotalBytesHasBeenSet() const
Definition Scan.h:198
const Aws::Utils::DateTime & GetScanStartTime() const
Definition Scan.h:123
const Aws::String & GetFailureReason() const
Definition Scan.h:109
bool FailureReasonHasBeenSet() const
Definition Scan.h:110
void SetAdminDetectorId(Aws::String &&value)
Definition Scan.h:72
const ScanResultDetails & GetScanResultDetails() const
Definition Scan.h:171
Scan & WithFailureReason(const Aws::String &value)
Definition Scan.h:114
Scan & WithTotalBytes(long long value)
Definition Scan.h:200
const ScanType & GetScanType() const
Definition Scan.h:232
AWS_GUARDDUTY_API Scan()
Scan & WithResourceDetails(ResourceDetails &&value)
Definition Scan.h:164
void SetFailureReason(const Aws::String &value)
Definition Scan.h:111
void SetFailureReason(Aws::String &&value)
Definition Scan.h:112
Scan & WithFailureReason(Aws::String &&value)
Definition Scan.h:115
Scan & WithAccountId(const char *value)
Definition Scan.h:190
Scan & WithScanStartTime(Aws::Utils::DateTime &&value)
Definition Scan.h:128
Scan & WithScanStartTime(const Aws::Utils::DateTime &value)
Definition Scan.h:127
void SetAccountId(Aws::String &&value)
Definition Scan.h:186
void SetScanType(const ScanType &value)
Definition Scan.h:234
Scan & WithScanStatus(ScanStatus &&value)
Definition Scan.h:102
Scan & WithAdminDetectorId(Aws::String &&value)
Definition Scan.h:75
const TriggerDetails & GetTriggerDetails() const
Definition Scan.h:147
void SetAccountId(const char *value)
Definition Scan.h:187
Scan & WithFailureReason(const char *value)
Definition Scan.h:116
void SetAttachedVolumes(const Aws::Vector< VolumeDetail > &value)
Definition Scan.h:220
Scan & WithFileCount(long long value)
Definition Scan.h:210
void SetScanType(ScanType &&value)
Definition Scan.h:235
void SetTriggerDetails(TriggerDetails &&value)
Definition Scan.h:150
bool AttachedVolumesHasBeenSet() const
Definition Scan.h:219
const ResourceDetails & GetResourceDetails() const
Definition Scan.h:159
bool ScanTypeHasBeenSet() const
Definition Scan.h:233
Scan & WithScanStatus(const ScanStatus &value)
Definition Scan.h:101
Scan & WithScanId(const Aws::String &value)
Definition Scan.h:88
void SetAdminDetectorId(const char *value)
Definition Scan.h:73
const Aws::String & GetAccountId() const
Definition Scan.h:183
void SetScanEndTime(const Aws::Utils::DateTime &value)
Definition Scan.h:137
Scan & WithResourceDetails(const ResourceDetails &value)
Definition Scan.h:163
const Aws::String & GetAdminDetectorId() const
Definition Scan.h:69
void SetScanStatus(ScanStatus &&value)
Definition Scan.h:100
void SetAttachedVolumes(Aws::Vector< VolumeDetail > &&value)
Definition Scan.h:221
void SetScanResultDetails(ScanResultDetails &&value)
Definition Scan.h:174
void SetScanEndTime(Aws::Utils::DateTime &&value)
Definition Scan.h:138
const ScanStatus & GetScanStatus() const
Definition Scan.h:97
AWS_GUARDDUTY_API Scan(Aws::Utils::Json::JsonView jsonValue)
void SetDetectorId(const char *value)
Definition Scan.h:56
void SetScanId(const char *value)
Definition Scan.h:87
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue