@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Severity extends Object implements Serializable, Cloneable, StructuredPojo
Provides the numeric score and textual representation of a severity value.
| Constructor and Description |
|---|
Severity() |
| Modifier and Type | Method and Description |
|---|---|
Severity |
clone() |
boolean |
equals(Object obj) |
String |
getDescription()
The textual representation of the severity value, such as Low or High.
|
Long |
getScore()
The numeric score for the severity value, ranging from 0 (least severe) to 4 (most severe).
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setDescription(String description)
The textual representation of the severity value, such as Low or High.
|
void |
setScore(Long score)
The numeric score for the severity value, ranging from 0 (least severe) to 4 (most severe).
|
String |
toString()
Returns a string representation of this object.
|
Severity |
withDescription(SeverityDescription description)
The textual representation of the severity value, such as Low or High.
|
Severity |
withDescription(String description)
The textual representation of the severity value, such as Low or High.
|
Severity |
withScore(Long score)
The numeric score for the severity value, ranging from 0 (least severe) to 4 (most severe).
|
public void setDescription(String description)
The textual representation of the severity value, such as Low or High.
description - The textual representation of the severity value, such as Low or High.SeverityDescriptionpublic String getDescription()
The textual representation of the severity value, such as Low or High.
SeverityDescriptionpublic Severity withDescription(String description)
The textual representation of the severity value, such as Low or High.
description - The textual representation of the severity value, such as Low or High.SeverityDescriptionpublic Severity withDescription(SeverityDescription description)
The textual representation of the severity value, such as Low or High.
description - The textual representation of the severity value, such as Low or High.SeverityDescriptionpublic void setScore(Long score)
The numeric score for the severity value, ranging from 0 (least severe) to 4 (most severe).
score - The numeric score for the severity value, ranging from 0 (least severe) to 4 (most severe).public Long getScore()
The numeric score for the severity value, ranging from 0 (least severe) to 4 (most severe).
public Severity withScore(Long score)
The numeric score for the severity value, ranging from 0 (least severe) to 4 (most severe).
score - The numeric score for the severity value, ranging from 0 (least severe) to 4 (most severe).public String toString()
toString in class ObjectObject.toString()public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.