AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AutoScalingDescription.h
1
6#pragma once
7#include <aws/kafkaconnect/KafkaConnect_EXPORTS.h>
8#include <aws/kafkaconnect/model/ScaleInPolicyDescription.h>
9#include <aws/kafkaconnect/model/ScaleOutPolicyDescription.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace KafkaConnect
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_KAFKACONNECT_API AutoScalingDescription() = default;
37 AWS_KAFKACONNECT_API AutoScalingDescription(Aws::Utils::Json::JsonView jsonValue);
39 AWS_KAFKACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline int GetMaxWorkerCount() const { return m_maxWorkerCount; }
47 inline bool MaxWorkerCountHasBeenSet() const { return m_maxWorkerCountHasBeenSet; }
48 inline void SetMaxWorkerCount(int value) { m_maxWorkerCountHasBeenSet = true; m_maxWorkerCount = value; }
49 inline AutoScalingDescription& WithMaxWorkerCount(int value) { SetMaxWorkerCount(value); return *this;}
51
53
57 inline int GetMcuCount() const { return m_mcuCount; }
58 inline bool McuCountHasBeenSet() const { return m_mcuCountHasBeenSet; }
59 inline void SetMcuCount(int value) { m_mcuCountHasBeenSet = true; m_mcuCount = value; }
60 inline AutoScalingDescription& WithMcuCount(int value) { SetMcuCount(value); return *this;}
62
64
67 inline int GetMinWorkerCount() const { return m_minWorkerCount; }
68 inline bool MinWorkerCountHasBeenSet() const { return m_minWorkerCountHasBeenSet; }
69 inline void SetMinWorkerCount(int value) { m_minWorkerCountHasBeenSet = true; m_minWorkerCount = value; }
70 inline AutoScalingDescription& WithMinWorkerCount(int value) { SetMinWorkerCount(value); return *this;}
72
74
77 inline const ScaleInPolicyDescription& GetScaleInPolicy() const { return m_scaleInPolicy; }
78 inline bool ScaleInPolicyHasBeenSet() const { return m_scaleInPolicyHasBeenSet; }
79 template<typename ScaleInPolicyT = ScaleInPolicyDescription>
80 void SetScaleInPolicy(ScaleInPolicyT&& value) { m_scaleInPolicyHasBeenSet = true; m_scaleInPolicy = std::forward<ScaleInPolicyT>(value); }
81 template<typename ScaleInPolicyT = ScaleInPolicyDescription>
82 AutoScalingDescription& WithScaleInPolicy(ScaleInPolicyT&& value) { SetScaleInPolicy(std::forward<ScaleInPolicyT>(value)); return *this;}
84
86
89 inline const ScaleOutPolicyDescription& GetScaleOutPolicy() const { return m_scaleOutPolicy; }
90 inline bool ScaleOutPolicyHasBeenSet() const { return m_scaleOutPolicyHasBeenSet; }
91 template<typename ScaleOutPolicyT = ScaleOutPolicyDescription>
92 void SetScaleOutPolicy(ScaleOutPolicyT&& value) { m_scaleOutPolicyHasBeenSet = true; m_scaleOutPolicy = std::forward<ScaleOutPolicyT>(value); }
93 template<typename ScaleOutPolicyT = ScaleOutPolicyDescription>
94 AutoScalingDescription& WithScaleOutPolicy(ScaleOutPolicyT&& value) { SetScaleOutPolicy(std::forward<ScaleOutPolicyT>(value)); return *this;}
96 private:
97
98 int m_maxWorkerCount{0};
99 bool m_maxWorkerCountHasBeenSet = false;
100
101 int m_mcuCount{0};
102 bool m_mcuCountHasBeenSet = false;
103
104 int m_minWorkerCount{0};
105 bool m_minWorkerCountHasBeenSet = false;
106
107 ScaleInPolicyDescription m_scaleInPolicy;
108 bool m_scaleInPolicyHasBeenSet = false;
109
110 ScaleOutPolicyDescription m_scaleOutPolicy;
111 bool m_scaleOutPolicyHasBeenSet = false;
112 };
113
114} // namespace Model
115} // namespace KafkaConnect
116} // namespace Aws
AWS_KAFKACONNECT_API AutoScalingDescription()=default
AutoScalingDescription & WithMinWorkerCount(int value)
AutoScalingDescription & WithMaxWorkerCount(int value)
AWS_KAFKACONNECT_API AutoScalingDescription(Aws::Utils::Json::JsonView jsonValue)
AWS_KAFKACONNECT_API AutoScalingDescription & operator=(Aws::Utils::Json::JsonView jsonValue)
const ScaleOutPolicyDescription & GetScaleOutPolicy() const
AutoScalingDescription & WithScaleInPolicy(ScaleInPolicyT &&value)
AutoScalingDescription & WithScaleOutPolicy(ScaleOutPolicyT &&value)
AWS_KAFKACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
const ScaleInPolicyDescription & GetScaleInPolicy() const
Aws::Utils::Json::JsonValue JsonValue