7#include <aws/sagemaker-edge/SagemakerEdgeManager_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
22namespace SagemakerEdgeManager
47 template<
typename DimensionT = Aws::String>
48 void SetDimension(DimensionT&& value) { m_dimensionHasBeenSet =
true; m_dimension = std::forward<DimensionT>(value); }
49 template<
typename DimensionT = Aws::String>
59 template<
typename MetricNameT = Aws::String>
60 void SetMetricName(MetricNameT&& value) { m_metricNameHasBeenSet =
true; m_metricName = std::forward<MetricNameT>(value); }
61 template<
typename MetricNameT = Aws::String>
69 inline double GetValue()
const {
return m_value; }
71 inline void SetValue(
double value) { m_valueHasBeenSet =
true; m_value = value; }
81 template<
typename TimestampT = Aws::Utils::DateTime>
82 void SetTimestamp(TimestampT&& value) { m_timestampHasBeenSet =
true; m_timestamp = std::forward<TimestampT>(value); }
83 template<
typename TimestampT = Aws::Utils::DateTime>
89 bool m_dimensionHasBeenSet =
false;
92 bool m_metricNameHasBeenSet =
false;
95 bool m_valueHasBeenSet =
false;
98 bool m_timestampHasBeenSet =
false;
bool TimestampHasBeenSet() const
const Aws::String & GetMetricName() const
EdgeMetric & WithValue(double value)
void SetValue(double value)
EdgeMetric & WithDimension(DimensionT &&value)
bool ValueHasBeenSet() const
void SetTimestamp(TimestampT &&value)
const Aws::String & GetDimension() const
bool DimensionHasBeenSet() const
void SetMetricName(MetricNameT &&value)
EdgeMetric & WithTimestamp(TimestampT &&value)
AWS_SAGEMAKEREDGEMANAGER_API EdgeMetric(Aws::Utils::Json::JsonView jsonValue)
void SetDimension(DimensionT &&value)
AWS_SAGEMAKEREDGEMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
bool MetricNameHasBeenSet() const
const Aws::Utils::DateTime & GetTimestamp() const
AWS_SAGEMAKEREDGEMANAGER_API EdgeMetric()=default
EdgeMetric & WithMetricName(MetricNameT &&value)
AWS_SAGEMAKEREDGEMANAGER_API EdgeMetric & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue