/** * 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 SageMaker { namespace Model { ProductionVariantServerlessUpdateConfig::ProductionVariantServerlessUpdateConfig() : m_maxConcurrency(0), m_maxConcurrencyHasBeenSet(false), m_provisionedConcurrency(0), m_provisionedConcurrencyHasBeenSet(false) { } ProductionVariantServerlessUpdateConfig::ProductionVariantServerlessUpdateConfig(JsonView jsonValue) : m_maxConcurrency(0), m_maxConcurrencyHasBeenSet(false), m_provisionedConcurrency(0), m_provisionedConcurrencyHasBeenSet(false) { *this = jsonValue; } ProductionVariantServerlessUpdateConfig& ProductionVariantServerlessUpdateConfig::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("MaxConcurrency")) { m_maxConcurrency = jsonValue.GetInteger("MaxConcurrency"); m_maxConcurrencyHasBeenSet = true; } if(jsonValue.ValueExists("ProvisionedConcurrency")) { m_provisionedConcurrency = jsonValue.GetInteger("ProvisionedConcurrency"); m_provisionedConcurrencyHasBeenSet = true; } return *this; } JsonValue ProductionVariantServerlessUpdateConfig::Jsonize() const { JsonValue payload; if(m_maxConcurrencyHasBeenSet) { payload.WithInteger("MaxConcurrency", m_maxConcurrency); } if(m_provisionedConcurrencyHasBeenSet) { payload.WithInteger("ProvisionedConcurrency", m_provisionedConcurrency); } return payload; } } // namespace Model } // namespace SageMaker } // namespace Aws