7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
48 template<
typename MetricNameT = Aws::String>
49 void SetMetricName(MetricNameT&& value) { m_metricNameHasBeenSet =
true; m_metricName = std::forward<MetricNameT>(value); }
50 template<
typename MetricNameT = Aws::String>
58 inline double GetValue()
const {
return m_value; }
60 inline void SetValue(
double value) { m_valueHasBeenSet =
true; m_value = value; }
70 template<
typename TimestampT = Aws::Utils::DateTime>
71 void SetTimestamp(TimestampT&& value) { m_timestampHasBeenSet =
true; m_timestamp = std::forward<TimestampT>(value); }
72 template<
typename TimestampT = Aws::Utils::DateTime>
78 bool m_metricNameHasBeenSet =
false;
81 bool m_valueHasBeenSet =
false;
84 bool m_timestampHasBeenSet =
false;
const Aws::Utils::DateTime & GetTimestamp() const
bool ValueHasBeenSet() const
AWS_SAGEMAKER_API MetricData(Aws::Utils::Json::JsonView jsonValue)
MetricData & WithMetricName(MetricNameT &&value)
void SetValue(double value)
AWS_SAGEMAKER_API MetricData & operator=(Aws::Utils::Json::JsonView jsonValue)
MetricData & WithValue(double value)
bool MetricNameHasBeenSet() const
const Aws::String & GetMetricName() const
MetricData & WithTimestamp(TimestampT &&value)
bool TimestampHasBeenSet() const
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetMetricName(MetricNameT &&value)
void SetTimestamp(TimestampT &&value)
AWS_SAGEMAKER_API MetricData()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue