/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The raw metric data to associate with the resource.See Also:
* AWS
* API Reference
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