public static interface Scan.Builder extends SdkPojo, CopyableBuilder<Scan.Builder,Scan>
| Modifier and Type | Method and Description |
|---|---|
Scan.Builder |
accountId(String accountId)
The ID for the account that belongs to the scan.
|
Scan.Builder |
adminDetectorId(String adminDetectorId)
The unique detector ID of the administrator account that the request is associated with.
|
Scan.Builder |
attachedVolumes(Collection<VolumeDetail> attachedVolumes)
List of volumes that were attached to the original instance to be scanned.
|
Scan.Builder |
attachedVolumes(Consumer<VolumeDetail.Builder>... attachedVolumes)
List of volumes that were attached to the original instance to be scanned.
|
Scan.Builder |
attachedVolumes(VolumeDetail... attachedVolumes)
List of volumes that were attached to the original instance to be scanned.
|
Scan.Builder |
detectorId(String detectorId)
The unique ID of the detector that the request is associated with.
|
Scan.Builder |
failureReason(String failureReason)
Represents the reason for FAILED scan status.
|
Scan.Builder |
fileCount(Long fileCount)
Represents the number of files that were scanned.
|
default Scan.Builder |
resourceDetails(Consumer<ResourceDetails.Builder> resourceDetails)
Represents the resources that were scanned in the scan entry.
|
Scan.Builder |
resourceDetails(ResourceDetails resourceDetails)
Represents the resources that were scanned in the scan entry.
|
Scan.Builder |
scanEndTime(Instant scanEndTime)
The timestamp of when the scan was finished.
|
Scan.Builder |
scanId(String scanId)
The unique scan ID associated with a scan entry.
|
default Scan.Builder |
scanResultDetails(Consumer<ScanResultDetails.Builder> scanResultDetails)
Represents the result of the scan.
|
Scan.Builder |
scanResultDetails(ScanResultDetails scanResultDetails)
Represents the result of the scan.
|
Scan.Builder |
scanStartTime(Instant scanStartTime)
The timestamp of when the scan was triggered.
|
Scan.Builder |
scanStatus(ScanStatus scanStatus)
An enum value representing possible scan statuses.
|
Scan.Builder |
scanStatus(String scanStatus)
An enum value representing possible scan statuses.
|
Scan.Builder |
scanType(ScanType scanType)
Specifies the scan type that invoked the malware scan.
|
Scan.Builder |
scanType(String scanType)
Specifies the scan type that invoked the malware scan.
|
Scan.Builder |
totalBytes(Long totalBytes)
Represents total bytes that were scanned.
|
default Scan.Builder |
triggerDetails(Consumer<TriggerDetails.Builder> triggerDetails)
Specifies the reason why the scan was initiated.
|
Scan.Builder |
triggerDetails(TriggerDetails triggerDetails)
Specifies the reason why the scan was initiated.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildScan.Builder detectorId(String detectorId)
The unique ID of the detector that the request is associated with.
detectorId - The unique ID of the detector that the request is associated with.Scan.Builder adminDetectorId(String adminDetectorId)
The unique detector ID of the administrator account that the request is associated with. Note that this value
will be the same as the one used for DetectorId if the account is an administrator.
adminDetectorId - The unique detector ID of the administrator account that the request is associated with. Note that
this value will be the same as the one used for DetectorId if the account is an
administrator.Scan.Builder scanId(String scanId)
The unique scan ID associated with a scan entry.
scanId - The unique scan ID associated with a scan entry.Scan.Builder scanStatus(String scanStatus)
An enum value representing possible scan statuses.
scanStatus - An enum value representing possible scan statuses.ScanStatus,
ScanStatusScan.Builder scanStatus(ScanStatus scanStatus)
An enum value representing possible scan statuses.
scanStatus - An enum value representing possible scan statuses.ScanStatus,
ScanStatusScan.Builder failureReason(String failureReason)
Represents the reason for FAILED scan status.
failureReason - Represents the reason for FAILED scan status.Scan.Builder scanStartTime(Instant scanStartTime)
The timestamp of when the scan was triggered.
scanStartTime - The timestamp of when the scan was triggered.Scan.Builder scanEndTime(Instant scanEndTime)
The timestamp of when the scan was finished.
scanEndTime - The timestamp of when the scan was finished.Scan.Builder triggerDetails(TriggerDetails triggerDetails)
Specifies the reason why the scan was initiated.
triggerDetails - Specifies the reason why the scan was initiated.default Scan.Builder triggerDetails(Consumer<TriggerDetails.Builder> triggerDetails)
Specifies the reason why the scan was initiated.
This is a convenience method that creates an instance of theTriggerDetails.Builder avoiding the need
to create one manually via TriggerDetails.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to triggerDetails(TriggerDetails).
triggerDetails - a consumer that will call methods on TriggerDetails.BuildertriggerDetails(TriggerDetails)Scan.Builder resourceDetails(ResourceDetails resourceDetails)
Represents the resources that were scanned in the scan entry.
resourceDetails - Represents the resources that were scanned in the scan entry.default Scan.Builder resourceDetails(Consumer<ResourceDetails.Builder> resourceDetails)
Represents the resources that were scanned in the scan entry.
This is a convenience method that creates an instance of theResourceDetails.Builder avoiding the
need to create one manually via ResourceDetails.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to resourceDetails(ResourceDetails).
resourceDetails - a consumer that will call methods on ResourceDetails.BuilderresourceDetails(ResourceDetails)Scan.Builder scanResultDetails(ScanResultDetails scanResultDetails)
Represents the result of the scan.
scanResultDetails - Represents the result of the scan.default Scan.Builder scanResultDetails(Consumer<ScanResultDetails.Builder> scanResultDetails)
Represents the result of the scan.
This is a convenience method that creates an instance of theScanResultDetails.Builder avoiding the
need to create one manually via ScanResultDetails.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to scanResultDetails(ScanResultDetails).
scanResultDetails - a consumer that will call methods on ScanResultDetails.BuilderscanResultDetails(ScanResultDetails)Scan.Builder accountId(String accountId)
The ID for the account that belongs to the scan.
accountId - The ID for the account that belongs to the scan.Scan.Builder totalBytes(Long totalBytes)
Represents total bytes that were scanned.
totalBytes - Represents total bytes that were scanned.Scan.Builder fileCount(Long fileCount)
Represents the number of files that were scanned.
fileCount - Represents the number of files that were scanned.Scan.Builder attachedVolumes(Collection<VolumeDetail> attachedVolumes)
List of volumes that were attached to the original instance to be scanned.
attachedVolumes - List of volumes that were attached to the original instance to be scanned.Scan.Builder attachedVolumes(VolumeDetail... attachedVolumes)
List of volumes that were attached to the original instance to be scanned.
attachedVolumes - List of volumes that were attached to the original instance to be scanned.Scan.Builder attachedVolumes(Consumer<VolumeDetail.Builder>... attachedVolumes)
List of volumes that were attached to the original instance to be scanned.
This is a convenience method that creates an instance of theVolumeDetail.Builder avoiding the need to create one
manually via VolumeDetail.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately
and its result is passed to #attachedVolumes(List.
attachedVolumes - a consumer that will call methods on
VolumeDetail.Builder#attachedVolumes(java.util.Collection) Scan.Builder scanType(String scanType)
Specifies the scan type that invoked the malware scan.
Scan.Builder scanType(ScanType scanType)
Specifies the scan type that invoked the malware scan.
Copyright © 2023. All rights reserved.