AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
LoadForecast.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/application-autoscaling/model/PredictiveScalingMetricSpecification.h>
10#include <aws/core/utils/DateTime.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace ApplicationAutoScaling
24{
25namespace Model
26{
27
37 {
38 public:
39 AWS_APPLICATIONAUTOSCALING_API LoadForecast() = default;
40 AWS_APPLICATIONAUTOSCALING_API LoadForecast(Aws::Utils::Json::JsonView jsonValue);
41 AWS_APPLICATIONAUTOSCALING_API LoadForecast& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_APPLICATIONAUTOSCALING_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::Vector<Aws::Utils::DateTime>& GetTimestamps() const { return m_timestamps; }
50 inline bool TimestampsHasBeenSet() const { return m_timestampsHasBeenSet; }
51 template<typename TimestampsT = Aws::Vector<Aws::Utils::DateTime>>
52 void SetTimestamps(TimestampsT&& value) { m_timestampsHasBeenSet = true; m_timestamps = std::forward<TimestampsT>(value); }
53 template<typename TimestampsT = Aws::Vector<Aws::Utils::DateTime>>
54 LoadForecast& WithTimestamps(TimestampsT&& value) { SetTimestamps(std::forward<TimestampsT>(value)); return *this;}
55 template<typename TimestampsT = Aws::Utils::DateTime>
56 LoadForecast& AddTimestamps(TimestampsT&& value) { m_timestampsHasBeenSet = true; m_timestamps.emplace_back(std::forward<TimestampsT>(value)); return *this; }
58
60
63 inline const Aws::Vector<double>& GetValues() const { return m_values; }
64 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
65 template<typename ValuesT = Aws::Vector<double>>
66 void SetValues(ValuesT&& value) { m_valuesHasBeenSet = true; m_values = std::forward<ValuesT>(value); }
67 template<typename ValuesT = Aws::Vector<double>>
68 LoadForecast& WithValues(ValuesT&& value) { SetValues(std::forward<ValuesT>(value)); return *this;}
69 inline LoadForecast& AddValues(double value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
71
73
76 inline const PredictiveScalingMetricSpecification& GetMetricSpecification() const { return m_metricSpecification; }
77 inline bool MetricSpecificationHasBeenSet() const { return m_metricSpecificationHasBeenSet; }
78 template<typename MetricSpecificationT = PredictiveScalingMetricSpecification>
79 void SetMetricSpecification(MetricSpecificationT&& value) { m_metricSpecificationHasBeenSet = true; m_metricSpecification = std::forward<MetricSpecificationT>(value); }
80 template<typename MetricSpecificationT = PredictiveScalingMetricSpecification>
81 LoadForecast& WithMetricSpecification(MetricSpecificationT&& value) { SetMetricSpecification(std::forward<MetricSpecificationT>(value)); return *this;}
83 private:
84
86 bool m_timestampsHasBeenSet = false;
87
88 Aws::Vector<double> m_values;
89 bool m_valuesHasBeenSet = false;
90
91 PredictiveScalingMetricSpecification m_metricSpecification;
92 bool m_metricSpecificationHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace ApplicationAutoScaling
97} // namespace Aws
AWS_APPLICATIONAUTOSCALING_API LoadForecast(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::Utils::DateTime > & GetTimestamps() const
AWS_APPLICATIONAUTOSCALING_API Aws::Utils::Json::JsonValue Jsonize() const
LoadForecast & WithMetricSpecification(MetricSpecificationT &&value)
AWS_APPLICATIONAUTOSCALING_API LoadForecast & operator=(Aws::Utils::Json::JsonView jsonValue)
const PredictiveScalingMetricSpecification & GetMetricSpecification() const
void SetMetricSpecification(MetricSpecificationT &&value)
LoadForecast & WithValues(ValuesT &&value)
AWS_APPLICATIONAUTOSCALING_API LoadForecast()=default
LoadForecast & AddTimestamps(TimestampsT &&value)
LoadForecast & WithTimestamps(TimestampsT &&value)
const Aws::Vector< double > & GetValues() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue