AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const AutoScalingMetric& GetAutoScalingMetric() const{ return m_autoScalingMetric; }
71 inline bool AutoScalingMetricHasBeenSet() const { return m_autoScalingMetricHasBeenSet; }
72 inline void SetAutoScalingMetric(const AutoScalingMetric& value) { m_autoScalingMetricHasBeenSet = true; m_autoScalingMetric = value; }
73 inline void SetAutoScalingMetric(AutoScalingMetric&& value) { m_autoScalingMetricHasBeenSet = true; m_autoScalingMetric = std::move(value); }
75 inline AutoScalingConfiguration& WithAutoScalingMetric(AutoScalingMetric&& value) { SetAutoScalingMetric(std::move(value)); return *this;}
77
79
85 inline double GetMetricTarget() const{ return m_metricTarget; }
86 inline bool MetricTargetHasBeenSet() const { return m_metricTargetHasBeenSet; }
87 inline void SetMetricTarget(double value) { m_metricTargetHasBeenSet = true; m_metricTarget = value; }
88 inline AutoScalingConfiguration& WithMetricTarget(double value) { SetMetricTarget(value); return *this;}
90
92
96 inline double GetScaleInCooldownSeconds() const{ return m_scaleInCooldownSeconds; }
97 inline bool ScaleInCooldownSecondsHasBeenSet() const { return m_scaleInCooldownSecondsHasBeenSet; }
98 inline void SetScaleInCooldownSeconds(double value) { m_scaleInCooldownSecondsHasBeenSet = true; m_scaleInCooldownSeconds = value; }
101
103
107 inline double GetScaleOutCooldownSeconds() const{ return m_scaleOutCooldownSeconds; }
108 inline bool ScaleOutCooldownSecondsHasBeenSet() const { return m_scaleOutCooldownSecondsHasBeenSet; }
109 inline void SetScaleOutCooldownSeconds(double value) { m_scaleOutCooldownSecondsHasBeenSet = true; m_scaleOutCooldownSeconds = value; }
112 private:
113
114 int m_minNodeCount;
115 bool m_minNodeCountHasBeenSet = false;
116
117 int m_maxNodeCount;
118 bool m_maxNodeCountHasBeenSet = false;
119
120 AutoScalingMetric m_autoScalingMetric;
121 bool m_autoScalingMetricHasBeenSet = false;
122
123 double m_metricTarget;
124 bool m_metricTargetHasBeenSet = false;
125
126 double m_scaleInCooldownSeconds;
127 bool m_scaleInCooldownSecondsHasBeenSet = false;
128
129 double m_scaleOutCooldownSeconds;
130 bool m_scaleOutCooldownSecondsHasBeenSet = false;
131 };
132
133} // namespace Model
134} // namespace finspace
135} // namespace Aws
const AutoScalingMetric & GetAutoScalingMetric() const
AutoScalingConfiguration & WithAutoScalingMetric(const AutoScalingMetric &value)
AutoScalingConfiguration & WithMinNodeCount(int value)
AWS_FINSPACE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAutoScalingMetric(const AutoScalingMetric &value)
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