public class SeverityLevel
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
A code and name pair that represent a severity level that can be applied to a support case.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
code
One of four values: "low," "medium," "high," and "urgent".
|
private java.lang.String |
name
The name of the severity level that corresponds to the severity level
code.
|
Constructor and Description |
---|
SeverityLevel() |
Modifier and Type | Method and Description |
---|---|
SeverityLevel |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getCode()
One of four values: "low," "medium," "high," and "urgent".
|
java.lang.String |
getName()
The name of the severity level that corresponds to the severity level
code.
|
int |
hashCode() |
void |
setCode(java.lang.String code)
One of four values: "low," "medium," "high," and "urgent".
|
void |
setName(java.lang.String name)
The name of the severity level that corresponds to the severity level
code.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
SeverityLevel |
withCode(java.lang.String code)
One of four values: "low," "medium," "high," and "urgent".
|
SeverityLevel |
withName(java.lang.String name)
The name of the severity level that corresponds to the severity level
code.
|
private java.lang.String code
One of four values: "low," "medium," "high," and "urgent". These values
correspond to response times returned to the caller in
SeverityLevel.name
.
private java.lang.String name
The name of the severity level that corresponds to the severity level code.
public void setCode(java.lang.String code)
One of four values: "low," "medium," "high," and "urgent". These values
correspond to response times returned to the caller in
SeverityLevel.name
.
code
- One of four values: "low," "medium," "high," and "urgent". These
values correspond to response times returned to the caller in
SeverityLevel.name
.public java.lang.String getCode()
One of four values: "low," "medium," "high," and "urgent". These values
correspond to response times returned to the caller in
SeverityLevel.name
.
SeverityLevel.name
.public SeverityLevel withCode(java.lang.String code)
One of four values: "low," "medium," "high," and "urgent". These values
correspond to response times returned to the caller in
SeverityLevel.name
.
code
- One of four values: "low," "medium," "high," and "urgent". These
values correspond to response times returned to the caller in
SeverityLevel.name
.public void setName(java.lang.String name)
The name of the severity level that corresponds to the severity level code.
name
- The name of the severity level that corresponds to the severity
level code.public java.lang.String getName()
The name of the severity level that corresponds to the severity level code.
public SeverityLevel withName(java.lang.String name)
The name of the severity level that corresponds to the severity level code.
name
- The name of the severity level that corresponds to the severity
level code.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public SeverityLevel clone()
clone
in class java.lang.Object