AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CapacityForecast.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/core/utils/DateTime.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace AutoScaling
23{
24namespace Model
25{
26
36 {
37 public:
38 AWS_AUTOSCALING_API CapacityForecast();
39 AWS_AUTOSCALING_API CapacityForecast(const Aws::Utils::Xml::XmlNode& xmlNode);
40 AWS_AUTOSCALING_API CapacityForecast& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
41
42 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
44
45
47
50 inline const Aws::Vector<Aws::Utils::DateTime>& GetTimestamps() const{ return m_timestamps; }
51 inline bool TimestampsHasBeenSet() const { return m_timestampsHasBeenSet; }
52 inline void SetTimestamps(const Aws::Vector<Aws::Utils::DateTime>& value) { m_timestampsHasBeenSet = true; m_timestamps = value; }
53 inline void SetTimestamps(Aws::Vector<Aws::Utils::DateTime>&& value) { m_timestampsHasBeenSet = true; m_timestamps = std::move(value); }
55 inline CapacityForecast& WithTimestamps(Aws::Vector<Aws::Utils::DateTime>&& value) { SetTimestamps(std::move(value)); return *this;}
56 inline CapacityForecast& AddTimestamps(const Aws::Utils::DateTime& value) { m_timestampsHasBeenSet = true; m_timestamps.push_back(value); return *this; }
57 inline CapacityForecast& AddTimestamps(Aws::Utils::DateTime&& value) { m_timestampsHasBeenSet = true; m_timestamps.push_back(std::move(value)); return *this; }
59
61
64 inline const Aws::Vector<double>& GetValues() const{ return m_values; }
65 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
66 inline void SetValues(const Aws::Vector<double>& value) { m_valuesHasBeenSet = true; m_values = value; }
67 inline void SetValues(Aws::Vector<double>&& value) { m_valuesHasBeenSet = true; m_values = std::move(value); }
68 inline CapacityForecast& WithValues(const Aws::Vector<double>& value) { SetValues(value); return *this;}
69 inline CapacityForecast& WithValues(Aws::Vector<double>&& value) { SetValues(std::move(value)); return *this;}
70 inline CapacityForecast& AddValues(double value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
72 private:
73
75 bool m_timestampsHasBeenSet = false;
76
77 Aws::Vector<double> m_values;
78 bool m_valuesHasBeenSet = false;
79 };
80
81} // namespace Model
82} // namespace AutoScaling
83} // namespace Aws
AWS_AUTOSCALING_API CapacityForecast(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::Vector< Aws::Utils::DateTime > & GetTimestamps() const
void SetValues(const Aws::Vector< double > &value)
CapacityForecast & WithTimestamps(const Aws::Vector< Aws::Utils::DateTime > &value)
AWS_AUTOSCALING_API CapacityForecast & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
CapacityForecast & WithValues(Aws::Vector< double > &&value)
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetTimestamps(const Aws::Vector< Aws::Utils::DateTime > &value)
void SetValues(Aws::Vector< double > &&value)
CapacityForecast & AddTimestamps(Aws::Utils::DateTime &&value)
CapacityForecast & AddTimestamps(const Aws::Utils::DateTime &value)
CapacityForecast & WithTimestamps(Aws::Vector< Aws::Utils::DateTime > &&value)
CapacityForecast & AddValues(double value)
void SetTimestamps(Aws::Vector< Aws::Utils::DateTime > &&value)
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::Vector< double > & GetValues() const
CapacityForecast & WithValues(const Aws::Vector< double > &value)
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream