@Generated(value="software.amazon.awssdk:codegen") public final class Vulnerability extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Vulnerability.Builder,Vulnerability>
Contains details about a specific vulnerability Amazon Inspector can detect.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Vulnerability.Builder |
| Modifier and Type | Method and Description |
|---|---|
AtigData |
atigData()
An object that contains information about the Amazon Web Services Threat Intel Group (ATIG) details for the
vulnerability.
|
static Vulnerability.Builder |
builder() |
CisaData |
cisaData()
An object that contains the Cybersecurity and Infrastructure Security Agency (CISA) details for the
vulnerability.
|
Cvss2 |
cvss2()
An object that contains the Common Vulnerability Scoring System (CVSS) Version 2 details for the vulnerability.
|
Cvss3 |
cvss3()
An object that contains the Common Vulnerability Scoring System (CVSS) Version 3 details for the vulnerability.
|
List<String> |
cwes()
The Common Weakness Enumeration (CWE) associated with the vulnerability.
|
String |
description()
A description of the vulnerability.
|
List<String> |
detectionPlatforms()
Platforms that the vulnerability can be detected on.
|
Epss |
epss()
An object that contains the Exploit Prediction Scoring System (EPSS) score.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
ExploitObserved |
exploitObserved()
An object that contains details on when the exploit was observed.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasCwes()
For responses, this returns true if the service returned a value for the Cwes property.
|
boolean |
hasDetectionPlatforms()
For responses, this returns true if the service returned a value for the DetectionPlatforms property.
|
int |
hashCode() |
boolean |
hasReferenceUrls()
For responses, this returns true if the service returned a value for the ReferenceUrls property.
|
boolean |
hasRelatedVulnerabilities()
For responses, this returns true if the service returned a value for the RelatedVulnerabilities property.
|
String |
id()
The ID for the specific vulnerability.
|
List<String> |
referenceUrls()
Links to various resources with more information on this vulnerability.
|
List<String> |
relatedVulnerabilities()
A list of related vulnerabilities.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Vulnerability.Builder> |
serializableBuilderClass() |
VulnerabilitySource |
source()
The source of the vulnerability information.
|
String |
sourceAsString()
The source of the vulnerability information.
|
String |
sourceUrl()
A link to the official source material for this vulnerability.
|
Vulnerability.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
Instant |
vendorCreatedAt()
The date and time when the vendor created this vulnerability.
|
String |
vendorSeverity()
The severity assigned by the vendor.
|
Instant |
vendorUpdatedAt()
The date and time when the vendor last updated this vulnerability.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final AtigData atigData()
An object that contains information about the Amazon Web Services Threat Intel Group (ATIG) details for the vulnerability.
public final CisaData cisaData()
An object that contains the Cybersecurity and Infrastructure Security Agency (CISA) details for the vulnerability.
public final Cvss2 cvss2()
An object that contains the Common Vulnerability Scoring System (CVSS) Version 2 details for the vulnerability.
public final Cvss3 cvss3()
An object that contains the Common Vulnerability Scoring System (CVSS) Version 3 details for the vulnerability.
public final boolean hasCwes()
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<String> cwes()
The Common Weakness Enumeration (CWE) associated with the vulnerability.
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 hasCwes() method.
public final String description()
A description of the vulnerability.
public final boolean hasDetectionPlatforms()
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<String> detectionPlatforms()
Platforms that the vulnerability can be detected on.
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 hasDetectionPlatforms() method.
public final Epss epss()
An object that contains the Exploit Prediction Scoring System (EPSS) score.
public final ExploitObserved exploitObserved()
An object that contains details on when the exploit was observed.
public final String id()
The ID for the specific vulnerability.
public final boolean hasReferenceUrls()
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<String> referenceUrls()
Links to various resources with more information on this vulnerability.
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 hasReferenceUrls() method.
public final boolean hasRelatedVulnerabilities()
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<String> relatedVulnerabilities()
A list of related vulnerabilities.
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 hasRelatedVulnerabilities() method.
public final VulnerabilitySource source()
The source of the vulnerability information.
If the service returns an enum value that is not available in the current SDK version, source will
return VulnerabilitySource.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from sourceAsString().
VulnerabilitySourcepublic final String sourceAsString()
The source of the vulnerability information.
If the service returns an enum value that is not available in the current SDK version, source will
return VulnerabilitySource.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from sourceAsString().
VulnerabilitySourcepublic final String sourceUrl()
A link to the official source material for this vulnerability.
public final Instant vendorCreatedAt()
The date and time when the vendor created this vulnerability.
public final String vendorSeverity()
The severity assigned by the vendor.
public final Instant vendorUpdatedAt()
The date and time when the vendor last updated this vulnerability.
public Vulnerability.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Vulnerability.Builder,Vulnerability>public static Vulnerability.Builder builder()
public static Class<? extends Vulnerability.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.