/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace KafkaConnect { namespace Model { /** *

The description of the scale-out policy for the connector.

See * Also:

AWS * API Reference

*/ class ScaleOutPolicyDescription { public: AWS_KAFKACONNECT_API ScaleOutPolicyDescription(); AWS_KAFKACONNECT_API ScaleOutPolicyDescription(Aws::Utils::Json::JsonView jsonValue); AWS_KAFKACONNECT_API ScaleOutPolicyDescription& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_KAFKACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The CPU utilization percentage threshold at which you want connector scale * out to be triggered.

*/ inline int GetCpuUtilizationPercentage() const{ return m_cpuUtilizationPercentage; } /** *

The CPU utilization percentage threshold at which you want connector scale * out to be triggered.

*/ inline bool CpuUtilizationPercentageHasBeenSet() const { return m_cpuUtilizationPercentageHasBeenSet; } /** *

The CPU utilization percentage threshold at which you want connector scale * out to be triggered.

*/ inline void SetCpuUtilizationPercentage(int value) { m_cpuUtilizationPercentageHasBeenSet = true; m_cpuUtilizationPercentage = value; } /** *

The CPU utilization percentage threshold at which you want connector scale * out to be triggered.

*/ inline ScaleOutPolicyDescription& WithCpuUtilizationPercentage(int value) { SetCpuUtilizationPercentage(value); return *this;} private: int m_cpuUtilizationPercentage; bool m_cpuUtilizationPercentageHasBeenSet = false; }; } // namespace Model } // namespace KafkaConnect } // namespace Aws