/** * 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 { ScaleInPolicyUpdate::ScaleInPolicyUpdate() : m_cpuUtilizationPercentage(0), m_cpuUtilizationPercentageHasBeenSet(false) { } ScaleInPolicyUpdate::ScaleInPolicyUpdate(JsonView jsonValue) : m_cpuUtilizationPercentage(0), m_cpuUtilizationPercentageHasBeenSet(false) { *this = jsonValue; } ScaleInPolicyUpdate& ScaleInPolicyUpdate::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("cpuUtilizationPercentage")) { m_cpuUtilizationPercentage = jsonValue.GetInteger("cpuUtilizationPercentage"); m_cpuUtilizationPercentageHasBeenSet = true; } return *this; } JsonValue ScaleInPolicyUpdate::Jsonize() const { JsonValue payload; if(m_cpuUtilizationPercentageHasBeenSet) { payload.WithInteger("cpuUtilizationPercentage", m_cpuUtilizationPercentage); } return payload; } } // namespace Model } // namespace KafkaConnect } // namespace Aws