AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
AutoScalingConfiguration.h
1
6#pragma once
7#include <aws/finspace/Finspace_EXPORTS.h>
8#include <aws/finspace/model/AutoScalingMetric.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace finspace
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_FINSPACE_API AutoScalingConfiguration() = default;
38 AWS_FINSPACE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
47 inline int GetMinNodeCount() const { return m_minNodeCount; }
48 inline bool MinNodeCountHasBeenSet() const { return m_minNodeCountHasBeenSet; }
49 inline void SetMinNodeCount(int value) { m_minNodeCountHasBeenSet = true; m_minNodeCount = value; }
50 inline AutoScalingConfiguration& WithMinNodeCount(int value) { SetMinNodeCount(value); return *this;}
52
54
58 inline int GetMaxNodeCount() const { return m_maxNodeCount; }
59 inline bool MaxNodeCountHasBeenSet() const { return m_maxNodeCountHasBeenSet; }
60 inline void SetMaxNodeCount(int value) { m_maxNodeCountHasBeenSet = true; m_maxNodeCount = value; }
61 inline AutoScalingConfiguration& WithMaxNodeCount(int value) { SetMaxNodeCount(value); return *this;}
63
65
70 inline AutoScalingMetric GetAutoScalingMetric() const { return m_autoScalingMetric; }
71 inline bool AutoScalingMetricHasBeenSet() const { return m_autoScalingMetricHasBeenSet; }
72 inline void SetAutoScalingMetric(AutoScalingMetric value) { m_autoScalingMetricHasBeenSet = true; m_autoScalingMetric = value; }
75
77
83 inline double GetMetricTarget() const { return m_metricTarget; }
84 inline bool MetricTargetHasBeenSet() const { return m_metricTargetHasBeenSet; }
85 inline void SetMetricTarget(double value) { m_metricTargetHasBeenSet = true; m_metricTarget = value; }
86 inline AutoScalingConfiguration& WithMetricTarget(double value) { SetMetricTarget(value); return *this;}
88
90
94 inline double GetScaleInCooldownSeconds() const { return m_scaleInCooldownSeconds; }
95 inline bool ScaleInCooldownSecondsHasBeenSet() const { return m_scaleInCooldownSecondsHasBeenSet; }
96 inline void SetScaleInCooldownSeconds(double value) { m_scaleInCooldownSecondsHasBeenSet = true; m_scaleInCooldownSeconds = value; }
99
101
105 inline double GetScaleOutCooldownSeconds() const { return m_scaleOutCooldownSeconds; }
106 inline bool ScaleOutCooldownSecondsHasBeenSet() const { return m_scaleOutCooldownSecondsHasBeenSet; }
107 inline void SetScaleOutCooldownSeconds(double value) { m_scaleOutCooldownSecondsHasBeenSet = true; m_scaleOutCooldownSeconds = value; }
110 private:
111
112 int m_minNodeCount{0};
113 bool m_minNodeCountHasBeenSet = false;
114
115 int m_maxNodeCount{0};
116 bool m_maxNodeCountHasBeenSet = false;
117
119 bool m_autoScalingMetricHasBeenSet = false;
120
121 double m_metricTarget{0.0};
122 bool m_metricTargetHasBeenSet = false;
123
124 double m_scaleInCooldownSeconds{0.0};
125 bool m_scaleInCooldownSecondsHasBeenSet = false;
126
127 double m_scaleOutCooldownSeconds{0.0};
128 bool m_scaleOutCooldownSecondsHasBeenSet = false;
129 };
130
131} // namespace Model
132} // namespace finspace
133} // namespace Aws
AWS_FINSPACE_API AutoScalingConfiguration()=default
AutoScalingConfiguration & WithMinNodeCount(int value)
AWS_FINSPACE_API Aws::Utils::Json::JsonValue Jsonize() const
AutoScalingConfiguration & WithScaleInCooldownSeconds(double value)
AutoScalingConfiguration & WithMaxNodeCount(int value)
AutoScalingConfiguration & WithAutoScalingMetric(AutoScalingMetric value)
AWS_FINSPACE_API AutoScalingConfiguration(Aws::Utils::Json::JsonView jsonValue)
AutoScalingConfiguration & WithScaleOutCooldownSeconds(double value)
AWS_FINSPACE_API AutoScalingConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AutoScalingConfiguration & WithMetricTarget(double value)
Aws::Utils::Json::JsonValue JsonValue