@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Scan extends Object implements Serializable, Cloneable, StructuredPojo
Contains information about a malware scan.
Constructor and Description |
---|
Scan() |
Modifier and Type | Method and Description |
---|---|
Scan |
clone() |
boolean |
equals(Object obj) |
String |
getAccountId()
The ID for the account that belongs to the scan.
|
String |
getAdminDetectorId()
The unique detector ID of the administrator account that the request is associated with.
|
List<VolumeDetail> |
getAttachedVolumes()
List of volumes that were attached to the original instance to be scanned.
|
String |
getDetectorId()
The unique ID of the detector that the request is associated with.
|
String |
getFailureReason()
Represents the reason for FAILED scan status.
|
Long |
getFileCount()
Represents the number of files that were scanned.
|
ResourceDetails |
getResourceDetails()
Represents the resources that were scanned in the scan entry.
|
Date |
getScanEndTime()
The timestamp of when the scan was finished.
|
String |
getScanId()
The unique scan ID associated with a scan entry.
|
ScanResultDetails |
getScanResultDetails()
Represents the result of the scan.
|
Date |
getScanStartTime()
The timestamp of when the scan was triggered.
|
String |
getScanStatus()
An enum value representing possible scan statuses.
|
Long |
getTotalBytes()
Represents total bytes that were scanned.
|
TriggerDetails |
getTriggerDetails()
Represents the reason the scan was triggered.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAccountId(String accountId)
The ID for the account that belongs to the scan.
|
void |
setAdminDetectorId(String adminDetectorId)
The unique detector ID of the administrator account that the request is associated with.
|
void |
setAttachedVolumes(Collection<VolumeDetail> attachedVolumes)
List of volumes that were attached to the original instance to be scanned.
|
void |
setDetectorId(String detectorId)
The unique ID of the detector that the request is associated with.
|
void |
setFailureReason(String failureReason)
Represents the reason for FAILED scan status.
|
void |
setFileCount(Long fileCount)
Represents the number of files that were scanned.
|
void |
setResourceDetails(ResourceDetails resourceDetails)
Represents the resources that were scanned in the scan entry.
|
void |
setScanEndTime(Date scanEndTime)
The timestamp of when the scan was finished.
|
void |
setScanId(String scanId)
The unique scan ID associated with a scan entry.
|
void |
setScanResultDetails(ScanResultDetails scanResultDetails)
Represents the result of the scan.
|
void |
setScanStartTime(Date scanStartTime)
The timestamp of when the scan was triggered.
|
void |
setScanStatus(String scanStatus)
An enum value representing possible scan statuses.
|
void |
setTotalBytes(Long totalBytes)
Represents total bytes that were scanned.
|
void |
setTriggerDetails(TriggerDetails triggerDetails)
Represents the reason the scan was triggered.
|
String |
toString()
Returns a string representation of this object.
|
Scan |
withAccountId(String accountId)
The ID for the account that belongs to the scan.
|
Scan |
withAdminDetectorId(String adminDetectorId)
The unique detector ID of the administrator account that the request is associated with.
|
Scan |
withAttachedVolumes(Collection<VolumeDetail> attachedVolumes)
List of volumes that were attached to the original instance to be scanned.
|
Scan |
withAttachedVolumes(VolumeDetail... attachedVolumes)
List of volumes that were attached to the original instance to be scanned.
|
Scan |
withDetectorId(String detectorId)
The unique ID of the detector that the request is associated with.
|
Scan |
withFailureReason(String failureReason)
Represents the reason for FAILED scan status.
|
Scan |
withFileCount(Long fileCount)
Represents the number of files that were scanned.
|
Scan |
withResourceDetails(ResourceDetails resourceDetails)
Represents the resources that were scanned in the scan entry.
|
Scan |
withScanEndTime(Date scanEndTime)
The timestamp of when the scan was finished.
|
Scan |
withScanId(String scanId)
The unique scan ID associated with a scan entry.
|
Scan |
withScanResultDetails(ScanResultDetails scanResultDetails)
Represents the result of the scan.
|
Scan |
withScanStartTime(Date scanStartTime)
The timestamp of when the scan was triggered.
|
Scan |
withScanStatus(ScanStatus scanStatus)
An enum value representing possible scan statuses.
|
Scan |
withScanStatus(String scanStatus)
An enum value representing possible scan statuses.
|
Scan |
withTotalBytes(Long totalBytes)
Represents total bytes that were scanned.
|
Scan |
withTriggerDetails(TriggerDetails triggerDetails)
Represents the reason the scan was triggered.
|
public void setDetectorId(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.public String getDetectorId()
The unique ID of the detector that the request is associated with.
public Scan withDetectorId(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.public void setAdminDetectorId(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.public String getAdminDetectorId()
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 Scan withAdminDetectorId(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.public void setScanId(String scanId)
The unique scan ID associated with a scan entry.
scanId
- The unique scan ID associated with a scan entry.public String getScanId()
The unique scan ID associated with a scan entry.
public Scan withScanId(String scanId)
The unique scan ID associated with a scan entry.
scanId
- The unique scan ID associated with a scan entry.public void setScanStatus(String scanStatus)
An enum value representing possible scan statuses.
scanStatus
- An enum value representing possible scan statuses.ScanStatus
public String getScanStatus()
An enum value representing possible scan statuses.
ScanStatus
public Scan withScanStatus(String scanStatus)
An enum value representing possible scan statuses.
scanStatus
- An enum value representing possible scan statuses.ScanStatus
public Scan withScanStatus(ScanStatus scanStatus)
An enum value representing possible scan statuses.
scanStatus
- An enum value representing possible scan statuses.ScanStatus
public void setFailureReason(String failureReason)
Represents the reason for FAILED scan status.
failureReason
- Represents the reason for FAILED scan status.public String getFailureReason()
Represents the reason for FAILED scan status.
public Scan withFailureReason(String failureReason)
Represents the reason for FAILED scan status.
failureReason
- Represents the reason for FAILED scan status.public void setScanStartTime(Date scanStartTime)
The timestamp of when the scan was triggered.
scanStartTime
- The timestamp of when the scan was triggered.public Date getScanStartTime()
The timestamp of when the scan was triggered.
public Scan withScanStartTime(Date scanStartTime)
The timestamp of when the scan was triggered.
scanStartTime
- The timestamp of when the scan was triggered.public void setScanEndTime(Date scanEndTime)
The timestamp of when the scan was finished.
scanEndTime
- The timestamp of when the scan was finished.public Date getScanEndTime()
The timestamp of when the scan was finished.
public Scan withScanEndTime(Date scanEndTime)
The timestamp of when the scan was finished.
scanEndTime
- The timestamp of when the scan was finished.public void setTriggerDetails(TriggerDetails triggerDetails)
Represents the reason the scan was triggered.
triggerDetails
- Represents the reason the scan was triggered.public TriggerDetails getTriggerDetails()
Represents the reason the scan was triggered.
public Scan withTriggerDetails(TriggerDetails triggerDetails)
Represents the reason the scan was triggered.
triggerDetails
- Represents the reason the scan was triggered.public void setResourceDetails(ResourceDetails resourceDetails)
Represents the resources that were scanned in the scan entry.
resourceDetails
- Represents the resources that were scanned in the scan entry.public ResourceDetails getResourceDetails()
Represents the resources that were scanned in the scan entry.
public Scan withResourceDetails(ResourceDetails resourceDetails)
Represents the resources that were scanned in the scan entry.
resourceDetails
- Represents the resources that were scanned in the scan entry.public void setScanResultDetails(ScanResultDetails scanResultDetails)
Represents the result of the scan.
scanResultDetails
- Represents the result of the scan.public ScanResultDetails getScanResultDetails()
Represents the result of the scan.
public Scan withScanResultDetails(ScanResultDetails scanResultDetails)
Represents the result of the scan.
scanResultDetails
- Represents the result of the scan.public void setAccountId(String accountId)
The ID for the account that belongs to the scan.
accountId
- The ID for the account that belongs to the scan.public String getAccountId()
The ID for the account that belongs to the scan.
public Scan withAccountId(String accountId)
The ID for the account that belongs to the scan.
accountId
- The ID for the account that belongs to the scan.public void setTotalBytes(Long totalBytes)
Represents total bytes that were scanned.
totalBytes
- Represents total bytes that were scanned.public Long getTotalBytes()
Represents total bytes that were scanned.
public Scan withTotalBytes(Long totalBytes)
Represents total bytes that were scanned.
totalBytes
- Represents total bytes that were scanned.public void setFileCount(Long fileCount)
Represents the number of files that were scanned.
fileCount
- Represents the number of files that were scanned.public Long getFileCount()
Represents the number of files that were scanned.
public Scan withFileCount(Long fileCount)
Represents the number of files that were scanned.
fileCount
- Represents the number of files that were scanned.public List<VolumeDetail> getAttachedVolumes()
List of volumes that were attached to the original instance to be scanned.
public void setAttachedVolumes(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.public Scan withAttachedVolumes(VolumeDetail... attachedVolumes)
List of volumes that were attached to the original instance to be scanned.
NOTE: This method appends the values to the existing list (if any). Use
setAttachedVolumes(java.util.Collection)
or withAttachedVolumes(java.util.Collection)
if you
want to override the existing values.
attachedVolumes
- List of volumes that were attached to the original instance to be scanned.public Scan withAttachedVolumes(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.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.