AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AutoScalingUpdate.h
1
6#pragma once
7#include <aws/kafkaconnect/KafkaConnect_EXPORTS.h>
8#include <aws/kafkaconnect/model/ScaleInPolicyUpdate.h>
9#include <aws/kafkaconnect/model/ScaleOutPolicyUpdate.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 AutoScalingUpdate();
37 AWS_KAFKACONNECT_API AutoScalingUpdate(Aws::Utils::Json::JsonView jsonValue);
38 AWS_KAFKACONNECT_API AutoScalingUpdate& operator=(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 AutoScalingUpdate& 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 AutoScalingUpdate& 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 AutoScalingUpdate& WithMinWorkerCount(int value) { SetMinWorkerCount(value); return *this;}
72
74
77 inline const ScaleInPolicyUpdate& GetScaleInPolicy() const{ return m_scaleInPolicy; }
78 inline bool ScaleInPolicyHasBeenSet() const { return m_scaleInPolicyHasBeenSet; }
79 inline void SetScaleInPolicy(const ScaleInPolicyUpdate& value) { m_scaleInPolicyHasBeenSet = true; m_scaleInPolicy = value; }
80 inline void SetScaleInPolicy(ScaleInPolicyUpdate&& value) { m_scaleInPolicyHasBeenSet = true; m_scaleInPolicy = std::move(value); }
81 inline AutoScalingUpdate& WithScaleInPolicy(const ScaleInPolicyUpdate& value) { SetScaleInPolicy(value); return *this;}
82 inline AutoScalingUpdate& WithScaleInPolicy(ScaleInPolicyUpdate&& value) { SetScaleInPolicy(std::move(value)); return *this;}
84
86
89 inline const ScaleOutPolicyUpdate& GetScaleOutPolicy() const{ return m_scaleOutPolicy; }
90 inline bool ScaleOutPolicyHasBeenSet() const { return m_scaleOutPolicyHasBeenSet; }
91 inline void SetScaleOutPolicy(const ScaleOutPolicyUpdate& value) { m_scaleOutPolicyHasBeenSet = true; m_scaleOutPolicy = value; }
92 inline void SetScaleOutPolicy(ScaleOutPolicyUpdate&& value) { m_scaleOutPolicyHasBeenSet = true; m_scaleOutPolicy = std::move(value); }
93 inline AutoScalingUpdate& WithScaleOutPolicy(const ScaleOutPolicyUpdate& value) { SetScaleOutPolicy(value); return *this;}
94 inline AutoScalingUpdate& WithScaleOutPolicy(ScaleOutPolicyUpdate&& 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 ScaleInPolicyUpdate m_scaleInPolicy;
108 bool m_scaleInPolicyHasBeenSet = false;
109
110 ScaleOutPolicyUpdate m_scaleOutPolicy;
111 bool m_scaleOutPolicyHasBeenSet = false;
112 };
113
114} // namespace Model
115} // namespace KafkaConnect
116} // namespace Aws
AutoScalingUpdate & WithScaleOutPolicy(const ScaleOutPolicyUpdate &value)
AutoScalingUpdate & WithScaleOutPolicy(ScaleOutPolicyUpdate &&value)
AutoScalingUpdate & WithScaleInPolicy(ScaleInPolicyUpdate &&value)
const ScaleInPolicyUpdate & GetScaleInPolicy() const
void SetScaleInPolicy(ScaleInPolicyUpdate &&value)
const ScaleOutPolicyUpdate & GetScaleOutPolicy() const
AutoScalingUpdate & WithMcuCount(int value)
void SetScaleOutPolicy(ScaleOutPolicyUpdate &&value)
AutoScalingUpdate & WithMinWorkerCount(int value)
AWS_KAFKACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetScaleInPolicy(const ScaleInPolicyUpdate &value)
AWS_KAFKACONNECT_API AutoScalingUpdate & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetScaleOutPolicy(const ScaleOutPolicyUpdate &value)
AutoScalingUpdate & WithMaxWorkerCount(int value)
AWS_KAFKACONNECT_API AutoScalingUpdate(Aws::Utils::Json::JsonView jsonValue)
AutoScalingUpdate & WithScaleInPolicy(const ScaleInPolicyUpdate &value)
Aws::Utils::Json::JsonValue JsonValue