@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class MetricDataError extends Object implements Serializable, Cloneable, StructuredPojo
An error corresponding to the unsuccessful processing of a single metric data query.
| Constructor and Description |
|---|
MetricDataError() |
| Modifier and Type | Method and Description |
|---|---|
MetricDataError |
clone() |
boolean |
equals(Object obj) |
String |
getCode()
The query error code.
|
String |
getId()
The query identifier.
|
String |
getMessage()
The error message associated with the current query error.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setCode(String code)
The query error code.
|
void |
setId(String id)
The query identifier.
|
void |
setMessage(String message)
The error message associated with the current query error.
|
String |
toString()
Returns a string representation of this object.
|
MetricDataError |
withCode(QueryErrorCode code)
The query error code.
|
MetricDataError |
withCode(String code)
The query error code.
|
MetricDataError |
withId(String id)
The query identifier.
|
MetricDataError |
withMessage(String message)
The error message associated with the current query error.
|
public void setId(String id)
The query identifier.
id - The query identifier.public String getId()
The query identifier.
public MetricDataError withId(String id)
The query identifier.
id - The query identifier.public void setCode(String 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.
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.
QueryErrorCodepublic String getCode()
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.
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 MetricDataError withCode(String 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.
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.
QueryErrorCodepublic MetricDataError withCode(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.
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.
QueryErrorCodepublic void setMessage(String message)
The error message associated with the current query error.
message - The error message associated with the current query error.public String getMessage()
The error message associated with the current query error.
public MetricDataError withMessage(String message)
The error message associated with the current query error.
message - The error message associated with the current query error.public String toString()
toString in class ObjectObject.toString()public MetricDataError clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.