AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CapacityForecast.h
1
6#pragma once
7#include <aws/application-autoscaling/ApplicationAutoScaling_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/DateTime.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ApplicationAutoScaling
23{
24namespace Model
25{
26
36 {
37 public:
38 AWS_APPLICATIONAUTOSCALING_API CapacityForecast() = default;
39 AWS_APPLICATIONAUTOSCALING_API CapacityForecast(Aws::Utils::Json::JsonView jsonValue);
40 AWS_APPLICATIONAUTOSCALING_API CapacityForecast& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_APPLICATIONAUTOSCALING_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::Vector<Aws::Utils::DateTime>& GetTimestamps() const { return m_timestamps; }
49 inline bool TimestampsHasBeenSet() const { return m_timestampsHasBeenSet; }
50 template<typename TimestampsT = Aws::Vector<Aws::Utils::DateTime>>
51 void SetTimestamps(TimestampsT&& value) { m_timestampsHasBeenSet = true; m_timestamps = std::forward<TimestampsT>(value); }
52 template<typename TimestampsT = Aws::Vector<Aws::Utils::DateTime>>
53 CapacityForecast& WithTimestamps(TimestampsT&& value) { SetTimestamps(std::forward<TimestampsT>(value)); return *this;}
54 template<typename TimestampsT = Aws::Utils::DateTime>
55 CapacityForecast& AddTimestamps(TimestampsT&& value) { m_timestampsHasBeenSet = true; m_timestamps.emplace_back(std::forward<TimestampsT>(value)); return *this; }
57
59
62 inline const Aws::Vector<double>& GetValues() const { return m_values; }
63 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
64 template<typename ValuesT = Aws::Vector<double>>
65 void SetValues(ValuesT&& value) { m_valuesHasBeenSet = true; m_values = std::forward<ValuesT>(value); }
66 template<typename ValuesT = Aws::Vector<double>>
67 CapacityForecast& WithValues(ValuesT&& value) { SetValues(std::forward<ValuesT>(value)); return *this;}
68 inline CapacityForecast& AddValues(double value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
70 private:
71
73 bool m_timestampsHasBeenSet = false;
74
75 Aws::Vector<double> m_values;
76 bool m_valuesHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace ApplicationAutoScaling
81} // namespace Aws
AWS_APPLICATIONAUTOSCALING_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_APPLICATIONAUTOSCALING_API CapacityForecast()=default
CapacityForecast & WithTimestamps(TimestampsT &&value)
CapacityForecast & WithValues(ValuesT &&value)
AWS_APPLICATIONAUTOSCALING_API CapacityForecast(Aws::Utils::Json::JsonView jsonValue)
AWS_APPLICATIONAUTOSCALING_API CapacityForecast & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::Utils::DateTime > & GetTimestamps() const
CapacityForecast & AddTimestamps(TimestampsT &&value)
const Aws::Vector< double > & GetValues() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue