@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Vulnerability extends Object implements Serializable, Cloneable, StructuredPojo
A vulnerability associated with a finding.
Constructor and Description |
---|
Vulnerability() |
Modifier and Type | Method and Description |
---|---|
Vulnerability |
clone() |
boolean |
equals(Object obj) |
List<Cvss> |
getCvss()
CVSS scores from the advisory related to the vulnerability.
|
String |
getId()
The identifier of the vulnerability.
|
List<String> |
getReferenceUrls()
A list of URLs that provide additional information about the vulnerability.
|
List<String> |
getRelatedVulnerabilities()
List of vulnerabilities that are related to this vulnerability.
|
VulnerabilityVendor |
getVendor()
Information about the vendor that generates the vulnerability report.
|
List<SoftwarePackage> |
getVulnerablePackages()
List of software packages that have the vulnerability.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCvss(Collection<Cvss> cvss)
CVSS scores from the advisory related to the vulnerability.
|
void |
setId(String id)
The identifier of the vulnerability.
|
void |
setReferenceUrls(Collection<String> referenceUrls)
A list of URLs that provide additional information about the vulnerability.
|
void |
setRelatedVulnerabilities(Collection<String> relatedVulnerabilities)
List of vulnerabilities that are related to this vulnerability.
|
void |
setVendor(VulnerabilityVendor vendor)
Information about the vendor that generates the vulnerability report.
|
void |
setVulnerablePackages(Collection<SoftwarePackage> vulnerablePackages)
List of software packages that have the vulnerability.
|
String |
toString()
Returns a string representation of this object.
|
Vulnerability |
withCvss(Collection<Cvss> cvss)
CVSS scores from the advisory related to the vulnerability.
|
Vulnerability |
withCvss(Cvss... cvss)
CVSS scores from the advisory related to the vulnerability.
|
Vulnerability |
withId(String id)
The identifier of the vulnerability.
|
Vulnerability |
withReferenceUrls(Collection<String> referenceUrls)
A list of URLs that provide additional information about the vulnerability.
|
Vulnerability |
withReferenceUrls(String... referenceUrls)
A list of URLs that provide additional information about the vulnerability.
|
Vulnerability |
withRelatedVulnerabilities(Collection<String> relatedVulnerabilities)
List of vulnerabilities that are related to this vulnerability.
|
Vulnerability |
withRelatedVulnerabilities(String... relatedVulnerabilities)
List of vulnerabilities that are related to this vulnerability.
|
Vulnerability |
withVendor(VulnerabilityVendor vendor)
Information about the vendor that generates the vulnerability report.
|
Vulnerability |
withVulnerablePackages(Collection<SoftwarePackage> vulnerablePackages)
List of software packages that have the vulnerability.
|
Vulnerability |
withVulnerablePackages(SoftwarePackage... vulnerablePackages)
List of software packages that have the vulnerability.
|
public void setId(String id)
The identifier of the vulnerability.
id
- The identifier of the vulnerability.public String getId()
The identifier of the vulnerability.
public Vulnerability withId(String id)
The identifier of the vulnerability.
id
- The identifier of the vulnerability.public List<SoftwarePackage> getVulnerablePackages()
List of software packages that have the vulnerability.
public void setVulnerablePackages(Collection<SoftwarePackage> vulnerablePackages)
List of software packages that have the vulnerability.
vulnerablePackages
- List of software packages that have the vulnerability.public Vulnerability withVulnerablePackages(SoftwarePackage... vulnerablePackages)
List of software packages that have the vulnerability.
NOTE: This method appends the values to the existing list (if any). Use
setVulnerablePackages(java.util.Collection)
or withVulnerablePackages(java.util.Collection)
if
you want to override the existing values.
vulnerablePackages
- List of software packages that have the vulnerability.public Vulnerability withVulnerablePackages(Collection<SoftwarePackage> vulnerablePackages)
List of software packages that have the vulnerability.
vulnerablePackages
- List of software packages that have the vulnerability.public List<Cvss> getCvss()
CVSS scores from the advisory related to the vulnerability.
public void setCvss(Collection<Cvss> cvss)
CVSS scores from the advisory related to the vulnerability.
cvss
- CVSS scores from the advisory related to the vulnerability.public Vulnerability withCvss(Cvss... cvss)
CVSS scores from the advisory related to the vulnerability.
NOTE: This method appends the values to the existing list (if any). Use
setCvss(java.util.Collection)
or withCvss(java.util.Collection)
if you want to override the
existing values.
cvss
- CVSS scores from the advisory related to the vulnerability.public Vulnerability withCvss(Collection<Cvss> cvss)
CVSS scores from the advisory related to the vulnerability.
cvss
- CVSS scores from the advisory related to the vulnerability.public List<String> getRelatedVulnerabilities()
List of vulnerabilities that are related to this vulnerability.
public void setRelatedVulnerabilities(Collection<String> relatedVulnerabilities)
List of vulnerabilities that are related to this vulnerability.
relatedVulnerabilities
- List of vulnerabilities that are related to this vulnerability.public Vulnerability withRelatedVulnerabilities(String... relatedVulnerabilities)
List of vulnerabilities that are related to this vulnerability.
NOTE: This method appends the values to the existing list (if any). Use
setRelatedVulnerabilities(java.util.Collection)
or
withRelatedVulnerabilities(java.util.Collection)
if you want to override the existing values.
relatedVulnerabilities
- List of vulnerabilities that are related to this vulnerability.public Vulnerability withRelatedVulnerabilities(Collection<String> relatedVulnerabilities)
List of vulnerabilities that are related to this vulnerability.
relatedVulnerabilities
- List of vulnerabilities that are related to this vulnerability.public void setVendor(VulnerabilityVendor vendor)
Information about the vendor that generates the vulnerability report.
vendor
- Information about the vendor that generates the vulnerability report.public VulnerabilityVendor getVendor()
Information about the vendor that generates the vulnerability report.
public Vulnerability withVendor(VulnerabilityVendor vendor)
Information about the vendor that generates the vulnerability report.
vendor
- Information about the vendor that generates the vulnerability report.public List<String> getReferenceUrls()
A list of URLs that provide additional information about the vulnerability.
public void setReferenceUrls(Collection<String> referenceUrls)
A list of URLs that provide additional information about the vulnerability.
referenceUrls
- A list of URLs that provide additional information about the vulnerability.public Vulnerability withReferenceUrls(String... referenceUrls)
A list of URLs that provide additional information about the vulnerability.
NOTE: This method appends the values to the existing list (if any). Use
setReferenceUrls(java.util.Collection)
or withReferenceUrls(java.util.Collection)
if you want
to override the existing values.
referenceUrls
- A list of URLs that provide additional information about the vulnerability.public Vulnerability withReferenceUrls(Collection<String> referenceUrls)
A list of URLs that provide additional information about the vulnerability.
referenceUrls
- A list of URLs that provide additional information about the vulnerability.public String toString()
toString
in class Object
Object.toString()
public Vulnerability clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.