AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
CapacityForecast.h
1
6#pragma once
7#include <aws/application-autoscaling/ApplicationAutoScaling_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ApplicationAutoScaling {
21namespace Model {
22
32 public:
33 AWS_APPLICATIONAUTOSCALING_API CapacityForecast() = default;
34 AWS_APPLICATIONAUTOSCALING_API CapacityForecast(Aws::Utils::Json::JsonView jsonValue);
35 AWS_APPLICATIONAUTOSCALING_API CapacityForecast& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_APPLICATIONAUTOSCALING_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::Vector<Aws::Utils::DateTime>& GetTimestamps() const { return m_timestamps; }
43 inline bool TimestampsHasBeenSet() const { return m_timestampsHasBeenSet; }
44 template <typename TimestampsT = Aws::Vector<Aws::Utils::DateTime>>
45 void SetTimestamps(TimestampsT&& value) {
46 m_timestampsHasBeenSet = true;
47 m_timestamps = std::forward<TimestampsT>(value);
48 }
49 template <typename TimestampsT = Aws::Vector<Aws::Utils::DateTime>>
50 CapacityForecast& WithTimestamps(TimestampsT&& value) {
51 SetTimestamps(std::forward<TimestampsT>(value));
52 return *this;
53 }
54 template <typename TimestampsT = Aws::Utils::DateTime>
55 CapacityForecast& AddTimestamps(TimestampsT&& value) {
56 m_timestampsHasBeenSet = true;
57 m_timestamps.emplace_back(std::forward<TimestampsT>(value));
58 return *this;
59 }
61
63
66 inline const Aws::Vector<double>& GetValues() const { return m_values; }
67 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
68 template <typename ValuesT = Aws::Vector<double>>
69 void SetValues(ValuesT&& value) {
70 m_valuesHasBeenSet = true;
71 m_values = std::forward<ValuesT>(value);
72 }
73 template <typename ValuesT = Aws::Vector<double>>
74 CapacityForecast& WithValues(ValuesT&& value) {
75 SetValues(std::forward<ValuesT>(value));
76 return *this;
77 }
78 inline CapacityForecast& AddValues(double value) {
79 m_valuesHasBeenSet = true;
80 m_values.push_back(value);
81 return *this;
82 }
84 private:
86
87 Aws::Vector<double> m_values;
88 bool m_timestampsHasBeenSet = false;
89 bool m_valuesHasBeenSet = false;
90};
91
92} // namespace Model
93} // namespace ApplicationAutoScaling
94} // 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