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

A GetPredictiveScalingForecast call returns the capacity * forecast for a predictive scaling policy. This structure includes the data * points for that capacity forecast, along with the timestamps of those data * points.

See Also:

AWS * API Reference

*/ class CapacityForecast { public: AWS_AUTOSCALING_API CapacityForecast(); AWS_AUTOSCALING_API CapacityForecast(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_AUTOSCALING_API CapacityForecast& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

The timestamps for the data points, in UTC format.

*/ inline const Aws::Vector& GetTimestamps() const{ return m_timestamps; } /** *

The timestamps for the data points, in UTC format.

*/ inline bool TimestampsHasBeenSet() const { return m_timestampsHasBeenSet; } /** *

The timestamps for the data points, in UTC format.

*/ inline void SetTimestamps(const Aws::Vector& value) { m_timestampsHasBeenSet = true; m_timestamps = value; } /** *

The timestamps for the data points, in UTC format.

*/ inline void SetTimestamps(Aws::Vector&& value) { m_timestampsHasBeenSet = true; m_timestamps = std::move(value); } /** *

The timestamps for the data points, in UTC format.

*/ inline CapacityForecast& WithTimestamps(const Aws::Vector& value) { SetTimestamps(value); return *this;} /** *

The timestamps for the data points, in UTC format.

*/ inline CapacityForecast& WithTimestamps(Aws::Vector&& value) { SetTimestamps(std::move(value)); return *this;} /** *

The timestamps for the data points, in UTC format.

*/ inline CapacityForecast& AddTimestamps(const Aws::Utils::DateTime& value) { m_timestampsHasBeenSet = true; m_timestamps.push_back(value); return *this; } /** *

The timestamps for the data points, in UTC format.

*/ inline CapacityForecast& AddTimestamps(Aws::Utils::DateTime&& value) { m_timestampsHasBeenSet = true; m_timestamps.push_back(std::move(value)); return *this; } /** *

The values of the data points.

*/ inline const Aws::Vector& GetValues() const{ return m_values; } /** *

The values of the data points.

*/ inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; } /** *

The values of the data points.

*/ inline void SetValues(const Aws::Vector& value) { m_valuesHasBeenSet = true; m_values = value; } /** *

The values of the data points.

*/ inline void SetValues(Aws::Vector&& value) { m_valuesHasBeenSet = true; m_values = std::move(value); } /** *

The values of the data points.

*/ inline CapacityForecast& WithValues(const Aws::Vector& value) { SetValues(value); return *this;} /** *

The values of the data points.

*/ inline CapacityForecast& WithValues(Aws::Vector&& value) { SetValues(std::move(value)); return *this;} /** *

The values of the data points.

*/ inline CapacityForecast& AddValues(double value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; } private: Aws::Vector m_timestamps; bool m_timestampsHasBeenSet = false; Aws::Vector m_values; bool m_valuesHasBeenSet = false; }; } // namespace Model } // namespace AutoScaling } // namespace Aws