/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace PI { namespace Model { /** *

A timestamp, and a single numerical value, which together represent a * measurement at a particular point in time.

See Also:

AWS API * Reference

*/ class AWS_PI_API DataPoint { public: DataPoint(); DataPoint(Aws::Utils::Json::JsonView jsonValue); DataPoint& operator=(Aws::Utils::Json::JsonView jsonValue); Aws::Utils::Json::JsonValue Jsonize() const; /** *

The time, in epoch format, associated with a particular * Value.

*/ inline const Aws::Utils::DateTime& GetTimestamp() const{ return m_timestamp; } /** *

The time, in epoch format, associated with a particular * Value.

*/ inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; } /** *

The time, in epoch format, associated with a particular * Value.

*/ inline void SetTimestamp(const Aws::Utils::DateTime& value) { m_timestampHasBeenSet = true; m_timestamp = value; } /** *

The time, in epoch format, associated with a particular * Value.

*/ inline void SetTimestamp(Aws::Utils::DateTime&& value) { m_timestampHasBeenSet = true; m_timestamp = std::move(value); } /** *

The time, in epoch format, associated with a particular * Value.

*/ inline DataPoint& WithTimestamp(const Aws::Utils::DateTime& value) { SetTimestamp(value); return *this;} /** *

The time, in epoch format, associated with a particular * Value.

*/ inline DataPoint& WithTimestamp(Aws::Utils::DateTime&& value) { SetTimestamp(std::move(value)); return *this;} /** *

The actual value associated with a particular Timestamp.

*/ inline double GetValue() const{ return m_value; } /** *

The actual value associated with a particular Timestamp.

*/ inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; } /** *

The actual value associated with a particular Timestamp.

*/ inline void SetValue(double value) { m_valueHasBeenSet = true; m_value = value; } /** *

The actual value associated with a particular Timestamp.

*/ inline DataPoint& WithValue(double value) { SetValue(value); return *this;} private: Aws::Utils::DateTime m_timestamp; bool m_timestampHasBeenSet; double m_value; bool m_valueHasBeenSet; }; } // namespace Model } // namespace PI } // namespace Aws