AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ECSServiceProjectedMetric.h
1
6#pragma once
7#include <aws/compute-optimizer/ComputeOptimizer_EXPORTS.h>
8#include <aws/compute-optimizer/model/ECSServiceMetricName.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
37 {
38 public:
39 AWS_COMPUTEOPTIMIZER_API ECSServiceProjectedMetric();
40 AWS_COMPUTEOPTIMIZER_API ECSServiceProjectedMetric(Aws::Utils::Json::JsonView jsonValue);
42 AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
53 inline const ECSServiceMetricName& GetName() const{ return m_name; }
54 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
55 inline void SetName(const ECSServiceMetricName& value) { m_nameHasBeenSet = true; m_name = value; }
56 inline void SetName(ECSServiceMetricName&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
57 inline ECSServiceProjectedMetric& WithName(const ECSServiceMetricName& value) { SetName(value); return *this;}
58 inline ECSServiceProjectedMetric& WithName(ECSServiceMetricName&& value) { SetName(std::move(value)); return *this;}
60
62
65 inline const Aws::Vector<Aws::Utils::DateTime>& GetTimestamps() const{ return m_timestamps; }
66 inline bool TimestampsHasBeenSet() const { return m_timestampsHasBeenSet; }
67 inline void SetTimestamps(const Aws::Vector<Aws::Utils::DateTime>& value) { m_timestampsHasBeenSet = true; m_timestamps = value; }
68 inline void SetTimestamps(Aws::Vector<Aws::Utils::DateTime>&& value) { m_timestampsHasBeenSet = true; m_timestamps = std::move(value); }
71 inline ECSServiceProjectedMetric& AddTimestamps(const Aws::Utils::DateTime& value) { m_timestampsHasBeenSet = true; m_timestamps.push_back(value); return *this; }
72 inline ECSServiceProjectedMetric& AddTimestamps(Aws::Utils::DateTime&& value) { m_timestampsHasBeenSet = true; m_timestamps.push_back(std::move(value)); return *this; }
74
76
79 inline const Aws::Vector<double>& GetUpperBoundValues() const{ return m_upperBoundValues; }
80 inline bool UpperBoundValuesHasBeenSet() const { return m_upperBoundValuesHasBeenSet; }
81 inline void SetUpperBoundValues(const Aws::Vector<double>& value) { m_upperBoundValuesHasBeenSet = true; m_upperBoundValues = value; }
82 inline void SetUpperBoundValues(Aws::Vector<double>&& value) { m_upperBoundValuesHasBeenSet = true; m_upperBoundValues = std::move(value); }
85 inline ECSServiceProjectedMetric& AddUpperBoundValues(double value) { m_upperBoundValuesHasBeenSet = true; m_upperBoundValues.push_back(value); return *this; }
87
89
92 inline const Aws::Vector<double>& GetLowerBoundValues() const{ return m_lowerBoundValues; }
93 inline bool LowerBoundValuesHasBeenSet() const { return m_lowerBoundValuesHasBeenSet; }
94 inline void SetLowerBoundValues(const Aws::Vector<double>& value) { m_lowerBoundValuesHasBeenSet = true; m_lowerBoundValues = value; }
95 inline void SetLowerBoundValues(Aws::Vector<double>&& value) { m_lowerBoundValuesHasBeenSet = true; m_lowerBoundValues = std::move(value); }
98 inline ECSServiceProjectedMetric& AddLowerBoundValues(double value) { m_lowerBoundValuesHasBeenSet = true; m_lowerBoundValues.push_back(value); return *this; }
100 private:
101
103 bool m_nameHasBeenSet = false;
104
106 bool m_timestampsHasBeenSet = false;
107
108 Aws::Vector<double> m_upperBoundValues;
109 bool m_upperBoundValuesHasBeenSet = false;
110
111 Aws::Vector<double> m_lowerBoundValues;
112 bool m_lowerBoundValuesHasBeenSet = false;
113 };
114
115} // namespace Model
116} // namespace ComputeOptimizer
117} // namespace Aws
void SetTimestamps(const Aws::Vector< Aws::Utils::DateTime > &value)
ECSServiceProjectedMetric & WithTimestamps(const Aws::Vector< Aws::Utils::DateTime > &value)
ECSServiceProjectedMetric & WithUpperBoundValues(const Aws::Vector< double > &value)
const Aws::Vector< Aws::Utils::DateTime > & GetTimestamps() const
ECSServiceProjectedMetric & AddTimestamps(Aws::Utils::DateTime &&value)
AWS_COMPUTEOPTIMIZER_API ECSServiceProjectedMetric & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetUpperBoundValues(const Aws::Vector< double > &value)
ECSServiceProjectedMetric & WithTimestamps(Aws::Vector< Aws::Utils::DateTime > &&value)
AWS_COMPUTEOPTIMIZER_API ECSServiceProjectedMetric(Aws::Utils::Json::JsonView jsonValue)
ECSServiceProjectedMetric & WithUpperBoundValues(Aws::Vector< double > &&value)
ECSServiceProjectedMetric & WithName(ECSServiceMetricName &&value)
ECSServiceProjectedMetric & WithLowerBoundValues(const Aws::Vector< double > &value)
void SetLowerBoundValues(const Aws::Vector< double > &value)
ECSServiceProjectedMetric & AddLowerBoundValues(double value)
AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const
ECSServiceProjectedMetric & AddTimestamps(const Aws::Utils::DateTime &value)
ECSServiceProjectedMetric & WithLowerBoundValues(Aws::Vector< double > &&value)
ECSServiceProjectedMetric & WithName(const ECSServiceMetricName &value)
ECSServiceProjectedMetric & AddUpperBoundValues(double value)
void SetTimestamps(Aws::Vector< Aws::Utils::DateTime > &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue