Class SeverityLevel
- java.lang.Object
-
- com.amazonaws.services.support.model.SeverityLevel
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class SeverityLevel extends Object implements Serializable, Cloneable
A code and name pair that represent a severity level that can be applied to a support case.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SeverityLevel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SeverityLevel
clone()
boolean
equals(Object obj)
String
getCode()
One of four values: "low," "medium," "high," and "urgent".String
getName()
The name of the severity level that corresponds to the severity level code.int
hashCode()
void
setCode(String code)
One of four values: "low," "medium," "high," and "urgent".void
setName(String name)
The name of the severity level that corresponds to the severity level code.String
toString()
Returns a string representation of this object; useful for testing and debugging.SeverityLevel
withCode(String code)
One of four values: "low," "medium," "high," and "urgent".SeverityLevel
withName(String name)
The name of the severity level that corresponds to the severity level code.
-
-
-
Method Detail
-
setCode
public void setCode(String code)
One of four values: "low," "medium," "high," and "urgent". These values correspond to response times returned to the caller in
SeverityLevel.name
.- Parameters:
code
- One of four values: "low," "medium," "high," and "urgent". These values correspond to response times returned to the caller inSeverityLevel.name
.
-
getCode
public String getCode()
One of four values: "low," "medium," "high," and "urgent". These values correspond to response times returned to the caller in
SeverityLevel.name
.- Returns:
- One of four values: "low," "medium," "high," and "urgent". These
values correspond to response times returned to the caller in
SeverityLevel.name
.
-
withCode
public SeverityLevel withCode(String code)
One of four values: "low," "medium," "high," and "urgent". These values correspond to response times returned to the caller in
SeverityLevel.name
.- Parameters:
code
- One of four values: "low," "medium," "high," and "urgent". These values correspond to response times returned to the caller inSeverityLevel.name
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setName
public void setName(String name)
The name of the severity level that corresponds to the severity level code.
- Parameters:
name
- The name of the severity level that corresponds to the severity level code.
-
getName
public String getName()
The name of the severity level that corresponds to the severity level code.
- Returns:
- The name of the severity level that corresponds to the severity level code.
-
withName
public SeverityLevel withName(String name)
The name of the severity level that corresponds to the severity level code.
- Parameters:
name
- The name of the severity level that corresponds to the severity level code.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public SeverityLevel clone()
-
-