Interface Scan.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Scan.Builder,Scan>,SdkBuilder<Scan.Builder,Scan>,SdkPojo
- Enclosing class:
- Scan
public static interface Scan.Builder extends SdkPojo, CopyableBuilder<Scan.Builder,Scan>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Scan.BuilderaccountId(String accountId)The ID for the account that belongs to the scan.Scan.BuilderadminDetectorId(String adminDetectorId)The unique detector ID of the administrator account that the request is associated with.Scan.BuilderattachedVolumes(Collection<VolumeDetail> attachedVolumes)List of volumes that were attached to the original instance to be scanned.Scan.BuilderattachedVolumes(Consumer<VolumeDetail.Builder>... attachedVolumes)List of volumes that were attached to the original instance to be scanned.Scan.BuilderattachedVolumes(VolumeDetail... attachedVolumes)List of volumes that were attached to the original instance to be scanned.Scan.BuilderdetectorId(String detectorId)The unique ID of the detector that the request is associated with.Scan.BuilderfailureReason(String failureReason)Represents the reason for FAILED scan status.Scan.BuilderfileCount(Long fileCount)Represents the number of files that were scanned.default Scan.BuilderresourceDetails(Consumer<ResourceDetails.Builder> resourceDetails)Represents the resources that were scanned in the scan entry.Scan.BuilderresourceDetails(ResourceDetails resourceDetails)Represents the resources that were scanned in the scan entry.Scan.BuilderscanEndTime(Instant scanEndTime)The timestamp of when the scan was finished.Scan.BuilderscanId(String scanId)The unique scan ID associated with a scan entry.default Scan.BuilderscanResultDetails(Consumer<ScanResultDetails.Builder> scanResultDetails)Represents the result of the scan.Scan.BuilderscanResultDetails(ScanResultDetails scanResultDetails)Represents the result of the scan.Scan.BuilderscanStartTime(Instant scanStartTime)The timestamp of when the scan was triggered.Scan.BuilderscanStatus(String scanStatus)An enum value representing possible scan statuses.Scan.BuilderscanStatus(ScanStatus scanStatus)An enum value representing possible scan statuses.Scan.BuilderscanType(String scanType)Specifies the scan type that invoked the malware scan.Scan.BuilderscanType(ScanType scanType)Specifies the scan type that invoked the malware scan.Scan.BuildertotalBytes(Long totalBytes)Represents total bytes that were scanned.default Scan.BuildertriggerDetails(Consumer<TriggerDetails.Builder> triggerDetails)Specifies the reason why the scan was initiated.Scan.BuildertriggerDetails(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, sdkFields
-
-
-
-
Method Detail
-
detectorId
Scan.Builder detectorId(String detectorId)
The unique ID of the detector that the request is associated with.
- Parameters:
detectorId- The unique ID of the detector that the request is associated with.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
adminDetectorId
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
DetectorIdif the account is an administrator.- Parameters:
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 forDetectorIdif the account is an administrator.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scanId
Scan.Builder scanId(String 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
Scan.Builder scanStatus(String 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,ScanStatus
-
scanStatus
Scan.Builder scanStatus(ScanStatus 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,ScanStatus
-
failureReason
Scan.Builder failureReason(String failureReason)
Represents the reason for FAILED scan status.
- Parameters:
failureReason- Represents the reason for FAILED scan status.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scanStartTime
Scan.Builder scanStartTime(Instant 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
Scan.Builder scanEndTime(Instant 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
Scan.Builder triggerDetails(TriggerDetails 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
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.Builderavoiding the need to create one manually viaTriggerDetails.builder().When the
Consumercompletes,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:
triggerDetails(TriggerDetails)
-
resourceDetails
Scan.Builder resourceDetails(ResourceDetails 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
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.Builderavoiding the need to create one manually viaResourceDetails.builder().When the
Consumercompletes,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:
resourceDetails(ResourceDetails)
-
scanResultDetails
Scan.Builder scanResultDetails(ScanResultDetails 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
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.Builderavoiding the need to create one manually viaScanResultDetails.builder().When the
Consumercompletes,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:
scanResultDetails(ScanResultDetails)
-
accountId
Scan.Builder accountId(String 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
Scan.Builder totalBytes(Long 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
Scan.Builder fileCount(Long 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
Scan.Builder attachedVolumes(Collection<VolumeDetail> 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
Scan.Builder attachedVolumes(VolumeDetail... 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
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.Builderavoiding the need to create one manually viaVolumeDetail.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#attachedVolumes(List.) - 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:
#attachedVolumes(java.util.Collection)
-
scanType
Scan.Builder scanType(String scanType)
Specifies the scan type that invoked the malware scan.
-
scanType
Scan.Builder scanType(ScanType scanType)
Specifies the scan type that invoked the malware scan.
-
-