1 /**
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  * SPDX-License-Identifier: Apache-2.0.
4  */
5 
6 #pragma once
7 #include <aws/kafkaconnect/KafkaConnect_EXPORTS.h>
8 
9 namespace Aws
10 {
11 namespace Utils
12 {
13 namespace Json
14 {
15   class JsonValue;
16   class JsonView;
17 } // namespace Json
18 } // namespace Utils
19 namespace KafkaConnect
20 {
21 namespace Model
22 {
23 
24   /**
25    * <p>The description of the scale-out policy for the connector.</p><p><h3>See
26    * Also:</h3>   <a
27    * href="http://docs.aws.amazon.com/goto/WebAPI/kafkaconnect-2021-09-14/ScaleOutPolicyDescription">AWS
28    * API Reference</a></p>
29    */
30   class AWS_KAFKACONNECT_API ScaleOutPolicyDescription
31   {
32   public:
33     ScaleOutPolicyDescription();
34     ScaleOutPolicyDescription(Aws::Utils::Json::JsonView jsonValue);
35     ScaleOutPolicyDescription& operator=(Aws::Utils::Json::JsonView jsonValue);
36     Aws::Utils::Json::JsonValue Jsonize() const;
37 
38 
39     /**
40      * <p>The CPU utilization percentage threshold at which you want connector scale
41      * out to be triggered.</p>
42      */
GetCpuUtilizationPercentage()43     inline int GetCpuUtilizationPercentage() const{ return m_cpuUtilizationPercentage; }
44 
45     /**
46      * <p>The CPU utilization percentage threshold at which you want connector scale
47      * out to be triggered.</p>
48      */
CpuUtilizationPercentageHasBeenSet()49     inline bool CpuUtilizationPercentageHasBeenSet() const { return m_cpuUtilizationPercentageHasBeenSet; }
50 
51     /**
52      * <p>The CPU utilization percentage threshold at which you want connector scale
53      * out to be triggered.</p>
54      */
SetCpuUtilizationPercentage(int value)55     inline void SetCpuUtilizationPercentage(int value) { m_cpuUtilizationPercentageHasBeenSet = true; m_cpuUtilizationPercentage = value; }
56 
57     /**
58      * <p>The CPU utilization percentage threshold at which you want connector scale
59      * out to be triggered.</p>
60      */
WithCpuUtilizationPercentage(int value)61     inline ScaleOutPolicyDescription& WithCpuUtilizationPercentage(int value) { SetCpuUtilizationPercentage(value); return *this;}
62 
63   private:
64 
65     int m_cpuUtilizationPercentage;
66     bool m_cpuUtilizationPercentageHasBeenSet;
67   };
68 
69 } // namespace Model
70 } // namespace KafkaConnect
71 } // namespace Aws
72