@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CoveredResource extends Object implements Serializable, Cloneable, StructuredPojo
An object that contains details about a resource covered by Amazon Inspector.
Constructor and Description |
---|
CoveredResource() |
Modifier and Type | Method and Description |
---|---|
CoveredResource |
clone() |
boolean |
equals(Object obj) |
String |
getAccountId()
The Amazon Web Services account ID of the covered resource.
|
Date |
getLastScannedAt()
The date and time the resource was last checked for vulnerabilities.
|
String |
getResourceId()
The ID of the covered resource.
|
ResourceScanMetadata |
getResourceMetadata()
An object that contains details about the metadata.
|
String |
getResourceType()
The type of the covered resource.
|
String |
getScanMode()
The scan method that is applied to the instance.
|
ScanStatus |
getScanStatus()
The status of the scan covering the resource.
|
String |
getScanType()
The Amazon Inspector scan type covering the resource.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAccountId(String accountId)
The Amazon Web Services account ID of the covered resource.
|
void |
setLastScannedAt(Date lastScannedAt)
The date and time the resource was last checked for vulnerabilities.
|
void |
setResourceId(String resourceId)
The ID of the covered resource.
|
void |
setResourceMetadata(ResourceScanMetadata resourceMetadata)
An object that contains details about the metadata.
|
void |
setResourceType(String resourceType)
The type of the covered resource.
|
void |
setScanMode(String scanMode)
The scan method that is applied to the instance.
|
void |
setScanStatus(ScanStatus scanStatus)
The status of the scan covering the resource.
|
void |
setScanType(String scanType)
The Amazon Inspector scan type covering the resource.
|
String |
toString()
Returns a string representation of this object.
|
CoveredResource |
withAccountId(String accountId)
The Amazon Web Services account ID of the covered resource.
|
CoveredResource |
withLastScannedAt(Date lastScannedAt)
The date and time the resource was last checked for vulnerabilities.
|
CoveredResource |
withResourceId(String resourceId)
The ID of the covered resource.
|
CoveredResource |
withResourceMetadata(ResourceScanMetadata resourceMetadata)
An object that contains details about the metadata.
|
CoveredResource |
withResourceType(CoverageResourceType resourceType)
The type of the covered resource.
|
CoveredResource |
withResourceType(String resourceType)
The type of the covered resource.
|
CoveredResource |
withScanMode(ScanMode scanMode)
The scan method that is applied to the instance.
|
CoveredResource |
withScanMode(String scanMode)
The scan method that is applied to the instance.
|
CoveredResource |
withScanStatus(ScanStatus scanStatus)
The status of the scan covering the resource.
|
CoveredResource |
withScanType(ScanType scanType)
The Amazon Inspector scan type covering the resource.
|
CoveredResource |
withScanType(String scanType)
The Amazon Inspector scan type covering the resource.
|
public void setAccountId(String accountId)
The Amazon Web Services account ID of the covered resource.
accountId
- The Amazon Web Services account ID of the covered resource.public String getAccountId()
The Amazon Web Services account ID of the covered resource.
public CoveredResource withAccountId(String accountId)
The Amazon Web Services account ID of the covered resource.
accountId
- The Amazon Web Services account ID of the covered resource.public void setLastScannedAt(Date lastScannedAt)
The date and time the resource was last checked for vulnerabilities.
lastScannedAt
- The date and time the resource was last checked for vulnerabilities.public Date getLastScannedAt()
The date and time the resource was last checked for vulnerabilities.
public CoveredResource withLastScannedAt(Date lastScannedAt)
The date and time the resource was last checked for vulnerabilities.
lastScannedAt
- The date and time the resource was last checked for vulnerabilities.public void setResourceId(String resourceId)
The ID of the covered resource.
resourceId
- The ID of the covered resource.public String getResourceId()
The ID of the covered resource.
public CoveredResource withResourceId(String resourceId)
The ID of the covered resource.
resourceId
- The ID of the covered resource.public void setResourceMetadata(ResourceScanMetadata resourceMetadata)
An object that contains details about the metadata.
resourceMetadata
- An object that contains details about the metadata.public ResourceScanMetadata getResourceMetadata()
An object that contains details about the metadata.
public CoveredResource withResourceMetadata(ResourceScanMetadata resourceMetadata)
An object that contains details about the metadata.
resourceMetadata
- An object that contains details about the metadata.public void setResourceType(String resourceType)
The type of the covered resource.
resourceType
- The type of the covered resource.CoverageResourceType
public String getResourceType()
The type of the covered resource.
CoverageResourceType
public CoveredResource withResourceType(String resourceType)
The type of the covered resource.
resourceType
- The type of the covered resource.CoverageResourceType
public CoveredResource withResourceType(CoverageResourceType resourceType)
The type of the covered resource.
resourceType
- The type of the covered resource.CoverageResourceType
public void setScanMode(String scanMode)
The scan method that is applied to the instance.
scanMode
- The scan method that is applied to the instance.ScanMode
public String getScanMode()
The scan method that is applied to the instance.
ScanMode
public CoveredResource withScanMode(String scanMode)
The scan method that is applied to the instance.
scanMode
- The scan method that is applied to the instance.ScanMode
public CoveredResource withScanMode(ScanMode scanMode)
The scan method that is applied to the instance.
scanMode
- The scan method that is applied to the instance.ScanMode
public void setScanStatus(ScanStatus scanStatus)
The status of the scan covering the resource.
scanStatus
- The status of the scan covering the resource.public ScanStatus getScanStatus()
The status of the scan covering the resource.
public CoveredResource withScanStatus(ScanStatus scanStatus)
The status of the scan covering the resource.
scanStatus
- The status of the scan covering the resource.public void setScanType(String scanType)
The Amazon Inspector scan type covering the resource.
scanType
- The Amazon Inspector scan type covering the resource.ScanType
public String getScanType()
The Amazon Inspector scan type covering the resource.
ScanType
public CoveredResource withScanType(String scanType)
The Amazon Inspector scan type covering the resource.
scanType
- The Amazon Inspector scan type covering the resource.ScanType
public CoveredResource withScanType(ScanType scanType)
The Amazon Inspector scan type covering the resource.
scanType
- The Amazon Inspector scan type covering the resource.ScanType
public String toString()
toString
in class Object
Object.toString()
public CoveredResource clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.