AWS SDK for C++  1.9.108
AWS SDK for C++
LoadForecast.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Xml
19 {
20  class XmlNode;
21 } // namespace Xml
22 } // namespace Utils
23 namespace AutoScaling
24 {
25 namespace Model
26 {
27 
37  {
38  public:
42 
43  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
44  void OutputToStream(Aws::OStream& oStream, const char* location) const;
45 
46 
50  inline const Aws::Vector<Aws::Utils::DateTime>& GetTimestamps() const{ return m_timestamps; }
51 
55  inline bool TimestampsHasBeenSet() const { return m_timestampsHasBeenSet; }
56 
60  inline void SetTimestamps(const Aws::Vector<Aws::Utils::DateTime>& value) { m_timestampsHasBeenSet = true; m_timestamps = value; }
61 
65  inline void SetTimestamps(Aws::Vector<Aws::Utils::DateTime>&& value) { m_timestampsHasBeenSet = true; m_timestamps = std::move(value); }
66 
70  inline LoadForecast& WithTimestamps(const Aws::Vector<Aws::Utils::DateTime>& value) { SetTimestamps(value); return *this;}
71 
75  inline LoadForecast& WithTimestamps(Aws::Vector<Aws::Utils::DateTime>&& value) { SetTimestamps(std::move(value)); return *this;}
76 
80  inline LoadForecast& AddTimestamps(const Aws::Utils::DateTime& value) { m_timestampsHasBeenSet = true; m_timestamps.push_back(value); return *this; }
81 
85  inline LoadForecast& AddTimestamps(Aws::Utils::DateTime&& value) { m_timestampsHasBeenSet = true; m_timestamps.push_back(std::move(value)); return *this; }
86 
87 
91  inline const Aws::Vector<double>& GetValues() const{ return m_values; }
92 
96  inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
97 
101  inline void SetValues(const Aws::Vector<double>& value) { m_valuesHasBeenSet = true; m_values = value; }
102 
106  inline void SetValues(Aws::Vector<double>&& value) { m_valuesHasBeenSet = true; m_values = std::move(value); }
107 
111  inline LoadForecast& WithValues(const Aws::Vector<double>& value) { SetValues(value); return *this;}
112 
116  inline LoadForecast& WithValues(Aws::Vector<double>&& value) { SetValues(std::move(value)); return *this;}
117 
121  inline LoadForecast& AddValues(double value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
122 
123 
127  inline const PredictiveScalingMetricSpecification& GetMetricSpecification() const{ return m_metricSpecification; }
128 
132  inline bool MetricSpecificationHasBeenSet() const { return m_metricSpecificationHasBeenSet; }
133 
137  inline void SetMetricSpecification(const PredictiveScalingMetricSpecification& value) { m_metricSpecificationHasBeenSet = true; m_metricSpecification = value; }
138 
142  inline void SetMetricSpecification(PredictiveScalingMetricSpecification&& value) { m_metricSpecificationHasBeenSet = true; m_metricSpecification = std::move(value); }
143 
147  inline LoadForecast& WithMetricSpecification(const PredictiveScalingMetricSpecification& value) { SetMetricSpecification(value); return *this;}
148 
152  inline LoadForecast& WithMetricSpecification(PredictiveScalingMetricSpecification&& value) { SetMetricSpecification(std::move(value)); return *this;}
153 
154  private:
155 
157  bool m_timestampsHasBeenSet;
158 
159  Aws::Vector<double> m_values;
160  bool m_valuesHasBeenSet;
161 
162  PredictiveScalingMetricSpecification m_metricSpecification;
163  bool m_metricSpecificationHasBeenSet;
164  };
165 
166 } // namespace Model
167 } // namespace AutoScaling
168 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::AutoScaling::Model::PredictiveScalingMetricSpecification
Definition: PredictiveScalingMetricSpecification.h:60
Aws::AutoScaling::Model::LoadForecast::ValuesHasBeenSet
bool ValuesHasBeenSet() const
Definition: LoadForecast.h:96
Aws::AutoScaling::Model::LoadForecast::TimestampsHasBeenSet
bool TimestampsHasBeenSet() const
Definition: LoadForecast.h:55
DateTime.h
Aws::AutoScaling::Model::LoadForecast::SetMetricSpecification
void SetMetricSpecification(const PredictiveScalingMetricSpecification &value)
Definition: LoadForecast.h:137
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::AutoScaling::Model::LoadForecast::MetricSpecificationHasBeenSet
bool MetricSpecificationHasBeenSet() const
Definition: LoadForecast.h:132
AWSStreamFwd.h
AWSVector.h
Aws::AutoScaling::Model::LoadForecast::WithTimestamps
LoadForecast & WithTimestamps(Aws::Vector< Aws::Utils::DateTime > &&value)
Definition: LoadForecast.h:75
Aws::AutoScaling::Model::LoadForecast::LoadForecast
LoadForecast(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::AutoScaling::Model::LoadForecast::WithTimestamps
LoadForecast & WithTimestamps(const Aws::Vector< Aws::Utils::DateTime > &value)
Definition: LoadForecast.h:70
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::AutoScaling::Model::LoadForecast::AddTimestamps
LoadForecast & AddTimestamps(const Aws::Utils::DateTime &value)
Definition: LoadForecast.h:80
Aws::AutoScaling::Model::LoadForecast::GetValues
const Aws::Vector< double > & GetValues() const
Definition: LoadForecast.h:91
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::AutoScaling::Model::LoadForecast::WithValues
LoadForecast & WithValues(const Aws::Vector< double > &value)
Definition: LoadForecast.h:111
PredictiveScalingMetricSpecification.h
Aws::AutoScaling::Model::LoadForecast
Definition: LoadForecast.h:37
Aws::AutoScaling::Model::LoadForecast::SetMetricSpecification
void SetMetricSpecification(PredictiveScalingMetricSpecification &&value)
Definition: LoadForecast.h:142
AWS_AUTOSCALING_API
#define AWS_AUTOSCALING_API
Definition: AutoScaling_EXPORTS.h:28
Aws::AutoScaling::Model::LoadForecast::AddValues
LoadForecast & AddValues(double value)
Definition: LoadForecast.h:121
Aws::AutoScaling::Model::LoadForecast::SetTimestamps
void SetTimestamps(Aws::Vector< Aws::Utils::DateTime > &&value)
Definition: LoadForecast.h:65
Aws::AutoScaling::Model::LoadForecast::WithMetricSpecification
LoadForecast & WithMetricSpecification(PredictiveScalingMetricSpecification &&value)
Definition: LoadForecast.h:152
Aws::AutoScaling::Model::LoadForecast::GetMetricSpecification
const PredictiveScalingMetricSpecification & GetMetricSpecification() const
Definition: LoadForecast.h:127
Aws::AutoScaling::Model::LoadForecast::SetValues
void SetValues(Aws::Vector< double > &&value)
Definition: LoadForecast.h:106
Aws::AutoScaling::Model::LoadForecast::AddTimestamps
LoadForecast & AddTimestamps(Aws::Utils::DateTime &&value)
Definition: LoadForecast.h:85
AutoScaling_EXPORTS.h
Aws::AutoScaling::Model::LoadForecast::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws
Definition: AccessManagementClient.h:15
Aws::AutoScaling::Model::LoadForecast::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::AutoScaling::Model::LoadForecast::SetValues
void SetValues(const Aws::Vector< double > &value)
Definition: LoadForecast.h:101
Aws::AutoScaling::Model::LoadForecast::WithMetricSpecification
LoadForecast & WithMetricSpecification(const PredictiveScalingMetricSpecification &value)
Definition: LoadForecast.h:147
index
int index
Definition: cJSON.h:181
Aws::AutoScaling::Model::LoadForecast::SetTimestamps
void SetTimestamps(const Aws::Vector< Aws::Utils::DateTime > &value)
Definition: LoadForecast.h:60
Aws::AutoScaling::Model::LoadForecast::operator=
LoadForecast & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::AutoScaling::Model::LoadForecast::GetTimestamps
const Aws::Vector< Aws::Utils::DateTime > & GetTimestamps() const
Definition: LoadForecast.h:50
Aws::AutoScaling::Model::LoadForecast::LoadForecast
LoadForecast()
Aws::AutoScaling::Model::LoadForecast::WithValues
LoadForecast & WithValues(Aws::Vector< double > &&value)
Definition: LoadForecast.h:116