/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Information required for edge device metrics.See Also:
AWS
* API Reference
The dimension of metrics published.
*/ inline const Aws::String& GetDimension() const{ return m_dimension; } /** *The dimension of metrics published.
*/ inline bool DimensionHasBeenSet() const { return m_dimensionHasBeenSet; } /** *The dimension of metrics published.
*/ inline void SetDimension(const Aws::String& value) { m_dimensionHasBeenSet = true; m_dimension = value; } /** *The dimension of metrics published.
*/ inline void SetDimension(Aws::String&& value) { m_dimensionHasBeenSet = true; m_dimension = std::move(value); } /** *The dimension of metrics published.
*/ inline void SetDimension(const char* value) { m_dimensionHasBeenSet = true; m_dimension.assign(value); } /** *The dimension of metrics published.
*/ inline EdgeMetric& WithDimension(const Aws::String& value) { SetDimension(value); return *this;} /** *The dimension of metrics published.
*/ inline EdgeMetric& WithDimension(Aws::String&& value) { SetDimension(std::move(value)); return *this;} /** *The dimension of metrics published.
*/ inline EdgeMetric& WithDimension(const char* value) { SetDimension(value); return *this;} /** *Returns the name of the metric.
*/ inline const Aws::String& GetMetricName() const{ return m_metricName; } /** *Returns the name of the metric.
*/ inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; } /** *Returns the name of the metric.
*/ inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; } /** *Returns the name of the metric.
*/ inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); } /** *Returns the name of the metric.
*/ inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); } /** *Returns the name of the metric.
*/ inline EdgeMetric& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;} /** *Returns the name of the metric.
*/ inline EdgeMetric& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;} /** *Returns the name of the metric.
*/ inline EdgeMetric& WithMetricName(const char* value) { SetMetricName(value); return *this;} /** *Returns the value of the metric.
*/ inline double GetValue() const{ return m_value; } /** *Returns the value of the metric.
*/ inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; } /** *Returns the value of the metric.
*/ inline void SetValue(double value) { m_valueHasBeenSet = true; m_value = value; } /** *Returns the value of the metric.
*/ inline EdgeMetric& WithValue(double value) { SetValue(value); return *this;} /** *Timestamp of when the metric was requested.
*/ inline const Aws::Utils::DateTime& GetTimestamp() const{ return m_timestamp; } /** *Timestamp of when the metric was requested.
*/ inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; } /** *Timestamp of when the metric was requested.
*/ inline void SetTimestamp(const Aws::Utils::DateTime& value) { m_timestampHasBeenSet = true; m_timestamp = value; } /** *Timestamp of when the metric was requested.
*/ inline void SetTimestamp(Aws::Utils::DateTime&& value) { m_timestampHasBeenSet = true; m_timestamp = std::move(value); } /** *Timestamp of when the metric was requested.
*/ inline EdgeMetric& WithTimestamp(const Aws::Utils::DateTime& value) { SetTimestamp(value); return *this;} /** *Timestamp of when the metric was requested.
*/ inline EdgeMetric& WithTimestamp(Aws::Utils::DateTime&& value) { SetTimestamp(std::move(value)); return *this;} private: Aws::String m_dimension; bool m_dimensionHasBeenSet = false; 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 SagemakerEdgeManager } // namespace Aws