@Generated(value="software.amazon.awssdk:codegen") public final class Scan extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Scan.Builder,Scan>
Contains information about a malware scan.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Scan.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
accountId()
The ID for the account that belongs to the scan.
|
String |
adminDetectorId()
The unique detector ID of the administrator account that the request is associated with.
|
List<VolumeDetail> |
attachedVolumes()
List of volumes that were attached to the original instance to be scanned.
|
static Scan.Builder |
builder() |
String |
detectorId()
The unique ID of the detector that the request is associated with.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
String |
failureReason()
Represents the reason for FAILED scan status.
|
Long |
fileCount()
Represents the number of files that were scanned.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasAttachedVolumes()
For responses, this returns true if the service returned a value for the AttachedVolumes property.
|
int |
hashCode() |
ResourceDetails |
resourceDetails()
Represents the resources that were scanned in the scan entry.
|
Instant |
scanEndTime()
The timestamp of when the scan was finished.
|
String |
scanId()
The unique scan ID associated with a scan entry.
|
ScanResultDetails |
scanResultDetails()
Represents the result of the scan.
|
Instant |
scanStartTime()
The timestamp of when the scan was triggered.
|
ScanStatus |
scanStatus()
An enum value representing possible scan statuses.
|
String |
scanStatusAsString()
An enum value representing possible scan statuses.
|
ScanType |
scanType()
Specifies the scan type that invoked the malware scan.
|
String |
scanTypeAsString()
Specifies the scan type that invoked the malware scan.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Scan.Builder> |
serializableBuilderClass() |
Scan.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
Long |
totalBytes()
Represents total bytes that were scanned.
|
TriggerDetails |
triggerDetails()
Specifies the reason why the scan was initiated.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String detectorId()
The unique ID of the detector that the request is associated with.
public final 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.
DetectorId if the account is an administrator.public final String scanId()
The unique scan ID associated with a scan entry.
public final ScanStatus scanStatus()
An enum value representing possible scan statuses.
If the service returns an enum value that is not available in the current SDK version, scanStatus will
return ScanStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
scanStatusAsString().
ScanStatuspublic final String scanStatusAsString()
An enum value representing possible scan statuses.
If the service returns an enum value that is not available in the current SDK version, scanStatus will
return ScanStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
scanStatusAsString().
ScanStatuspublic final String failureReason()
Represents the reason for FAILED scan status.
public final Instant scanStartTime()
The timestamp of when the scan was triggered.
public final Instant scanEndTime()
The timestamp of when the scan was finished.
public final TriggerDetails triggerDetails()
Specifies the reason why the scan was initiated.
public final ResourceDetails resourceDetails()
Represents the resources that were scanned in the scan entry.
public final ScanResultDetails scanResultDetails()
Represents the result of the scan.
public final String accountId()
The ID for the account that belongs to the scan.
public final Long totalBytes()
Represents total bytes that were scanned.
public final Long fileCount()
Represents the number of files that were scanned.
public final boolean hasAttachedVolumes()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<VolumeDetail> attachedVolumes()
List of volumes that were attached to the original instance to be scanned.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasAttachedVolumes() method.
public final ScanType scanType()
Specifies the scan type that invoked the malware scan.
If the service returns an enum value that is not available in the current SDK version, scanType will
return ScanType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
scanTypeAsString().
ScanTypepublic final String scanTypeAsString()
Specifies the scan type that invoked the malware scan.
If the service returns an enum value that is not available in the current SDK version, scanType will
return ScanType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
scanTypeAsString().
ScanTypepublic Scan.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Scan.Builder,Scan>public static Scan.Builder builder()
public static Class<? extends Scan.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.