/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::Utils::Json; using namespace Aws::Utils; namespace Aws { namespace KafkaConnect { namespace Model { ScaleOutPolicyUpdate::ScaleOutPolicyUpdate() : m_cpuUtilizationPercentage(0), m_cpuUtilizationPercentageHasBeenSet(false) { } ScaleOutPolicyUpdate::ScaleOutPolicyUpdate(JsonView jsonValue) : m_cpuUtilizationPercentage(0), m_cpuUtilizationPercentageHasBeenSet(false) { *this = jsonValue; } ScaleOutPolicyUpdate& ScaleOutPolicyUpdate::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("cpuUtilizationPercentage")) { m_cpuUtilizationPercentage = jsonValue.GetInteger("cpuUtilizationPercentage"); m_cpuUtilizationPercentageHasBeenSet = true; } return *this; } JsonValue ScaleOutPolicyUpdate::Jsonize() const { JsonValue payload; if(m_cpuUtilizationPercentageHasBeenSet) { payload.WithInteger("cpuUtilizationPercentage", m_cpuUtilizationPercentage); } return payload; } } // namespace Model } // namespace KafkaConnect } // namespace Aws