Interface Scan.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Scan.Builder,
,Scan> SdkBuilder<Scan.Builder,
,Scan> SdkPojo
- Enclosing class:
Scan
-
Method Summary
Modifier and TypeMethodDescriptionThe ID for the account that belongs to the scan.adminDetectorId
(String adminDetectorId) The unique detector ID of the administrator account that the request is associated with.attachedVolumes
(Collection<VolumeDetail> attachedVolumes) List of volumes that were attached to the original instance to be scanned.attachedVolumes
(Consumer<VolumeDetail.Builder>... attachedVolumes) List of volumes that were attached to the original instance to be scanned.attachedVolumes
(VolumeDetail... attachedVolumes) List of volumes that were attached to the original instance to be scanned.detectorId
(String detectorId) The unique ID of the detector that is associated with the request.failureReason
(String failureReason) Represents the reason forFAILED
scan status.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.resourceDetails
(ResourceDetails resourceDetails) Represents the resources that were scanned in the scan entry.scanEndTime
(Instant scanEndTime) The timestamp of when the scan was finished.The unique scan ID associated with a scan entry.default Scan.Builder
scanResultDetails
(Consumer<ScanResultDetails.Builder> scanResultDetails) Represents the result of the scan.scanResultDetails
(ScanResultDetails scanResultDetails) Represents the result of the scan.scanStartTime
(Instant scanStartTime) The timestamp of when the scan was triggered.scanStatus
(String scanStatus) An enum value representing possible scan statuses.scanStatus
(ScanStatus scanStatus) An enum value representing possible scan statuses.Specifies the scan type that invoked the malware scan.Specifies the scan type that invoked the malware scan.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.triggerDetails
(TriggerDetails triggerDetails) Specifies the reason why the scan was initiated.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
detectorId
The unique ID of the detector that is associated with the request.
To find the
detectorId
in the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API.- Parameters:
detectorId
- The unique ID of the detector that is associated with the request.To find the
detectorId
in the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
adminDetectorId
The unique detector ID of the administrator account that the request is associated with. If the account is an administrator, the
AdminDetectorId
will be the same as the one used forDetectorId
.To find the
detectorId
in the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API.- Parameters:
adminDetectorId
- The unique detector ID of the administrator account that the request is associated with. If the account is an administrator, theAdminDetectorId
will be the same as the one used forDetectorId
.To find the
detectorId
in the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scanId
The unique scan ID associated with a scan entry.
- Parameters:
scanId
- The unique scan ID associated with a scan entry.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scanStatus
An enum value representing possible scan statuses.
- Parameters:
scanStatus
- An enum value representing possible scan statuses.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
scanStatus
An enum value representing possible scan statuses.
- Parameters:
scanStatus
- An enum value representing possible scan statuses.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
failureReason
Represents the reason for
FAILED
scan status.- Parameters:
failureReason
- Represents the reason forFAILED
scan status.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scanStartTime
The timestamp of when the scan was triggered.
- Parameters:
scanStartTime
- The timestamp of when the scan was triggered.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scanEndTime
The timestamp of when the scan was finished.
- Parameters:
scanEndTime
- The timestamp of when the scan was finished.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
triggerDetails
Specifies the reason why the scan was initiated.
- Parameters:
triggerDetails
- Specifies the reason why the scan was initiated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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 viaTriggerDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totriggerDetails(TriggerDetails)
.- Parameters:
triggerDetails
- a consumer that will call methods onTriggerDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
resourceDetails
Represents the resources that were scanned in the scan entry.
- Parameters:
resourceDetails
- Represents the resources that were scanned in the scan entry.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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 viaResourceDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toresourceDetails(ResourceDetails)
.- Parameters:
resourceDetails
- a consumer that will call methods onResourceDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
scanResultDetails
Represents the result of the scan.
- Parameters:
scanResultDetails
- Represents the result of the scan.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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 viaScanResultDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toscanResultDetails(ScanResultDetails)
.- Parameters:
scanResultDetails
- a consumer that will call methods onScanResultDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
accountId
The ID for the account that belongs to the scan.
- Parameters:
accountId
- The ID for the account that belongs to the scan.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
totalBytes
Represents total bytes that were scanned.
- Parameters:
totalBytes
- Represents total bytes that were scanned.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fileCount
Represents the number of files that were scanned.
- Parameters:
fileCount
- Represents the number of files that were scanned.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
attachedVolumes
List of volumes that were attached to the original instance to be scanned.
- Parameters:
attachedVolumes
- List of volumes that were attached to the original instance to be scanned.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
attachedVolumes
List of volumes that were attached to the original instance to be scanned.
- Parameters:
attachedVolumes
- List of volumes that were attached to the original instance to be scanned.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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 viaVolumeDetail.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toattachedVolumes(List<VolumeDetail>)
.- Parameters:
attachedVolumes
- a consumer that will call methods onVolumeDetail.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
scanType
Specifies the scan type that invoked the malware scan.
- Parameters:
scanType
- Specifies the scan type that invoked the malware scan.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
scanType
Specifies the scan type that invoked the malware scan.
- Parameters:
scanType
- Specifies the scan type that invoked the malware scan.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-