AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AutoScaling.h
1
6#pragma once
7#include <aws/kafkaconnect/KafkaConnect_EXPORTS.h>
8#include <aws/kafkaconnect/model/ScaleInPolicy.h>
9#include <aws/kafkaconnect/model/ScaleOutPolicy.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
33 {
34 public:
35 AWS_KAFKACONNECT_API AutoScaling();
36 AWS_KAFKACONNECT_API AutoScaling(Aws::Utils::Json::JsonView jsonValue);
37 AWS_KAFKACONNECT_API AutoScaling& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_KAFKACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline int GetMaxWorkerCount() const{ return m_maxWorkerCount; }
46 inline bool MaxWorkerCountHasBeenSet() const { return m_maxWorkerCountHasBeenSet; }
47 inline void SetMaxWorkerCount(int value) { m_maxWorkerCountHasBeenSet = true; m_maxWorkerCount = value; }
48 inline AutoScaling& WithMaxWorkerCount(int value) { SetMaxWorkerCount(value); return *this;}
50
52
56 inline int GetMcuCount() const{ return m_mcuCount; }
57 inline bool McuCountHasBeenSet() const { return m_mcuCountHasBeenSet; }
58 inline void SetMcuCount(int value) { m_mcuCountHasBeenSet = true; m_mcuCount = value; }
59 inline AutoScaling& WithMcuCount(int value) { SetMcuCount(value); return *this;}
61
63
66 inline int GetMinWorkerCount() const{ return m_minWorkerCount; }
67 inline bool MinWorkerCountHasBeenSet() const { return m_minWorkerCountHasBeenSet; }
68 inline void SetMinWorkerCount(int value) { m_minWorkerCountHasBeenSet = true; m_minWorkerCount = value; }
69 inline AutoScaling& WithMinWorkerCount(int value) { SetMinWorkerCount(value); return *this;}
71
73
76 inline const ScaleInPolicy& GetScaleInPolicy() const{ return m_scaleInPolicy; }
77 inline bool ScaleInPolicyHasBeenSet() const { return m_scaleInPolicyHasBeenSet; }
78 inline void SetScaleInPolicy(const ScaleInPolicy& value) { m_scaleInPolicyHasBeenSet = true; m_scaleInPolicy = value; }
79 inline void SetScaleInPolicy(ScaleInPolicy&& value) { m_scaleInPolicyHasBeenSet = true; m_scaleInPolicy = std::move(value); }
80 inline AutoScaling& WithScaleInPolicy(const ScaleInPolicy& value) { SetScaleInPolicy(value); return *this;}
81 inline AutoScaling& WithScaleInPolicy(ScaleInPolicy&& value) { SetScaleInPolicy(std::move(value)); return *this;}
83
85
88 inline const ScaleOutPolicy& GetScaleOutPolicy() const{ return m_scaleOutPolicy; }
89 inline bool ScaleOutPolicyHasBeenSet() const { return m_scaleOutPolicyHasBeenSet; }
90 inline void SetScaleOutPolicy(const ScaleOutPolicy& value) { m_scaleOutPolicyHasBeenSet = true; m_scaleOutPolicy = value; }
91 inline void SetScaleOutPolicy(ScaleOutPolicy&& value) { m_scaleOutPolicyHasBeenSet = true; m_scaleOutPolicy = std::move(value); }
92 inline AutoScaling& WithScaleOutPolicy(const ScaleOutPolicy& value) { SetScaleOutPolicy(value); return *this;}
93 inline AutoScaling& WithScaleOutPolicy(ScaleOutPolicy&& value) { SetScaleOutPolicy(std::move(value)); return *this;}
95 private:
96
97 int m_maxWorkerCount;
98 bool m_maxWorkerCountHasBeenSet = false;
99
100 int m_mcuCount;
101 bool m_mcuCountHasBeenSet = false;
102
103 int m_minWorkerCount;
104 bool m_minWorkerCountHasBeenSet = false;
105
106 ScaleInPolicy m_scaleInPolicy;
107 bool m_scaleInPolicyHasBeenSet = false;
108
109 ScaleOutPolicy m_scaleOutPolicy;
110 bool m_scaleOutPolicyHasBeenSet = false;
111 };
112
113} // namespace Model
114} // namespace KafkaConnect
115} // namespace Aws
AutoScaling & WithScaleInPolicy(const ScaleInPolicy &value)
Definition AutoScaling.h:80
AutoScaling & WithScaleOutPolicy(const ScaleOutPolicy &value)
Definition AutoScaling.h:92
AutoScaling & WithMinWorkerCount(int value)
Definition AutoScaling.h:69
AutoScaling & WithMaxWorkerCount(int value)
Definition AutoScaling.h:48
AutoScaling & WithScaleOutPolicy(ScaleOutPolicy &&value)
Definition AutoScaling.h:93
void SetScaleInPolicy(ScaleInPolicy &&value)
Definition AutoScaling.h:79
const ScaleInPolicy & GetScaleInPolicy() const
Definition AutoScaling.h:76
AWS_KAFKACONNECT_API AutoScaling & operator=(Aws::Utils::Json::JsonView jsonValue)
const ScaleOutPolicy & GetScaleOutPolicy() const
Definition AutoScaling.h:88
void SetScaleOutPolicy(const ScaleOutPolicy &value)
Definition AutoScaling.h:90
AWS_KAFKACONNECT_API AutoScaling(Aws::Utils::Json::JsonView jsonValue)
AWS_KAFKACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
AutoScaling & WithMcuCount(int value)
Definition AutoScaling.h:59
AutoScaling & WithScaleInPolicy(ScaleInPolicy &&value)
Definition AutoScaling.h:81
void SetScaleInPolicy(const ScaleInPolicy &value)
Definition AutoScaling.h:78
AWS_KAFKACONNECT_API AutoScaling()
void SetScaleOutPolicy(ScaleOutPolicy &&value)
Definition AutoScaling.h:91
Aws::Utils::Json::JsonValue JsonValue