AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ProjectedMetric.h
1
6#pragma once
7#include <aws/compute-optimizer/ComputeOptimizer_EXPORTS.h>
8#include <aws/compute-optimizer/model/MetricName.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 Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace ComputeOptimizer
24{
25namespace Model
26{
27
49 {
50 public:
51 AWS_COMPUTEOPTIMIZER_API ProjectedMetric();
52 AWS_COMPUTEOPTIMIZER_API ProjectedMetric(Aws::Utils::Json::JsonView jsonValue);
53 AWS_COMPUTEOPTIMIZER_API ProjectedMetric& operator=(Aws::Utils::Json::JsonView jsonValue);
54 AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const;
55
56
58
85 inline const MetricName& GetName() const{ return m_name; }
86 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
87 inline void SetName(const MetricName& value) { m_nameHasBeenSet = true; m_name = value; }
88 inline void SetName(MetricName&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
89 inline ProjectedMetric& WithName(const MetricName& value) { SetName(value); return *this;}
90 inline ProjectedMetric& WithName(MetricName&& value) { SetName(std::move(value)); return *this;}
92
94
97 inline const Aws::Vector<Aws::Utils::DateTime>& GetTimestamps() const{ return m_timestamps; }
98 inline bool TimestampsHasBeenSet() const { return m_timestampsHasBeenSet; }
99 inline void SetTimestamps(const Aws::Vector<Aws::Utils::DateTime>& value) { m_timestampsHasBeenSet = true; m_timestamps = value; }
100 inline void SetTimestamps(Aws::Vector<Aws::Utils::DateTime>&& value) { m_timestampsHasBeenSet = true; m_timestamps = std::move(value); }
102 inline ProjectedMetric& WithTimestamps(Aws::Vector<Aws::Utils::DateTime>&& value) { SetTimestamps(std::move(value)); return *this;}
103 inline ProjectedMetric& AddTimestamps(const Aws::Utils::DateTime& value) { m_timestampsHasBeenSet = true; m_timestamps.push_back(value); return *this; }
104 inline ProjectedMetric& AddTimestamps(Aws::Utils::DateTime&& value) { m_timestampsHasBeenSet = true; m_timestamps.push_back(std::move(value)); return *this; }
106
108
111 inline const Aws::Vector<double>& GetValues() const{ return m_values; }
112 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
113 inline void SetValues(const Aws::Vector<double>& value) { m_valuesHasBeenSet = true; m_values = value; }
114 inline void SetValues(Aws::Vector<double>&& value) { m_valuesHasBeenSet = true; m_values = std::move(value); }
115 inline ProjectedMetric& WithValues(const Aws::Vector<double>& value) { SetValues(value); return *this;}
116 inline ProjectedMetric& WithValues(Aws::Vector<double>&& value) { SetValues(std::move(value)); return *this;}
117 inline ProjectedMetric& AddValues(double value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
119 private:
120
121 MetricName m_name;
122 bool m_nameHasBeenSet = false;
123
125 bool m_timestampsHasBeenSet = false;
126
127 Aws::Vector<double> m_values;
128 bool m_valuesHasBeenSet = false;
129 };
130
131} // namespace Model
132} // namespace ComputeOptimizer
133} // namespace Aws
void SetValues(Aws::Vector< double > &&value)
void SetTimestamps(Aws::Vector< Aws::Utils::DateTime > &&value)
ProjectedMetric & WithName(MetricName &&value)
AWS_COMPUTEOPTIMIZER_API ProjectedMetric(Aws::Utils::Json::JsonView jsonValue)
ProjectedMetric & WithTimestamps(const Aws::Vector< Aws::Utils::DateTime > &value)
ProjectedMetric & WithValues(Aws::Vector< double > &&value)
ProjectedMetric & WithName(const MetricName &value)
ProjectedMetric & WithTimestamps(Aws::Vector< Aws::Utils::DateTime > &&value)
AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Aws::Utils::DateTime > & GetTimestamps() const
void SetValues(const Aws::Vector< double > &value)
AWS_COMPUTEOPTIMIZER_API ProjectedMetric()
const Aws::Vector< double > & GetValues() const
ProjectedMetric & AddTimestamps(const Aws::Utils::DateTime &value)
ProjectedMetric & WithValues(const Aws::Vector< double > &value)
void SetTimestamps(const Aws::Vector< Aws::Utils::DateTime > &value)
ProjectedMetric & AddTimestamps(Aws::Utils::DateTime &&value)
AWS_COMPUTEOPTIMIZER_API ProjectedMetric & operator=(Aws::Utils::Json::JsonView jsonValue)
ProjectedMetric & AddValues(double value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue