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

The timeseries data type represents the values of a measure over time. A time * series is an array of rows of timestamps and measure values, with rows sorted in * ascending order of time. A TimeSeriesDataPoint is a single data point in the * time series. It represents a tuple of (time, measure value) in a time series. *

See Also:

AWS * API Reference

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

The timestamp when the measure value was collected.

*/ inline const Aws::String& GetTime() const{ return m_time; } /** *

The timestamp when the measure value was collected.

*/ inline bool TimeHasBeenSet() const { return m_timeHasBeenSet; } /** *

The timestamp when the measure value was collected.

*/ inline void SetTime(const Aws::String& value) { m_timeHasBeenSet = true; m_time = value; } /** *

The timestamp when the measure value was collected.

*/ inline void SetTime(Aws::String&& value) { m_timeHasBeenSet = true; m_time = std::move(value); } /** *

The timestamp when the measure value was collected.

*/ inline void SetTime(const char* value) { m_timeHasBeenSet = true; m_time.assign(value); } /** *

The timestamp when the measure value was collected.

*/ inline TimeSeriesDataPoint& WithTime(const Aws::String& value) { SetTime(value); return *this;} /** *

The timestamp when the measure value was collected.

*/ inline TimeSeriesDataPoint& WithTime(Aws::String&& value) { SetTime(std::move(value)); return *this;} /** *

The timestamp when the measure value was collected.

*/ inline TimeSeriesDataPoint& WithTime(const char* value) { SetTime(value); return *this;} /** *

The measure value for the data point.

*/ AWS_TIMESTREAMQUERY_API const Datum& GetValue() const; /** *

The measure value for the data point.

*/ AWS_TIMESTREAMQUERY_API bool ValueHasBeenSet() const; /** *

The measure value for the data point.

*/ AWS_TIMESTREAMQUERY_API void SetValue(const Datum& value); /** *

The measure value for the data point.

*/ AWS_TIMESTREAMQUERY_API void SetValue(Datum&& value); /** *

The measure value for the data point.

*/ AWS_TIMESTREAMQUERY_API TimeSeriesDataPoint& WithValue(const Datum& value); /** *

The measure value for the data point.

*/ AWS_TIMESTREAMQUERY_API TimeSeriesDataPoint& WithValue(Datum&& value); private: Aws::String m_time; bool m_timeHasBeenSet = false; std::shared_ptr m_value; bool m_valueHasBeenSet = false; }; } // namespace Model } // namespace TimestreamQuery } // namespace Aws