@Generated(value="software.amazon.awssdk:codegen") public final class PackageVulnerabilityDetails extends Object implements SdkPojo, Serializable, ToCopyableBuilder<PackageVulnerabilityDetails.Builder,PackageVulnerabilityDetails>
Information about package vulnerability findings.
| Modifier and Type | Class and Description |
|---|---|
static interface |
PackageVulnerabilityDetails.Builder |
| Modifier and Type | Method and Description |
|---|---|
static PackageVulnerabilityDetails.Builder |
builder() |
List<CvssScore> |
cvss()
CVSS scores for one or more vulnerabilities that Amazon Inspector identified for a package.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasCvss()
For responses, this returns true if the service returned a value for the Cvss 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.
|
boolean |
hasVulnerablePackages()
For responses, this returns true if the service returned a value for the VulnerablePackages property.
|
List<String> |
referenceUrls()
Links to web pages that contain details about the vulnerabilities that Amazon Inspector identified for the
package.
|
List<String> |
relatedVulnerabilities()
Vulnerabilities that are often related to the findings for the package.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends PackageVulnerabilityDetails.Builder> |
serializableBuilderClass() |
String |
source()
The source of the vulnerability information.
|
String |
sourceUrl()
A link to the source of the vulnerability information.
|
PackageVulnerabilityDetails.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
Instant |
vendorCreatedAt()
The date and time when this vulnerability was first added to the vendor's database.
|
String |
vendorSeverity()
The severity that the vendor assigned to this vulnerability type.
|
Instant |
vendorUpdatedAt()
The date and time when the vendor last updated this vulnerability in their database.
|
String |
vulnerabilityId()
A unique identifier for this vulnerability.
|
List<VulnerablePackage> |
vulnerablePackages()
The packages that this vulnerability impacts.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String vulnerabilityId()
A unique identifier for this vulnerability.
public final boolean hasVulnerablePackages()
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<VulnerablePackage> vulnerablePackages()
The packages that this vulnerability impacts.
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 hasVulnerablePackages() method.
public final String source()
The source of the vulnerability information.
public final boolean hasCvss()
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<CvssScore> cvss()
CVSS scores for one or more vulnerabilities that Amazon Inspector identified for a package.
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 hasCvss() 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()
Vulnerabilities that are often related to the findings for the package.
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 String sourceUrl()
A link to the source of the vulnerability information.
public final String vendorSeverity()
The severity that the vendor assigned to this vulnerability type.
public final Instant vendorCreatedAt()
The date and time when this vulnerability was first added to the vendor's database.
public final Instant vendorUpdatedAt()
The date and time when the vendor last updated this vulnerability in their database.
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 web pages that contain details about the vulnerabilities that Amazon Inspector identified for the package.
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 PackageVulnerabilityDetails.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<PackageVulnerabilityDetails.Builder,PackageVulnerabilityDetails>public static PackageVulnerabilityDetails.Builder builder()
public static Class<? extends PackageVulnerabilityDetails.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.