Class MetricDataError
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<MetricDataError.Builder,MetricDataError>
An error corresponding to the unsuccessful processing of a single metric data query.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic MetricDataError.Builderbuilder()final QueryErrorCodecode()The query error code.final StringThe query error code.final booleanfinal booleanequalsBySdkFields(Object obj) final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final inthashCode()final Stringid()The query identifier.final Stringmessage()The error message associated with the current query error.static Class<? extends MetricDataError.Builder>final StringtoString()Returns a string representation of this object.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
id
The query identifier.
- Returns:
- The query identifier.
-
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,
codewill returnQueryErrorCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromcodeAsString().- Returns:
- 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.
-
- See Also:
-
-
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,
codewill returnQueryErrorCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromcodeAsString().- Returns:
- 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.
-
- See Also:
-
-
message
The error message associated with the current query error.
- Returns:
- The error message associated with the current query error.
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<MetricDataError.Builder,MetricDataError>
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
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. -
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-