@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class MessageData extends Object implements Serializable, Cloneable
A message returned by the GetMetricData
API, including a code and a description.
Constructor and Description |
---|
MessageData() |
Modifier and Type | Method and Description |
---|---|
MessageData |
clone() |
boolean |
equals(Object obj) |
String |
getCode()
The error code or status code associated with the message.
|
String |
getValue()
The message text.
|
int |
hashCode() |
void |
setCode(String code)
The error code or status code associated with the message.
|
void |
setValue(String value)
The message text.
|
String |
toString()
Returns a string representation of this object.
|
MessageData |
withCode(String code)
The error code or status code associated with the message.
|
MessageData |
withValue(String value)
The message text.
|
public void setCode(String code)
The error code or status code associated with the message.
code
- The error code or status code associated with the message.public String getCode()
The error code or status code associated with the message.
public MessageData withCode(String code)
The error code or status code associated with the message.
code
- The error code or status code associated with the message.public void setValue(String value)
The message text.
value
- The message text.public String getValue()
The message text.
public MessageData withValue(String value)
The message text.
value
- The message text.public String toString()
toString
in class Object
Object.toString()
public MessageData clone()
Copyright © 2020. All rights reserved.