Class BatchPutMetricsError
- java.lang.Object
-
- software.amazon.awssdk.services.sagemakermetrics.model.BatchPutMetricsError
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<BatchPutMetricsError.Builder,BatchPutMetricsError>
@Generated("software.amazon.awssdk:codegen") public final class BatchPutMetricsError extends Object implements SdkPojo, Serializable, ToCopyableBuilder<BatchPutMetricsError.Builder,BatchPutMetricsError>
An error that occured when putting the metric data.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceBatchPutMetricsError.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BatchPutMetricsError.Builderbuilder()PutMetricsErrorCodecode()The error code of an error that occured when attempting to put metrics.StringcodeAsString()The error code of an error that occured when attempting to put metrics.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()IntegermetricIndex()An index that corresponds to the metric in the request.List<SdkField<?>>sdkFields()static Class<? extends BatchPutMetricsError.Builder>serializableBuilderClass()BatchPutMetricsError.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
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 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.
If the service returns an enum value that is not available in the current SDK version,
codewill returnPutMetricsErrorCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromcodeAsString().- Returns:
- 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.
-
- See Also:
PutMetricsErrorCode
-
-
codeAsString
public final String codeAsString()
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.
If the service returns an enum value that is not available in the current SDK version,
codewill returnPutMetricsErrorCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromcodeAsString().- Returns:
- 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.
-
- See Also:
PutMetricsErrorCode
-
-
metricIndex
public final Integer metricIndex()
An index that corresponds to the metric in the request.
- Returns:
- An index that corresponds to the metric in the request.
-
toBuilder
public BatchPutMetricsError.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<BatchPutMetricsError.Builder,BatchPutMetricsError>
-
builder
public static BatchPutMetricsError.Builder builder()
-
serializableBuilderClass
public static Class<? extends BatchPutMetricsError.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.
-
-