Class MessageData
- java.lang.Object
-
- software.amazon.awssdk.services.cloudwatch.model.MessageData
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<MessageData.Builder,MessageData>
@Generated("software.amazon.awssdk:codegen") public final class MessageData extends Object implements SdkPojo, Serializable, ToCopyableBuilder<MessageData.Builder,MessageData>
A message returned by the
GetMetricDataAPI, including a code and a description.If a cross-Region
GetMetricDataoperation fails with a code ofForbiddenand a value ofAuthentication too complex to retrieve cross region data, you can correct the problem by running theGetMetricDataoperation in the same Region where the metric data is.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceMessageData.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MessageData.Builderbuilder()Stringcode()The error code or status code associated with the message.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()List<SdkField<?>>sdkFields()static Class<? extends MessageData.Builder>serializableBuilderClass()MessageData.BuildertoBuilder()StringtoString()Returns a string representation of this object.Stringvalue()The message text.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
code
public final String code()
The error code or status code associated with the message.
- Returns:
- The error code or status code associated with the message.
-
value
public final String value()
The message text.
- Returns:
- The message text.
-
toBuilder
public MessageData.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<MessageData.Builder,MessageData>
-
builder
public static MessageData.Builder builder()
-
serializableBuilderClass
public static Class<? extends MessageData.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-