AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
PredictiveScalingMetricSpecification.h
1
6#pragma once
7#include <aws/application-autoscaling/ApplicationAutoScaling_EXPORTS.h>
8#include <aws/application-autoscaling/model/PredictiveScalingCustomizedMetricSpecification.h>
9#include <aws/application-autoscaling/model/PredictiveScalingPredefinedLoadMetricSpecification.h>
10#include <aws/application-autoscaling/model/PredictiveScalingPredefinedMetricPairSpecification.h>
11#include <aws/application-autoscaling/model/PredictiveScalingPredefinedScalingMetricSpecification.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ApplicationAutoScaling {
23namespace Model {
24
37 public:
38 AWS_APPLICATIONAUTOSCALING_API PredictiveScalingMetricSpecification() = default;
39 AWS_APPLICATIONAUTOSCALING_API PredictiveScalingMetricSpecification(Aws::Utils::Json::JsonView jsonValue);
41 AWS_APPLICATIONAUTOSCALING_API Aws::Utils::Json::JsonValue Jsonize() const;
42
44
47 inline double GetTargetValue() const { return m_targetValue; }
48 inline bool TargetValueHasBeenSet() const { return m_targetValueHasBeenSet; }
49 inline void SetTargetValue(double value) {
50 m_targetValueHasBeenSet = true;
51 m_targetValue = value;
52 }
54 SetTargetValue(value);
55 return *this;
56 }
58
60
65 return m_predefinedMetricPairSpecification;
66 }
67 inline bool PredefinedMetricPairSpecificationHasBeenSet() const { return m_predefinedMetricPairSpecificationHasBeenSet; }
68 template <typename PredefinedMetricPairSpecificationT = PredictiveScalingPredefinedMetricPairSpecification>
69 void SetPredefinedMetricPairSpecification(PredefinedMetricPairSpecificationT&& value) {
70 m_predefinedMetricPairSpecificationHasBeenSet = true;
71 m_predefinedMetricPairSpecification = std::forward<PredefinedMetricPairSpecificationT>(value);
72 }
73 template <typename PredefinedMetricPairSpecificationT = PredictiveScalingPredefinedMetricPairSpecification>
75 SetPredefinedMetricPairSpecification(std::forward<PredefinedMetricPairSpecificationT>(value));
76 return *this;
77 }
79
81
85 return m_predefinedScalingMetricSpecification;
86 }
87 inline bool PredefinedScalingMetricSpecificationHasBeenSet() const { return m_predefinedScalingMetricSpecificationHasBeenSet; }
88 template <typename PredefinedScalingMetricSpecificationT = PredictiveScalingPredefinedScalingMetricSpecification>
89 void SetPredefinedScalingMetricSpecification(PredefinedScalingMetricSpecificationT&& value) {
90 m_predefinedScalingMetricSpecificationHasBeenSet = true;
91 m_predefinedScalingMetricSpecification = std::forward<PredefinedScalingMetricSpecificationT>(value);
92 }
93 template <typename PredefinedScalingMetricSpecificationT = PredictiveScalingPredefinedScalingMetricSpecification>
95 SetPredefinedScalingMetricSpecification(std::forward<PredefinedScalingMetricSpecificationT>(value));
96 return *this;
97 }
99
101
105 return m_predefinedLoadMetricSpecification;
106 }
107 inline bool PredefinedLoadMetricSpecificationHasBeenSet() const { return m_predefinedLoadMetricSpecificationHasBeenSet; }
108 template <typename PredefinedLoadMetricSpecificationT = PredictiveScalingPredefinedLoadMetricSpecification>
109 void SetPredefinedLoadMetricSpecification(PredefinedLoadMetricSpecificationT&& value) {
110 m_predefinedLoadMetricSpecificationHasBeenSet = true;
111 m_predefinedLoadMetricSpecification = std::forward<PredefinedLoadMetricSpecificationT>(value);
112 }
113 template <typename PredefinedLoadMetricSpecificationT = PredictiveScalingPredefinedLoadMetricSpecification>
115 SetPredefinedLoadMetricSpecification(std::forward<PredefinedLoadMetricSpecificationT>(value));
116 return *this;
117 }
119
121
125 return m_customizedScalingMetricSpecification;
126 }
127 inline bool CustomizedScalingMetricSpecificationHasBeenSet() const { return m_customizedScalingMetricSpecificationHasBeenSet; }
128 template <typename CustomizedScalingMetricSpecificationT = PredictiveScalingCustomizedMetricSpecification>
129 void SetCustomizedScalingMetricSpecification(CustomizedScalingMetricSpecificationT&& value) {
130 m_customizedScalingMetricSpecificationHasBeenSet = true;
131 m_customizedScalingMetricSpecification = std::forward<CustomizedScalingMetricSpecificationT>(value);
132 }
133 template <typename CustomizedScalingMetricSpecificationT = PredictiveScalingCustomizedMetricSpecification>
135 SetCustomizedScalingMetricSpecification(std::forward<CustomizedScalingMetricSpecificationT>(value));
136 return *this;
137 }
139
141
145 return m_customizedLoadMetricSpecification;
146 }
147 inline bool CustomizedLoadMetricSpecificationHasBeenSet() const { return m_customizedLoadMetricSpecificationHasBeenSet; }
148 template <typename CustomizedLoadMetricSpecificationT = PredictiveScalingCustomizedMetricSpecification>
149 void SetCustomizedLoadMetricSpecification(CustomizedLoadMetricSpecificationT&& value) {
150 m_customizedLoadMetricSpecificationHasBeenSet = true;
151 m_customizedLoadMetricSpecification = std::forward<CustomizedLoadMetricSpecificationT>(value);
152 }
153 template <typename CustomizedLoadMetricSpecificationT = PredictiveScalingCustomizedMetricSpecification>
155 SetCustomizedLoadMetricSpecification(std::forward<CustomizedLoadMetricSpecificationT>(value));
156 return *this;
157 }
159
161
165 return m_customizedCapacityMetricSpecification;
166 }
167 inline bool CustomizedCapacityMetricSpecificationHasBeenSet() const { return m_customizedCapacityMetricSpecificationHasBeenSet; }
168 template <typename CustomizedCapacityMetricSpecificationT = PredictiveScalingCustomizedMetricSpecification>
169 void SetCustomizedCapacityMetricSpecification(CustomizedCapacityMetricSpecificationT&& value) {
170 m_customizedCapacityMetricSpecificationHasBeenSet = true;
171 m_customizedCapacityMetricSpecification = std::forward<CustomizedCapacityMetricSpecificationT>(value);
172 }
173 template <typename CustomizedCapacityMetricSpecificationT = PredictiveScalingCustomizedMetricSpecification>
175 SetCustomizedCapacityMetricSpecification(std::forward<CustomizedCapacityMetricSpecificationT>(value));
176 return *this;
177 }
179 private:
180 double m_targetValue{0.0};
181
182 PredictiveScalingPredefinedMetricPairSpecification m_predefinedMetricPairSpecification;
183
184 PredictiveScalingPredefinedScalingMetricSpecification m_predefinedScalingMetricSpecification;
185
186 PredictiveScalingPredefinedLoadMetricSpecification m_predefinedLoadMetricSpecification;
187
188 PredictiveScalingCustomizedMetricSpecification m_customizedScalingMetricSpecification;
189
190 PredictiveScalingCustomizedMetricSpecification m_customizedLoadMetricSpecification;
191
192 PredictiveScalingCustomizedMetricSpecification m_customizedCapacityMetricSpecification;
193 bool m_targetValueHasBeenSet = false;
194 bool m_predefinedMetricPairSpecificationHasBeenSet = false;
195 bool m_predefinedScalingMetricSpecificationHasBeenSet = false;
196 bool m_predefinedLoadMetricSpecificationHasBeenSet = false;
197 bool m_customizedScalingMetricSpecificationHasBeenSet = false;
198 bool m_customizedLoadMetricSpecificationHasBeenSet = false;
199 bool m_customizedCapacityMetricSpecificationHasBeenSet = false;
200};
201
202} // namespace Model
203} // namespace ApplicationAutoScaling
204} // namespace Aws
const PredictiveScalingCustomizedMetricSpecification & GetCustomizedLoadMetricSpecification() const
AWS_APPLICATIONAUTOSCALING_API Aws::Utils::Json::JsonValue Jsonize() const
PredictiveScalingMetricSpecification & WithCustomizedScalingMetricSpecification(CustomizedScalingMetricSpecificationT &&value)
const PredictiveScalingCustomizedMetricSpecification & GetCustomizedScalingMetricSpecification() const
AWS_APPLICATIONAUTOSCALING_API PredictiveScalingMetricSpecification & operator=(Aws::Utils::Json::JsonView jsonValue)
PredictiveScalingMetricSpecification & WithCustomizedLoadMetricSpecification(CustomizedLoadMetricSpecificationT &&value)
AWS_APPLICATIONAUTOSCALING_API PredictiveScalingMetricSpecification(Aws::Utils::Json::JsonView jsonValue)
AWS_APPLICATIONAUTOSCALING_API PredictiveScalingMetricSpecification()=default
const PredictiveScalingCustomizedMetricSpecification & GetCustomizedCapacityMetricSpecification() const
PredictiveScalingMetricSpecification & WithPredefinedLoadMetricSpecification(PredefinedLoadMetricSpecificationT &&value)
PredictiveScalingMetricSpecification & WithPredefinedScalingMetricSpecification(PredefinedScalingMetricSpecificationT &&value)
const PredictiveScalingPredefinedLoadMetricSpecification & GetPredefinedLoadMetricSpecification() const
void SetCustomizedCapacityMetricSpecification(CustomizedCapacityMetricSpecificationT &&value)
PredictiveScalingMetricSpecification & WithCustomizedCapacityMetricSpecification(CustomizedCapacityMetricSpecificationT &&value)
const PredictiveScalingPredefinedMetricPairSpecification & GetPredefinedMetricPairSpecification() const
const PredictiveScalingPredefinedScalingMetricSpecification & GetPredefinedScalingMetricSpecification() const
PredictiveScalingMetricSpecification & WithPredefinedMetricPairSpecification(PredefinedMetricPairSpecificationT &&value)
Aws::Utils::Json::JsonValue JsonValue