/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include A metric.See Also:
AWS API
* Reference
The time the metric value was reported.
*/ inline const Aws::Utils::DateTime& GetTimestamp() const{ return m_timestamp; } /** *The time the metric value was reported.
*/ inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; } /** *The time the metric value was reported.
*/ inline void SetTimestamp(const Aws::Utils::DateTime& value) { m_timestampHasBeenSet = true; m_timestamp = value; } /** *The time the metric value was reported.
*/ inline void SetTimestamp(Aws::Utils::DateTime&& value) { m_timestampHasBeenSet = true; m_timestamp = std::move(value); } /** *The time the metric value was reported.
*/ inline MetricDatum& WithTimestamp(const Aws::Utils::DateTime& value) { SetTimestamp(value); return *this;} /** *The time the metric value was reported.
*/ inline MetricDatum& WithTimestamp(Aws::Utils::DateTime&& value) { SetTimestamp(std::move(value)); return *this;} /** *The value reported for the metric.
*/ inline const MetricValue& GetValue() const{ return m_value; } /** *The value reported for the metric.
*/ inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; } /** *The value reported for the metric.
*/ inline void SetValue(const MetricValue& value) { m_valueHasBeenSet = true; m_value = value; } /** *The value reported for the metric.
*/ inline void SetValue(MetricValue&& value) { m_valueHasBeenSet = true; m_value = std::move(value); } /** *The value reported for the metric.
*/ inline MetricDatum& WithValue(const MetricValue& value) { SetValue(value); return *this;} /** *The value reported for the metric.
*/ inline MetricDatum& WithValue(MetricValue&& value) { SetValue(std::move(value)); return *this;} private: Aws::Utils::DateTime m_timestamp; bool m_timestampHasBeenSet = false; MetricValue m_value; bool m_valueHasBeenSet = false; }; } // namespace Model } // namespace IoT } // namespace Aws