public class Category
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
A JSON-formatted name/value pair that represents the category name and category code of the problem, selected from the DescribeServices response for each AWS service.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
code
The category code for the support case.
|
private java.lang.String |
name
The category name for the support case.
|
Constructor and Description |
---|
Category() |
Modifier and Type | Method and Description |
---|---|
Category |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getCode()
The category code for the support case.
|
java.lang.String |
getName()
The category name for the support case.
|
int |
hashCode() |
void |
setCode(java.lang.String code)
The category code for the support case.
|
void |
setName(java.lang.String name)
The category name for the support case.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Category |
withCode(java.lang.String code)
The category code for the support case.
|
Category |
withName(java.lang.String name)
The category name for the support case.
|
private java.lang.String code
The category code for the support case.
private java.lang.String name
The category name for the support case.
public void setCode(java.lang.String code)
The category code for the support case.
code
- The category code for the support case.public java.lang.String getCode()
The category code for the support case.
public Category withCode(java.lang.String code)
The category code for the support case.
code
- The category code for the support case.public void setName(java.lang.String name)
The category name for the support case.
name
- The category name for the support case.public java.lang.String getName()
The category name for the support case.
public Category withName(java.lang.String name)
The category name for the support case.
name
- The category name for the support case.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 Category clone()
clone
in class java.lang.Object