@Generated(value="software.amazon.awssdk:codegen") public final class Vulnerability extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Vulnerability.Builder,Vulnerability>
A vulnerability associated with a finding.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Vulnerability.Builder |
| Modifier and Type | Method and Description |
|---|---|
static Vulnerability.Builder |
builder() |
List<Cvss> |
cvss()
CVSS scores from the advisory related to the vulnerability.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasCvss()
Returns true if the Cvss property was specified by the sender (it may be empty), or false if the sender did not
specify the value (it will be empty).
|
int |
hashCode() |
boolean |
hasReferenceUrls()
Returns true if the ReferenceUrls property was specified by the sender (it may be empty), or false if the sender
did not specify the value (it will be empty).
|
boolean |
hasRelatedVulnerabilities()
Returns true if the RelatedVulnerabilities property was specified by the sender (it may be empty), or false if
the sender did not specify the value (it will be empty).
|
boolean |
hasVulnerablePackages()
Returns true if the VulnerablePackages property was specified by the sender (it may be empty), or false if the
sender did not specify the value (it will be empty).
|
String |
id()
The identifier of the vulnerability.
|
List<String> |
referenceUrls()
A list of URLs that provide additional information about the vulnerability.
|
List<String> |
relatedVulnerabilities()
List of vulnerabilities that are related to this vulnerability.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Vulnerability.Builder> |
serializableBuilderClass() |
Vulnerability.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
VulnerabilityVendor |
vendor()
Information about the vendor that generates the vulnerability report.
|
List<SoftwarePackage> |
vulnerablePackages()
List of software packages that have the vulnerability.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String id()
The identifier of the vulnerability.
public final boolean hasVulnerablePackages()
public final List<SoftwarePackage> vulnerablePackages()
List of software packages that have the vulnerability.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasVulnerablePackages() to see if a value was sent in this field.
public final boolean hasCvss()
public final List<Cvss> cvss()
CVSS scores from the advisory related to the vulnerability.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasCvss() to see if a value was sent in this field.
public final boolean hasRelatedVulnerabilities()
public final List<String> relatedVulnerabilities()
List of vulnerabilities that are related to this vulnerability.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasRelatedVulnerabilities() to see if a value was sent in this field.
public final VulnerabilityVendor vendor()
Information about the vendor that generates the vulnerability report.
public final boolean hasReferenceUrls()
public final List<String> referenceUrls()
A list of URLs that provide additional information about the vulnerability.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasReferenceUrls() to see if a value was sent in this field.
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 © 2021. All rights reserved.