/** * 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 ForecastQueryService { namespace Model { /** *

The forecast value for a specific date. Part of the Forecast * object.

See Also:

AWS * API Reference

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

The timestamp of the specific forecast.

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

The timestamp of the specific forecast.

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

The timestamp of the specific forecast.

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

The timestamp of the specific forecast.

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

The timestamp of the specific forecast.

*/ inline void SetTimestamp(const char* value) { m_timestampHasBeenSet = true; m_timestamp.assign(value); } /** *

The timestamp of the specific forecast.

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

The timestamp of the specific forecast.

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

The timestamp of the specific forecast.

*/ inline DataPoint& WithTimestamp(const char* value) { SetTimestamp(value); return *this;} /** *

The forecast value.

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

The forecast value.

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

The forecast value.

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

The forecast value.

*/ inline DataPoint& WithValue(double value) { SetValue(value); return *this;} private: Aws::String m_timestamp; bool m_timestampHasBeenSet = false; double m_value; bool m_valueHasBeenSet = false; }; } // namespace Model } // namespace ForecastQueryService } // namespace Aws