@Generated(value="software.amazon.awssdk:codegen") public final class MetricDataError extends Object implements SdkPojo, Serializable, ToCopyableBuilder<MetricDataError.Builder,MetricDataError>
An error corresponding to the unsuccessful processing of a single metric data query.
| Modifier and Type | Class and Description |
|---|---|
static interface |
MetricDataError.Builder |
| Modifier and Type | Method and Description |
|---|---|
static MetricDataError.Builder |
builder() |
QueryErrorCode |
code()
The query error code.
|
String |
codeAsString()
The query error code.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
id()
The query identifier.
|
String |
message()
The error message associated with the current query error.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends MetricDataError.Builder> |
serializableBuilderClass() |
MetricDataError.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String id()
The query identifier.
public final QueryErrorCode code()
The query error code. Can be one of:
INTERNAL_FAILURE – Amazon SES has failed to process one of the queries.
ACCESS_DENIED – You have insufficient access to retrieve metrics based on the given query.
If the service returns an enum value that is not available in the current SDK version, code will return
QueryErrorCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
codeAsString().
INTERNAL_FAILURE – Amazon SES has failed to process one of the queries.
ACCESS_DENIED – You have insufficient access to retrieve metrics based on the given query.
QueryErrorCodepublic final String codeAsString()
The query error code. Can be one of:
INTERNAL_FAILURE – Amazon SES has failed to process one of the queries.
ACCESS_DENIED – You have insufficient access to retrieve metrics based on the given query.
If the service returns an enum value that is not available in the current SDK version, code will return
QueryErrorCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
codeAsString().
INTERNAL_FAILURE – Amazon SES has failed to process one of the queries.
ACCESS_DENIED – You have insufficient access to retrieve metrics based on the given query.
QueryErrorCodepublic final String message()
The error message associated with the current query error.
public MetricDataError.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<MetricDataError.Builder,MetricDataError>public static MetricDataError.Builder builder()
public static Class<? extends MetricDataError.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.