@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Cvss extends Object implements Serializable, Cloneable, StructuredPojo
CVSS scores from the advisory related to the vulnerability.
Constructor and Description |
---|
Cvss() |
Modifier and Type | Method and Description |
---|---|
Cvss |
clone() |
boolean |
equals(Object obj) |
List<Adjustment> |
getAdjustments()
Adjustments to the CVSS metrics.
|
Double |
getBaseScore()
The base CVSS score.
|
String |
getBaseVector()
The base scoring vector for the CVSS score.
|
String |
getSource()
The origin of the original CVSS score and vector.
|
String |
getVersion()
The version of CVSS for the CVSS score.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAdjustments(Collection<Adjustment> adjustments)
Adjustments to the CVSS metrics.
|
void |
setBaseScore(Double baseScore)
The base CVSS score.
|
void |
setBaseVector(String baseVector)
The base scoring vector for the CVSS score.
|
void |
setSource(String source)
The origin of the original CVSS score and vector.
|
void |
setVersion(String version)
The version of CVSS for the CVSS score.
|
String |
toString()
Returns a string representation of this object.
|
Cvss |
withAdjustments(Adjustment... adjustments)
Adjustments to the CVSS metrics.
|
Cvss |
withAdjustments(Collection<Adjustment> adjustments)
Adjustments to the CVSS metrics.
|
Cvss |
withBaseScore(Double baseScore)
The base CVSS score.
|
Cvss |
withBaseVector(String baseVector)
The base scoring vector for the CVSS score.
|
Cvss |
withSource(String source)
The origin of the original CVSS score and vector.
|
Cvss |
withVersion(String version)
The version of CVSS for the CVSS score.
|
public void setVersion(String version)
The version of CVSS for the CVSS score.
version
- The version of CVSS for the CVSS score.public String getVersion()
The version of CVSS for the CVSS score.
public Cvss withVersion(String version)
The version of CVSS for the CVSS score.
version
- The version of CVSS for the CVSS score.public void setBaseScore(Double baseScore)
The base CVSS score.
baseScore
- The base CVSS score.public Double getBaseScore()
The base CVSS score.
public Cvss withBaseScore(Double baseScore)
The base CVSS score.
baseScore
- The base CVSS score.public void setBaseVector(String baseVector)
The base scoring vector for the CVSS score.
baseVector
- The base scoring vector for the CVSS score.public String getBaseVector()
The base scoring vector for the CVSS score.
public Cvss withBaseVector(String baseVector)
The base scoring vector for the CVSS score.
baseVector
- The base scoring vector for the CVSS score.public void setSource(String source)
The origin of the original CVSS score and vector.
source
- The origin of the original CVSS score and vector.public String getSource()
The origin of the original CVSS score and vector.
public Cvss withSource(String source)
The origin of the original CVSS score and vector.
source
- The origin of the original CVSS score and vector.public List<Adjustment> getAdjustments()
Adjustments to the CVSS metrics.
public void setAdjustments(Collection<Adjustment> adjustments)
Adjustments to the CVSS metrics.
adjustments
- Adjustments to the CVSS metrics.public Cvss withAdjustments(Adjustment... adjustments)
Adjustments to the CVSS metrics.
NOTE: This method appends the values to the existing list (if any). Use
setAdjustments(java.util.Collection)
or withAdjustments(java.util.Collection)
if you want to
override the existing values.
adjustments
- Adjustments to the CVSS metrics.public Cvss withAdjustments(Collection<Adjustment> adjustments)
Adjustments to the CVSS metrics.
adjustments
- Adjustments to the CVSS metrics.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.