@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.
If a cross-Region GetMetricData
operation fails with a code of Forbidden
and a value of
Authentication too complex to retrieve cross region data
, you can correct the problem by running the
GetMetricData
operation in the same Region where the metric data is.
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 © 2022. All rights reserved.