/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SageMakerMetrics { namespace Model { /** *

An error that occured when putting the metric data.

See Also:

* AWS * API Reference

*/ class BatchPutMetricsError { public: AWS_SAGEMAKERMETRICS_API BatchPutMetricsError(); AWS_SAGEMAKERMETRICS_API BatchPutMetricsError(Aws::Utils::Json::JsonView jsonValue); AWS_SAGEMAKERMETRICS_API BatchPutMetricsError& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SAGEMAKERMETRICS_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

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.

  • *
*/ inline const PutMetricsErrorCode& GetCode() const{ return m_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.

  • *
*/ inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; } /** *

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.

  • *
*/ inline void SetCode(const PutMetricsErrorCode& value) { m_codeHasBeenSet = true; m_code = value; } /** *

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.

  • *
*/ inline void SetCode(PutMetricsErrorCode&& value) { m_codeHasBeenSet = true; m_code = std::move(value); } /** *

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.

  • *
*/ inline BatchPutMetricsError& WithCode(const PutMetricsErrorCode& value) { SetCode(value); return *this;} /** *

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.

  • *
*/ inline BatchPutMetricsError& WithCode(PutMetricsErrorCode&& value) { SetCode(std::move(value)); return *this;} /** *

An index that corresponds to the metric in the request.

*/ inline int GetMetricIndex() const{ return m_metricIndex; } /** *

An index that corresponds to the metric in the request.

*/ inline bool MetricIndexHasBeenSet() const { return m_metricIndexHasBeenSet; } /** *

An index that corresponds to the metric in the request.

*/ inline void SetMetricIndex(int value) { m_metricIndexHasBeenSet = true; m_metricIndex = value; } /** *

An index that corresponds to the metric in the request.

*/ inline BatchPutMetricsError& WithMetricIndex(int value) { SetMetricIndex(value); return *this;} private: PutMetricsErrorCode m_code; bool m_codeHasBeenSet = false; int m_metricIndex; bool m_metricIndexHasBeenSet = false; }; } // namespace Model } // namespace SageMakerMetrics } // namespace Aws