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

The name, value, and date and time of a metric that was emitted to Amazon * CloudWatch.

See Also:

AWS * API Reference

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

The name of the metric.

*/ inline const Aws::String& GetMetricName() const{ return m_metricName; } /** *

The name of the metric.

*/ inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; } /** *

The name of the metric.

*/ inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; } /** *

The name of the metric.

*/ inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); } /** *

The name of the metric.

*/ inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); } /** *

The name of the metric.

*/ inline MetricData& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;} /** *

The name of the metric.

*/ inline MetricData& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;} /** *

The name of the metric.

*/ inline MetricData& WithMetricName(const char* value) { SetMetricName(value); return *this;} /** *

The value of the metric.

*/ inline double GetValue() const{ return m_value; } /** *

The value of the metric.

*/ inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; } /** *

The value of the metric.

*/ inline void SetValue(double value) { m_valueHasBeenSet = true; m_value = value; } /** *

The value of the metric.

*/ inline MetricData& WithValue(double value) { SetValue(value); return *this;} /** *

The date and time that the algorithm emitted the metric.

*/ inline const Aws::Utils::DateTime& GetTimestamp() const{ return m_timestamp; } /** *

The date and time that the algorithm emitted the metric.

*/ inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; } /** *

The date and time that the algorithm emitted the metric.

*/ inline void SetTimestamp(const Aws::Utils::DateTime& value) { m_timestampHasBeenSet = true; m_timestamp = value; } /** *

The date and time that the algorithm emitted the metric.

*/ inline void SetTimestamp(Aws::Utils::DateTime&& value) { m_timestampHasBeenSet = true; m_timestamp = std::move(value); } /** *

The date and time that the algorithm emitted the metric.

*/ inline MetricData& WithTimestamp(const Aws::Utils::DateTime& value) { SetTimestamp(value); return *this;} /** *

The date and time that the algorithm emitted the metric.

*/ inline MetricData& WithTimestamp(Aws::Utils::DateTime&& value) { SetTimestamp(std::move(value)); return *this;} private: Aws::String m_metricName; bool m_metricNameHasBeenSet = false; double m_value; bool m_valueHasBeenSet = false; Aws::Utils::DateTime m_timestamp; bool m_timestampHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws