@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class BatchPutMetricsError extends Object implements Serializable, Cloneable, StructuredPojo
An error that occured when putting the metric data.
| Constructor and Description |
|---|
BatchPutMetricsError() |
| Modifier and Type | Method and Description |
|---|---|
BatchPutMetricsError |
clone() |
boolean |
equals(Object obj) |
String |
getCode()
The error code of an error that occured when attempting to put metrics.
|
Integer |
getMetricIndex()
An index that corresponds to the metric in the request.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setCode(String code)
The error code of an error that occured when attempting to put metrics.
|
void |
setMetricIndex(Integer metricIndex)
An index that corresponds to the metric in the request.
|
String |
toString()
Returns a string representation of this object.
|
BatchPutMetricsError |
withCode(PutMetricsErrorCode code)
The error code of an error that occured when attempting to put metrics.
|
BatchPutMetricsError |
withCode(String code)
The error code of an error that occured when attempting to put metrics.
|
BatchPutMetricsError |
withMetricIndex(Integer metricIndex)
An index that corresponds to the metric in the request.
|
public void setCode(String code)
The error code of an error that occured when attempting to put metrics.
METRIC_LIMIT_EXCEEDED: The maximum amount of metrics per resource is exceeded.
INTERNAL_ERROR: An internal error occured.
VALIDATION_ERROR: The metric data failed validation.
CONFLICT_ERROR: Multiple requests attempted to modify the same data simultaneously.
code - The error code of an error that occured when attempting to put metrics.
METRIC_LIMIT_EXCEEDED: The maximum amount of metrics per resource is exceeded.
INTERNAL_ERROR: An internal error occured.
VALIDATION_ERROR: The metric data failed validation.
CONFLICT_ERROR: Multiple requests attempted to modify the same data simultaneously.
PutMetricsErrorCodepublic String getCode()
The error code of an error that occured when attempting to put metrics.
METRIC_LIMIT_EXCEEDED: The maximum amount of metrics per resource is exceeded.
INTERNAL_ERROR: An internal error occured.
VALIDATION_ERROR: The metric data failed validation.
CONFLICT_ERROR: Multiple requests attempted to modify the same data simultaneously.
METRIC_LIMIT_EXCEEDED: The maximum amount of metrics per resource is exceeded.
INTERNAL_ERROR: An internal error occured.
VALIDATION_ERROR: The metric data failed validation.
CONFLICT_ERROR: Multiple requests attempted to modify the same data simultaneously.
PutMetricsErrorCodepublic BatchPutMetricsError withCode(String code)
The error code of an error that occured when attempting to put metrics.
METRIC_LIMIT_EXCEEDED: The maximum amount of metrics per resource is exceeded.
INTERNAL_ERROR: An internal error occured.
VALIDATION_ERROR: The metric data failed validation.
CONFLICT_ERROR: Multiple requests attempted to modify the same data simultaneously.
code - The error code of an error that occured when attempting to put metrics.
METRIC_LIMIT_EXCEEDED: The maximum amount of metrics per resource is exceeded.
INTERNAL_ERROR: An internal error occured.
VALIDATION_ERROR: The metric data failed validation.
CONFLICT_ERROR: Multiple requests attempted to modify the same data simultaneously.
PutMetricsErrorCodepublic BatchPutMetricsError withCode(PutMetricsErrorCode code)
The error code of an error that occured when attempting to put metrics.
METRIC_LIMIT_EXCEEDED: The maximum amount of metrics per resource is exceeded.
INTERNAL_ERROR: An internal error occured.
VALIDATION_ERROR: The metric data failed validation.
CONFLICT_ERROR: Multiple requests attempted to modify the same data simultaneously.
code - The error code of an error that occured when attempting to put metrics.
METRIC_LIMIT_EXCEEDED: The maximum amount of metrics per resource is exceeded.
INTERNAL_ERROR: An internal error occured.
VALIDATION_ERROR: The metric data failed validation.
CONFLICT_ERROR: Multiple requests attempted to modify the same data simultaneously.
PutMetricsErrorCodepublic void setMetricIndex(Integer metricIndex)
An index that corresponds to the metric in the request.
metricIndex - An index that corresponds to the metric in the request.public Integer getMetricIndex()
An index that corresponds to the metric in the request.
public BatchPutMetricsError withMetricIndex(Integer metricIndex)
An index that corresponds to the metric in the request.
metricIndex - An index that corresponds to the metric in the request.public String toString()
toString in class ObjectObject.toString()public BatchPutMetricsError clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.