/** * 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 SageMakerMetrics { namespace Model { /** *

The raw metric data to associate with the resource.

See Also:

* AWS * API Reference

*/ class RawMetricData { public: AWS_SAGEMAKERMETRICS_API RawMetricData(); AWS_SAGEMAKERMETRICS_API RawMetricData(Aws::Utils::Json::JsonView jsonValue); AWS_SAGEMAKERMETRICS_API RawMetricData& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SAGEMAKERMETRICS_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 RawMetricData& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;} /** *

The name of the metric.

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

The name of the metric.

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

The time that the metric was recorded.

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

The time that the metric was recorded.

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

The time that the metric was recorded.

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

The time that the metric was recorded.

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

The time that the metric was recorded.

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

The time that the metric was recorded.

*/ inline RawMetricData& WithTimestamp(Aws::Utils::DateTime&& value) { SetTimestamp(std::move(value)); return *this;} /** *

The metric step (epoch).

*/ inline int GetStep() const{ return m_step; } /** *

The metric step (epoch).

*/ inline bool StepHasBeenSet() const { return m_stepHasBeenSet; } /** *

The metric step (epoch).

*/ inline void SetStep(int value) { m_stepHasBeenSet = true; m_step = value; } /** *

The metric step (epoch).

*/ inline RawMetricData& WithStep(int value) { SetStep(value); return *this;} /** *

The metric value.

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

The metric value.

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

The metric value.

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

The metric value.

*/ inline RawMetricData& WithValue(double value) { SetValue(value); return *this;} private: Aws::String m_metricName; bool m_metricNameHasBeenSet = false; Aws::Utils::DateTime m_timestamp; bool m_timestampHasBeenSet = false; int m_step; bool m_stepHasBeenSet = false; double m_value; bool m_valueHasBeenSet = false; }; } // namespace Model } // namespace SageMakerMetrics } // namespace Aws