AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PredictiveScalingMetricSpecification.h
1
6#pragma once
7#include <aws/autoscaling/AutoScaling_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/autoscaling/model/PredictiveScalingPredefinedMetricPair.h>
10#include <aws/autoscaling/model/PredictiveScalingPredefinedScalingMetric.h>
11#include <aws/autoscaling/model/PredictiveScalingPredefinedLoadMetric.h>
12#include <aws/autoscaling/model/PredictiveScalingCustomizedScalingMetric.h>
13#include <aws/autoscaling/model/PredictiveScalingCustomizedLoadMetric.h>
14#include <aws/autoscaling/model/PredictiveScalingCustomizedCapacityMetric.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Xml
22{
23 class XmlNode;
24} // namespace Xml
25} // namespace Utils
26namespace AutoScaling
27{
28namespace Model
29{
30
66 {
67 public:
71
72 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
73 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
74
75
77
85 inline double GetTargetValue() const{ return m_targetValue; }
86 inline bool TargetValueHasBeenSet() const { return m_targetValueHasBeenSet; }
87 inline void SetTargetValue(double value) { m_targetValueHasBeenSet = true; m_targetValue = value; }
88 inline PredictiveScalingMetricSpecification& WithTargetValue(double value) { SetTargetValue(value); return *this;}
90
92
96 inline const PredictiveScalingPredefinedMetricPair& GetPredefinedMetricPairSpecification() const{ return m_predefinedMetricPairSpecification; }
97 inline bool PredefinedMetricPairSpecificationHasBeenSet() const { return m_predefinedMetricPairSpecificationHasBeenSet; }
98 inline void SetPredefinedMetricPairSpecification(const PredictiveScalingPredefinedMetricPair& value) { m_predefinedMetricPairSpecificationHasBeenSet = true; m_predefinedMetricPairSpecification = value; }
99 inline void SetPredefinedMetricPairSpecification(PredictiveScalingPredefinedMetricPair&& value) { m_predefinedMetricPairSpecificationHasBeenSet = true; m_predefinedMetricPairSpecification = std::move(value); }
103
105
108 inline const PredictiveScalingPredefinedScalingMetric& GetPredefinedScalingMetricSpecification() const{ return m_predefinedScalingMetricSpecification; }
109 inline bool PredefinedScalingMetricSpecificationHasBeenSet() const { return m_predefinedScalingMetricSpecificationHasBeenSet; }
110 inline void SetPredefinedScalingMetricSpecification(const PredictiveScalingPredefinedScalingMetric& value) { m_predefinedScalingMetricSpecificationHasBeenSet = true; m_predefinedScalingMetricSpecification = value; }
111 inline void SetPredefinedScalingMetricSpecification(PredictiveScalingPredefinedScalingMetric&& value) { m_predefinedScalingMetricSpecificationHasBeenSet = true; m_predefinedScalingMetricSpecification = std::move(value); }
115
117
120 inline const PredictiveScalingPredefinedLoadMetric& GetPredefinedLoadMetricSpecification() const{ return m_predefinedLoadMetricSpecification; }
121 inline bool PredefinedLoadMetricSpecificationHasBeenSet() const { return m_predefinedLoadMetricSpecificationHasBeenSet; }
122 inline void SetPredefinedLoadMetricSpecification(const PredictiveScalingPredefinedLoadMetric& value) { m_predefinedLoadMetricSpecificationHasBeenSet = true; m_predefinedLoadMetricSpecification = value; }
123 inline void SetPredefinedLoadMetricSpecification(PredictiveScalingPredefinedLoadMetric&& value) { m_predefinedLoadMetricSpecificationHasBeenSet = true; m_predefinedLoadMetricSpecification = std::move(value); }
127
129
132 inline const PredictiveScalingCustomizedScalingMetric& GetCustomizedScalingMetricSpecification() const{ return m_customizedScalingMetricSpecification; }
133 inline bool CustomizedScalingMetricSpecificationHasBeenSet() const { return m_customizedScalingMetricSpecificationHasBeenSet; }
134 inline void SetCustomizedScalingMetricSpecification(const PredictiveScalingCustomizedScalingMetric& value) { m_customizedScalingMetricSpecificationHasBeenSet = true; m_customizedScalingMetricSpecification = value; }
135 inline void SetCustomizedScalingMetricSpecification(PredictiveScalingCustomizedScalingMetric&& value) { m_customizedScalingMetricSpecificationHasBeenSet = true; m_customizedScalingMetricSpecification = std::move(value); }
139
141
144 inline const PredictiveScalingCustomizedLoadMetric& GetCustomizedLoadMetricSpecification() const{ return m_customizedLoadMetricSpecification; }
145 inline bool CustomizedLoadMetricSpecificationHasBeenSet() const { return m_customizedLoadMetricSpecificationHasBeenSet; }
146 inline void SetCustomizedLoadMetricSpecification(const PredictiveScalingCustomizedLoadMetric& value) { m_customizedLoadMetricSpecificationHasBeenSet = true; m_customizedLoadMetricSpecification = value; }
147 inline void SetCustomizedLoadMetricSpecification(PredictiveScalingCustomizedLoadMetric&& value) { m_customizedLoadMetricSpecificationHasBeenSet = true; m_customizedLoadMetricSpecification = std::move(value); }
151
153
156 inline const PredictiveScalingCustomizedCapacityMetric& GetCustomizedCapacityMetricSpecification() const{ return m_customizedCapacityMetricSpecification; }
157 inline bool CustomizedCapacityMetricSpecificationHasBeenSet() const { return m_customizedCapacityMetricSpecificationHasBeenSet; }
158 inline void SetCustomizedCapacityMetricSpecification(const PredictiveScalingCustomizedCapacityMetric& value) { m_customizedCapacityMetricSpecificationHasBeenSet = true; m_customizedCapacityMetricSpecification = value; }
159 inline void SetCustomizedCapacityMetricSpecification(PredictiveScalingCustomizedCapacityMetric&& value) { m_customizedCapacityMetricSpecificationHasBeenSet = true; m_customizedCapacityMetricSpecification = std::move(value); }
163 private:
164
165 double m_targetValue;
166 bool m_targetValueHasBeenSet = false;
167
168 PredictiveScalingPredefinedMetricPair m_predefinedMetricPairSpecification;
169 bool m_predefinedMetricPairSpecificationHasBeenSet = false;
170
171 PredictiveScalingPredefinedScalingMetric m_predefinedScalingMetricSpecification;
172 bool m_predefinedScalingMetricSpecificationHasBeenSet = false;
173
174 PredictiveScalingPredefinedLoadMetric m_predefinedLoadMetricSpecification;
175 bool m_predefinedLoadMetricSpecificationHasBeenSet = false;
176
177 PredictiveScalingCustomizedScalingMetric m_customizedScalingMetricSpecification;
178 bool m_customizedScalingMetricSpecificationHasBeenSet = false;
179
180 PredictiveScalingCustomizedLoadMetric m_customizedLoadMetricSpecification;
181 bool m_customizedLoadMetricSpecificationHasBeenSet = false;
182
183 PredictiveScalingCustomizedCapacityMetric m_customizedCapacityMetricSpecification;
184 bool m_customizedCapacityMetricSpecificationHasBeenSet = false;
185 };
186
187} // namespace Model
188} // namespace AutoScaling
189} // namespace Aws
AWS_AUTOSCALING_API PredictiveScalingMetricSpecification(const Aws::Utils::Xml::XmlNode &xmlNode)
const PredictiveScalingCustomizedScalingMetric & GetCustomizedScalingMetricSpecification() const
PredictiveScalingMetricSpecification & WithPredefinedLoadMetricSpecification(const PredictiveScalingPredefinedLoadMetric &value)
void SetCustomizedCapacityMetricSpecification(PredictiveScalingCustomizedCapacityMetric &&value)
void SetPredefinedMetricPairSpecification(const PredictiveScalingPredefinedMetricPair &value)
PredictiveScalingMetricSpecification & WithCustomizedCapacityMetricSpecification(PredictiveScalingCustomizedCapacityMetric &&value)
PredictiveScalingMetricSpecification & WithPredefinedScalingMetricSpecification(const PredictiveScalingPredefinedScalingMetric &value)
void SetCustomizedLoadMetricSpecification(PredictiveScalingCustomizedLoadMetric &&value)
void SetCustomizedLoadMetricSpecification(const PredictiveScalingCustomizedLoadMetric &value)
void SetPredefinedLoadMetricSpecification(PredictiveScalingPredefinedLoadMetric &&value)
void SetPredefinedScalingMetricSpecification(PredictiveScalingPredefinedScalingMetric &&value)
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetPredefinedScalingMetricSpecification(const PredictiveScalingPredefinedScalingMetric &value)
void SetCustomizedScalingMetricSpecification(PredictiveScalingCustomizedScalingMetric &&value)
void SetPredefinedMetricPairSpecification(PredictiveScalingPredefinedMetricPair &&value)
const PredictiveScalingPredefinedLoadMetric & GetPredefinedLoadMetricSpecification() const
PredictiveScalingMetricSpecification & WithPredefinedLoadMetricSpecification(PredictiveScalingPredefinedLoadMetric &&value)
void SetCustomizedScalingMetricSpecification(const PredictiveScalingCustomizedScalingMetric &value)
PredictiveScalingMetricSpecification & WithCustomizedScalingMetricSpecification(PredictiveScalingCustomizedScalingMetric &&value)
AWS_AUTOSCALING_API PredictiveScalingMetricSpecification & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
PredictiveScalingMetricSpecification & WithPredefinedMetricPairSpecification(const PredictiveScalingPredefinedMetricPair &value)
const PredictiveScalingCustomizedCapacityMetric & GetCustomizedCapacityMetricSpecification() const
PredictiveScalingMetricSpecification & WithCustomizedCapacityMetricSpecification(const PredictiveScalingCustomizedCapacityMetric &value)
const PredictiveScalingPredefinedMetricPair & GetPredefinedMetricPairSpecification() const
PredictiveScalingMetricSpecification & WithPredefinedScalingMetricSpecification(PredictiveScalingPredefinedScalingMetric &&value)
PredictiveScalingMetricSpecification & WithCustomizedScalingMetricSpecification(const PredictiveScalingCustomizedScalingMetric &value)
PredictiveScalingMetricSpecification & WithCustomizedLoadMetricSpecification(const PredictiveScalingCustomizedLoadMetric &value)
void SetPredefinedLoadMetricSpecification(const PredictiveScalingPredefinedLoadMetric &value)
PredictiveScalingMetricSpecification & WithCustomizedLoadMetricSpecification(PredictiveScalingCustomizedLoadMetric &&value)
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetCustomizedCapacityMetricSpecification(const PredictiveScalingCustomizedCapacityMetric &value)
const PredictiveScalingCustomizedLoadMetric & GetCustomizedLoadMetricSpecification() const
const PredictiveScalingPredefinedScalingMetric & GetPredefinedScalingMetricSpecification() const
PredictiveScalingMetricSpecification & WithPredefinedMetricPairSpecification(PredictiveScalingPredefinedMetricPair &&value)
std::basic_ostream< char, std::char_traits< char > > OStream