AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetScaleInPolicy(const ScaleInPolicyDescription& value) { m_scaleInPolicyHasBeenSet = true; m_scaleInPolicy = value; }
80 inline void SetScaleInPolicy(ScaleInPolicyDescription&& value) { m_scaleInPolicyHasBeenSet = true; m_scaleInPolicy = std::move(value); }
82 inline AutoScalingDescription& WithScaleInPolicy(ScaleInPolicyDescription&& value) { SetScaleInPolicy(std::move(value)); return *this;}
84
86
89 inline const ScaleOutPolicyDescription& GetScaleOutPolicy() const{ return m_scaleOutPolicy; }
90 inline bool ScaleOutPolicyHasBeenSet() const { return m_scaleOutPolicyHasBeenSet; }
91 inline void SetScaleOutPolicy(const ScaleOutPolicyDescription& value) { m_scaleOutPolicyHasBeenSet = true; m_scaleOutPolicy = value; }
92 inline void SetScaleOutPolicy(ScaleOutPolicyDescription&& value) { m_scaleOutPolicyHasBeenSet = true; m_scaleOutPolicy = std::move(value); }
94 inline AutoScalingDescription& WithScaleOutPolicy(ScaleOutPolicyDescription&& value) { SetScaleOutPolicy(std::move(value)); return *this;}
96 private:
97
98 int m_maxWorkerCount;
99 bool m_maxWorkerCountHasBeenSet = false;
100
101 int m_mcuCount;
102 bool m_mcuCountHasBeenSet = false;
103
104 int m_minWorkerCount;
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
void SetScaleOutPolicy(const ScaleOutPolicyDescription &value)
void SetScaleOutPolicy(ScaleOutPolicyDescription &&value)
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 & WithScaleOutPolicy(const ScaleOutPolicyDescription &value)
AutoScalingDescription & WithScaleInPolicy(ScaleInPolicyDescription &&value)
AutoScalingDescription & WithScaleOutPolicy(ScaleOutPolicyDescription &&value)
void SetScaleInPolicy(const ScaleInPolicyDescription &value)
AutoScalingDescription & WithScaleInPolicy(const ScaleInPolicyDescription &value)
AWS_KAFKACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetScaleInPolicy(ScaleInPolicyDescription &&value)
const ScaleInPolicyDescription & GetScaleInPolicy() const
Aws::Utils::Json::JsonValue JsonValue