@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Severity extends Object implements Serializable, Cloneable, StructuredPojo
Provides the numerical and qualitative representations of a finding's severity.
Constructor and Description |
---|
Severity() |
Modifier and Type | Method and Description |
---|---|
Severity |
clone() |
boolean |
equals(Object obj) |
String |
getDescription()
The qualitative representation of the finding's severity, ranging from Low (least severe) to High (most severe).
|
Long |
getScore()
The numerical representation of the finding's severity, ranging from 1 (least severe) to 3 (most severe).
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDescription(String description)
The qualitative representation of the finding's severity, ranging from Low (least severe) to High (most severe).
|
void |
setScore(Long score)
The numerical representation of the finding's severity, ranging from 1 (least severe) to 3 (most severe).
|
String |
toString()
Returns a string representation of this object.
|
Severity |
withDescription(SeverityDescription description)
The qualitative representation of the finding's severity, ranging from Low (least severe) to High (most severe).
|
Severity |
withDescription(String description)
The qualitative representation of the finding's severity, ranging from Low (least severe) to High (most severe).
|
Severity |
withScore(Long score)
The numerical representation of the finding's severity, ranging from 1 (least severe) to 3 (most severe).
|
public void setDescription(String description)
The qualitative representation of the finding's severity, ranging from Low (least severe) to High (most severe).
description
- The qualitative representation of the finding's severity, ranging from Low (least severe) to High (most
severe).SeverityDescription
public String getDescription()
The qualitative representation of the finding's severity, ranging from Low (least severe) to High (most severe).
SeverityDescription
public Severity withDescription(String description)
The qualitative representation of the finding's severity, ranging from Low (least severe) to High (most severe).
description
- The qualitative representation of the finding's severity, ranging from Low (least severe) to High (most
severe).SeverityDescription
public Severity withDescription(SeverityDescription description)
The qualitative representation of the finding's severity, ranging from Low (least severe) to High (most severe).
description
- The qualitative representation of the finding's severity, ranging from Low (least severe) to High (most
severe).SeverityDescription
public void setScore(Long score)
The numerical representation of the finding's severity, ranging from 1 (least severe) to 3 (most severe).
score
- The numerical representation of the finding's severity, ranging from 1 (least severe) to 3 (most severe).public Long getScore()
The numerical representation of the finding's severity, ranging from 1 (least severe) to 3 (most severe).
public Severity withScore(Long score)
The numerical representation of the finding's severity, ranging from 1 (least severe) to 3 (most severe).
score
- The numerical representation of the finding's severity, ranging from 1 (least severe) to 3 (most severe).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.