AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
PredictiveScalingMetricSpecification.h
1
6#pragma once
7#include <aws/application-autoscaling/ApplicationAutoScaling_EXPORTS.h>
8#include <aws/application-autoscaling/model/PredictiveScalingPredefinedMetricPairSpecification.h>
9#include <aws/application-autoscaling/model/PredictiveScalingPredefinedScalingMetricSpecification.h>
10#include <aws/application-autoscaling/model/PredictiveScalingPredefinedLoadMetricSpecification.h>
11#include <aws/application-autoscaling/model/PredictiveScalingCustomizedMetricSpecification.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace ApplicationAutoScaling
25{
26namespace Model
27{
28
41 {
42 public:
43 AWS_APPLICATIONAUTOSCALING_API PredictiveScalingMetricSpecification() = default;
44 AWS_APPLICATIONAUTOSCALING_API PredictiveScalingMetricSpecification(Aws::Utils::Json::JsonView jsonValue);
46 AWS_APPLICATIONAUTOSCALING_API Aws::Utils::Json::JsonValue Jsonize() const;
47
48
50
53 inline double GetTargetValue() const { return m_targetValue; }
54 inline bool TargetValueHasBeenSet() const { return m_targetValueHasBeenSet; }
55 inline void SetTargetValue(double value) { m_targetValueHasBeenSet = true; m_targetValue = value; }
56 inline PredictiveScalingMetricSpecification& WithTargetValue(double value) { SetTargetValue(value); return *this;}
58
60
64 inline const PredictiveScalingPredefinedMetricPairSpecification& GetPredefinedMetricPairSpecification() const { return m_predefinedMetricPairSpecification; }
65 inline bool PredefinedMetricPairSpecificationHasBeenSet() const { return m_predefinedMetricPairSpecificationHasBeenSet; }
66 template<typename PredefinedMetricPairSpecificationT = PredictiveScalingPredefinedMetricPairSpecification>
67 void SetPredefinedMetricPairSpecification(PredefinedMetricPairSpecificationT&& value) { m_predefinedMetricPairSpecificationHasBeenSet = true; m_predefinedMetricPairSpecification = std::forward<PredefinedMetricPairSpecificationT>(value); }
68 template<typename PredefinedMetricPairSpecificationT = PredictiveScalingPredefinedMetricPairSpecification>
69 PredictiveScalingMetricSpecification& WithPredefinedMetricPairSpecification(PredefinedMetricPairSpecificationT&& value) { SetPredefinedMetricPairSpecification(std::forward<PredefinedMetricPairSpecificationT>(value)); return *this;}
71
73
76 inline const PredictiveScalingPredefinedScalingMetricSpecification& GetPredefinedScalingMetricSpecification() const { return m_predefinedScalingMetricSpecification; }
77 inline bool PredefinedScalingMetricSpecificationHasBeenSet() const { return m_predefinedScalingMetricSpecificationHasBeenSet; }
78 template<typename PredefinedScalingMetricSpecificationT = PredictiveScalingPredefinedScalingMetricSpecification>
79 void SetPredefinedScalingMetricSpecification(PredefinedScalingMetricSpecificationT&& value) { m_predefinedScalingMetricSpecificationHasBeenSet = true; m_predefinedScalingMetricSpecification = std::forward<PredefinedScalingMetricSpecificationT>(value); }
80 template<typename PredefinedScalingMetricSpecificationT = PredictiveScalingPredefinedScalingMetricSpecification>
81 PredictiveScalingMetricSpecification& WithPredefinedScalingMetricSpecification(PredefinedScalingMetricSpecificationT&& value) { SetPredefinedScalingMetricSpecification(std::forward<PredefinedScalingMetricSpecificationT>(value)); return *this;}
83
85
88 inline const PredictiveScalingPredefinedLoadMetricSpecification& GetPredefinedLoadMetricSpecification() const { return m_predefinedLoadMetricSpecification; }
89 inline bool PredefinedLoadMetricSpecificationHasBeenSet() const { return m_predefinedLoadMetricSpecificationHasBeenSet; }
90 template<typename PredefinedLoadMetricSpecificationT = PredictiveScalingPredefinedLoadMetricSpecification>
91 void SetPredefinedLoadMetricSpecification(PredefinedLoadMetricSpecificationT&& value) { m_predefinedLoadMetricSpecificationHasBeenSet = true; m_predefinedLoadMetricSpecification = std::forward<PredefinedLoadMetricSpecificationT>(value); }
92 template<typename PredefinedLoadMetricSpecificationT = PredictiveScalingPredefinedLoadMetricSpecification>
93 PredictiveScalingMetricSpecification& WithPredefinedLoadMetricSpecification(PredefinedLoadMetricSpecificationT&& value) { SetPredefinedLoadMetricSpecification(std::forward<PredefinedLoadMetricSpecificationT>(value)); return *this;}
95
97
100 inline const PredictiveScalingCustomizedMetricSpecification& GetCustomizedScalingMetricSpecification() const { return m_customizedScalingMetricSpecification; }
101 inline bool CustomizedScalingMetricSpecificationHasBeenSet() const { return m_customizedScalingMetricSpecificationHasBeenSet; }
102 template<typename CustomizedScalingMetricSpecificationT = PredictiveScalingCustomizedMetricSpecification>
103 void SetCustomizedScalingMetricSpecification(CustomizedScalingMetricSpecificationT&& value) { m_customizedScalingMetricSpecificationHasBeenSet = true; m_customizedScalingMetricSpecification = std::forward<CustomizedScalingMetricSpecificationT>(value); }
104 template<typename CustomizedScalingMetricSpecificationT = PredictiveScalingCustomizedMetricSpecification>
105 PredictiveScalingMetricSpecification& WithCustomizedScalingMetricSpecification(CustomizedScalingMetricSpecificationT&& value) { SetCustomizedScalingMetricSpecification(std::forward<CustomizedScalingMetricSpecificationT>(value)); return *this;}
107
109
112 inline const PredictiveScalingCustomizedMetricSpecification& GetCustomizedLoadMetricSpecification() const { return m_customizedLoadMetricSpecification; }
113 inline bool CustomizedLoadMetricSpecificationHasBeenSet() const { return m_customizedLoadMetricSpecificationHasBeenSet; }
114 template<typename CustomizedLoadMetricSpecificationT = PredictiveScalingCustomizedMetricSpecification>
115 void SetCustomizedLoadMetricSpecification(CustomizedLoadMetricSpecificationT&& value) { m_customizedLoadMetricSpecificationHasBeenSet = true; m_customizedLoadMetricSpecification = std::forward<CustomizedLoadMetricSpecificationT>(value); }
116 template<typename CustomizedLoadMetricSpecificationT = PredictiveScalingCustomizedMetricSpecification>
117 PredictiveScalingMetricSpecification& WithCustomizedLoadMetricSpecification(CustomizedLoadMetricSpecificationT&& value) { SetCustomizedLoadMetricSpecification(std::forward<CustomizedLoadMetricSpecificationT>(value)); return *this;}
119
121
124 inline const PredictiveScalingCustomizedMetricSpecification& GetCustomizedCapacityMetricSpecification() const { return m_customizedCapacityMetricSpecification; }
125 inline bool CustomizedCapacityMetricSpecificationHasBeenSet() const { return m_customizedCapacityMetricSpecificationHasBeenSet; }
126 template<typename CustomizedCapacityMetricSpecificationT = PredictiveScalingCustomizedMetricSpecification>
127 void SetCustomizedCapacityMetricSpecification(CustomizedCapacityMetricSpecificationT&& value) { m_customizedCapacityMetricSpecificationHasBeenSet = true; m_customizedCapacityMetricSpecification = std::forward<CustomizedCapacityMetricSpecificationT>(value); }
128 template<typename CustomizedCapacityMetricSpecificationT = PredictiveScalingCustomizedMetricSpecification>
129 PredictiveScalingMetricSpecification& WithCustomizedCapacityMetricSpecification(CustomizedCapacityMetricSpecificationT&& value) { SetCustomizedCapacityMetricSpecification(std::forward<CustomizedCapacityMetricSpecificationT>(value)); return *this;}
131 private:
132
133 double m_targetValue{0.0};
134 bool m_targetValueHasBeenSet = false;
135
136 PredictiveScalingPredefinedMetricPairSpecification m_predefinedMetricPairSpecification;
137 bool m_predefinedMetricPairSpecificationHasBeenSet = false;
138
139 PredictiveScalingPredefinedScalingMetricSpecification m_predefinedScalingMetricSpecification;
140 bool m_predefinedScalingMetricSpecificationHasBeenSet = false;
141
142 PredictiveScalingPredefinedLoadMetricSpecification m_predefinedLoadMetricSpecification;
143 bool m_predefinedLoadMetricSpecificationHasBeenSet = false;
144
145 PredictiveScalingCustomizedMetricSpecification m_customizedScalingMetricSpecification;
146 bool m_customizedScalingMetricSpecificationHasBeenSet = false;
147
148 PredictiveScalingCustomizedMetricSpecification m_customizedLoadMetricSpecification;
149 bool m_customizedLoadMetricSpecificationHasBeenSet = false;
150
151 PredictiveScalingCustomizedMetricSpecification m_customizedCapacityMetricSpecification;
152 bool m_customizedCapacityMetricSpecificationHasBeenSet = false;
153 };
154
155} // namespace Model
156} // namespace ApplicationAutoScaling
157} // 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