AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
LoadForecast.h
1
6#pragma once
7#include <aws/autoscaling/AutoScaling_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/autoscaling/model/PredictiveScalingMetricSpecification.h>
11#include <aws/core/utils/DateTime.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace AutoScaling
24{
25namespace Model
26{
27
37 {
38 public:
39 AWS_AUTOSCALING_API LoadForecast();
40 AWS_AUTOSCALING_API LoadForecast(const Aws::Utils::Xml::XmlNode& xmlNode);
41 AWS_AUTOSCALING_API LoadForecast& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
42
43 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
44 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
45
46
48
51 inline const Aws::Vector<Aws::Utils::DateTime>& GetTimestamps() const{ return m_timestamps; }
52 inline bool TimestampsHasBeenSet() const { return m_timestampsHasBeenSet; }
53 inline void SetTimestamps(const Aws::Vector<Aws::Utils::DateTime>& value) { m_timestampsHasBeenSet = true; m_timestamps = value; }
54 inline void SetTimestamps(Aws::Vector<Aws::Utils::DateTime>&& value) { m_timestampsHasBeenSet = true; m_timestamps = std::move(value); }
55 inline LoadForecast& WithTimestamps(const Aws::Vector<Aws::Utils::DateTime>& value) { SetTimestamps(value); return *this;}
56 inline LoadForecast& WithTimestamps(Aws::Vector<Aws::Utils::DateTime>&& value) { SetTimestamps(std::move(value)); return *this;}
57 inline LoadForecast& AddTimestamps(const Aws::Utils::DateTime& value) { m_timestampsHasBeenSet = true; m_timestamps.push_back(value); return *this; }
58 inline LoadForecast& AddTimestamps(Aws::Utils::DateTime&& value) { m_timestampsHasBeenSet = true; m_timestamps.push_back(std::move(value)); return *this; }
60
62
65 inline const Aws::Vector<double>& GetValues() const{ return m_values; }
66 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
67 inline void SetValues(const Aws::Vector<double>& value) { m_valuesHasBeenSet = true; m_values = value; }
68 inline void SetValues(Aws::Vector<double>&& value) { m_valuesHasBeenSet = true; m_values = std::move(value); }
69 inline LoadForecast& WithValues(const Aws::Vector<double>& value) { SetValues(value); return *this;}
70 inline LoadForecast& WithValues(Aws::Vector<double>&& value) { SetValues(std::move(value)); return *this;}
71 inline LoadForecast& AddValues(double value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
73
75
78 inline const PredictiveScalingMetricSpecification& GetMetricSpecification() const{ return m_metricSpecification; }
79 inline bool MetricSpecificationHasBeenSet() const { return m_metricSpecificationHasBeenSet; }
80 inline void SetMetricSpecification(const PredictiveScalingMetricSpecification& value) { m_metricSpecificationHasBeenSet = true; m_metricSpecification = value; }
81 inline void SetMetricSpecification(PredictiveScalingMetricSpecification&& value) { m_metricSpecificationHasBeenSet = true; m_metricSpecification = std::move(value); }
85 private:
86
88 bool m_timestampsHasBeenSet = false;
89
90 Aws::Vector<double> m_values;
91 bool m_valuesHasBeenSet = false;
92
93 PredictiveScalingMetricSpecification m_metricSpecification;
94 bool m_metricSpecificationHasBeenSet = false;
95 };
96
97} // namespace Model
98} // namespace AutoScaling
99} // namespace Aws
LoadForecast & WithValues(const Aws::Vector< double > &value)
LoadForecast & WithTimestamps(Aws::Vector< Aws::Utils::DateTime > &&value)
AWS_AUTOSCALING_API LoadForecast()
const Aws::Vector< Aws::Utils::DateTime > & GetTimestamps() const
LoadForecast & AddTimestamps(Aws::Utils::DateTime &&value)
LoadForecast & WithValues(Aws::Vector< double > &&value)
void SetValues(Aws::Vector< double > &&value)
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
LoadForecast & WithMetricSpecification(const PredictiveScalingMetricSpecification &value)
LoadForecast & AddTimestamps(const Aws::Utils::DateTime &value)
void SetTimestamps(const Aws::Vector< Aws::Utils::DateTime > &value)
void SetMetricSpecification(const PredictiveScalingMetricSpecification &value)
const PredictiveScalingMetricSpecification & GetMetricSpecification() const
AWS_AUTOSCALING_API LoadForecast(const Aws::Utils::Xml::XmlNode &xmlNode)
LoadForecast & AddValues(double value)
const Aws::Vector< double > & GetValues() const
LoadForecast & WithTimestamps(const Aws::Vector< Aws::Utils::DateTime > &value)
LoadForecast & WithMetricSpecification(PredictiveScalingMetricSpecification &&value)
void SetTimestamps(Aws::Vector< Aws::Utils::DateTime > &&value)
void SetValues(const Aws::Vector< double > &value)
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_AUTOSCALING_API LoadForecast & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetMetricSpecification(PredictiveScalingMetricSpecification &&value)
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream