Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.support.model
Class SeverityLevel

java.lang.Object
  extended by com.amazonaws.services.support.model.SeverityLevel
All Implemented Interfaces:
Serializable

public class SeverityLevel
extends Object
implements Serializable

JSON-formatted pair of strings consisting of a code and name that represent a severity level that can be applied to a support case.

See Also:
Serialized Form

Constructor Summary
SeverityLevel()
           
 
Method Summary
 boolean equals(Object obj)
           
 String getCode()
          String that represents one of four values: "low," "medium," "high," and "urgent".
 String getName()
          Name of severity levels that correspond to the severity level codes.
 int hashCode()
           
 void setCode(String code)
          String that represents one of four values: "low," "medium," "high," and "urgent".
 void setName(String name)
          Name of severity levels that correspond to the severity level codes.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 SeverityLevel withCode(String code)
          String that represents one of four values: "low," "medium," "high," and "urgent".
 SeverityLevel withName(String name)
          Name of severity levels that correspond to the severity level codes.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SeverityLevel

public SeverityLevel()
Method Detail

getCode

public String getCode()
String that represents one of four values: "low," "medium," "high," and "urgent". These values correspond to response times returned to the caller in the string SeverityLevel.name.

Returns:
String that represents one of four values: "low," "medium," "high," and "urgent". These values correspond to response times returned to the caller in the string SeverityLevel.name.

setCode

public void setCode(String code)
String that represents one of four values: "low," "medium," "high," and "urgent". These values correspond to response times returned to the caller in the string SeverityLevel.name.

Parameters:
code - String that represents one of four values: "low," "medium," "high," and "urgent". These values correspond to response times returned to the caller in the string SeverityLevel.name.

withCode

public SeverityLevel withCode(String code)
String that represents one of four values: "low," "medium," "high," and "urgent". These values correspond to response times returned to the caller in the string SeverityLevel.name.

Returns a reference to this object so that method calls can be chained together.

Parameters:
code - String that represents one of four values: "low," "medium," "high," and "urgent". These values correspond to response times returned to the caller in the string SeverityLevel.name.
Returns:
A reference to this updated object so that method calls can be chained together.

getName

public String getName()
Name of severity levels that correspond to the severity level codes.

Returns:
Name of severity levels that correspond to the severity level codes.

setName

public void setName(String name)
Name of severity levels that correspond to the severity level codes.

Parameters:
name - Name of severity levels that correspond to the severity level codes.

withName

public SeverityLevel withName(String name)
Name of severity levels that correspond to the severity level codes.

Returns a reference to this object so that method calls can be chained together.

Parameters:
name - Name of severity levels that correspond to the severity level codes.
Returns:
A reference to this updated 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 class Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.