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

Represents a single value in the forecast data used for predictive * scaling.

See Also:

AWS * API Reference

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

The time stamp for the data point in UTC format.

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

The time stamp for the data point in UTC format.

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

The time stamp for the data point in UTC format.

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

The time stamp for the data point in UTC format.

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

The time stamp for the data point in UTC format.

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

The time stamp for the data point in UTC format.

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

The value of the data point.

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

The value of the data point.

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

The value of the data point.

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

The value of the data point.

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