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>
43 AWS_GUARDDUTY_API
Scan() =
default;
59 template<
typename DetectorIdT = Aws::String>
60 void SetDetectorId(DetectorIdT&& value) { m_detectorIdHasBeenSet =
true; m_detectorId = std::forward<DetectorIdT>(value); }
61 template<
typename DetectorIdT = Aws::String>
77 template<
typename AdminDetectorIdT = Aws::String>
78 void SetAdminDetectorId(AdminDetectorIdT&& value) { m_adminDetectorIdHasBeenSet =
true; m_adminDetectorId = std::forward<AdminDetectorIdT>(value); }
79 template<
typename AdminDetectorIdT = Aws::String>
89 template<
typename ScanIdT = Aws::String>
90 void SetScanId(ScanIdT&& value) { m_scanIdHasBeenSet =
true; m_scanId = std::forward<ScanIdT>(value); }
91 template<
typename ScanIdT = Aws::String>
111 template<
typename FailureReasonT = Aws::String>
112 void SetFailureReason(FailureReasonT&& value) { m_failureReasonHasBeenSet =
true; m_failureReason = std::forward<FailureReasonT>(value); }
113 template<
typename FailureReasonT = Aws::String>
123 template<
typename ScanStartTimeT = Aws::Utils::DateTime>
124 void SetScanStartTime(ScanStartTimeT&& value) { m_scanStartTimeHasBeenSet =
true; m_scanStartTime = std::forward<ScanStartTimeT>(value); }
125 template<
typename ScanStartTimeT = Aws::Utils::DateTime>
135 template<
typename ScanEndTimeT = Aws::Utils::DateTime>
136 void SetScanEndTime(ScanEndTimeT&& value) { m_scanEndTimeHasBeenSet =
true; m_scanEndTime = std::forward<ScanEndTimeT>(value); }
137 template<
typename ScanEndTimeT = Aws::Utils::DateTime>
147 template<
typename TriggerDetailsT = TriggerDetails>
148 void SetTriggerDetails(TriggerDetailsT&& value) { m_triggerDetailsHasBeenSet =
true; m_triggerDetails = std::forward<TriggerDetailsT>(value); }
149 template<
typename TriggerDetailsT = TriggerDetails>
159 template<
typename ResourceDetailsT = ResourceDetails>
160 void SetResourceDetails(ResourceDetailsT&& value) { m_resourceDetailsHasBeenSet =
true; m_resourceDetails = std::forward<ResourceDetailsT>(value); }
161 template<
typename ResourceDetailsT = ResourceDetails>
171 template<
typename ScanResultDetailsT = ScanResultDetails>
172 void SetScanResultDetails(ScanResultDetailsT&& value) { m_scanResultDetailsHasBeenSet =
true; m_scanResultDetails = std::forward<ScanResultDetailsT>(value); }
173 template<
typename ScanResultDetailsT = ScanResultDetails>
183 template<
typename AccountIdT = Aws::String>
184 void SetAccountId(AccountIdT&& value) { m_accountIdHasBeenSet =
true; m_accountId = std::forward<AccountIdT>(value); }
185 template<
typename AccountIdT = Aws::String>
195 inline void SetTotalBytes(
long long value) { m_totalBytesHasBeenSet =
true; m_totalBytes = value; }
205 inline void SetFileCount(
long long value) { m_fileCountHasBeenSet =
true; m_fileCount = value; }
216 template<
typename AttachedVolumesT = Aws::Vector<VolumeDetail>>
217 void SetAttachedVolumes(AttachedVolumesT&& value) { m_attachedVolumesHasBeenSet =
true; m_attachedVolumes = std::forward<AttachedVolumesT>(value); }
218 template<
typename AttachedVolumesT = Aws::Vector<VolumeDetail>>
220 template<
typename AttachedVolumesT = VolumeDetail>
221 Scan&
AddAttachedVolumes(AttachedVolumesT&& value) { m_attachedVolumesHasBeenSet =
true; m_attachedVolumes.emplace_back(std::forward<AttachedVolumesT>(value));
return *
this; }
236 bool m_detectorIdHasBeenSet =
false;
239 bool m_adminDetectorIdHasBeenSet =
false;
242 bool m_scanIdHasBeenSet =
false;
245 bool m_scanStatusHasBeenSet =
false;
248 bool m_failureReasonHasBeenSet =
false;
251 bool m_scanStartTimeHasBeenSet =
false;
254 bool m_scanEndTimeHasBeenSet =
false;
256 TriggerDetails m_triggerDetails;
257 bool m_triggerDetailsHasBeenSet =
false;
259 ResourceDetails m_resourceDetails;
260 bool m_resourceDetailsHasBeenSet =
false;
262 ScanResultDetails m_scanResultDetails;
263 bool m_scanResultDetailsHasBeenSet =
false;
266 bool m_accountIdHasBeenSet =
false;
268 long long m_totalBytes{0};
269 bool m_totalBytesHasBeenSet =
false;
271 long long m_fileCount{0};
272 bool m_fileCountHasBeenSet =
false;
275 bool m_attachedVolumesHasBeenSet =
false;
278 bool m_scanTypeHasBeenSet =
false;
bool DetectorIdHasBeenSet() const
bool ScanResultDetailsHasBeenSet() const
bool TriggerDetailsHasBeenSet() const
Scan & WithScanEndTime(ScanEndTimeT &&value)
const Aws::Vector< VolumeDetail > & GetAttachedVolumes() const
Scan & WithFailureReason(FailureReasonT &&value)
void SetFailureReason(FailureReasonT &&value)
bool AdminDetectorIdHasBeenSet() const
Scan & WithScanType(ScanType value)
bool ScanEndTimeHasBeenSet() const
bool ResourceDetailsHasBeenSet() const
Scan & AddAttachedVolumes(AttachedVolumesT &&value)
void SetScanStatus(ScanStatus value)
const Aws::String & GetDetectorId() const
void SetResourceDetails(ResourceDetailsT &&value)
void SetScanId(ScanIdT &&value)
ScanStatus GetScanStatus() const
AWS_GUARDDUTY_API Scan & operator=(Aws::Utils::Json::JsonView jsonValue)
Scan & WithScanStatus(ScanStatus value)
bool ScanStartTimeHasBeenSet() const
const Aws::Utils::DateTime & GetScanEndTime() const
Scan & WithResourceDetails(ResourceDetailsT &&value)
void SetTotalBytes(long long value)
bool FileCountHasBeenSet() const
long long GetFileCount() const
bool AccountIdHasBeenSet() const
const Aws::String & GetScanId() const
Scan & WithAccountId(AccountIdT &&value)
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetScanType(ScanType value)
bool ScanIdHasBeenSet() const
bool ScanStatusHasBeenSet() const
void SetFileCount(long long value)
long long GetTotalBytes() const
void SetAttachedVolumes(AttachedVolumesT &&value)
ScanType GetScanType() const
Scan & WithAttachedVolumes(AttachedVolumesT &&value)
bool TotalBytesHasBeenSet() const
const Aws::Utils::DateTime & GetScanStartTime() const
const Aws::String & GetFailureReason() const
bool FailureReasonHasBeenSet() const
AWS_GUARDDUTY_API Scan()=default
const ScanResultDetails & GetScanResultDetails() const
void SetScanEndTime(ScanEndTimeT &&value)
Scan & WithTotalBytes(long long value)
Scan & WithAdminDetectorId(AdminDetectorIdT &&value)
Scan & WithScanId(ScanIdT &&value)
Scan & WithTriggerDetails(TriggerDetailsT &&value)
const TriggerDetails & GetTriggerDetails() const
Scan & WithFileCount(long long value)
Scan & WithScanStartTime(ScanStartTimeT &&value)
void SetDetectorId(DetectorIdT &&value)
bool AttachedVolumesHasBeenSet() const
void SetTriggerDetails(TriggerDetailsT &&value)
const ResourceDetails & GetResourceDetails() const
void SetAccountId(AccountIdT &&value)
bool ScanTypeHasBeenSet() const
void SetScanResultDetails(ScanResultDetailsT &&value)
void SetScanStartTime(ScanStartTimeT &&value)
const Aws::String & GetAccountId() const
const Aws::String & GetAdminDetectorId() const
Scan & WithScanResultDetails(ScanResultDetailsT &&value)
void SetAdminDetectorId(AdminDetectorIdT &&value)
AWS_GUARDDUTY_API Scan(Aws::Utils::Json::JsonView jsonValue)
Scan & WithDetectorId(DetectorIdT &&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