/** * 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 { RecommendationJobResourceLimit::RecommendationJobResourceLimit() : m_maxNumberOfTests(0), m_maxNumberOfTestsHasBeenSet(false), m_maxParallelOfTests(0), m_maxParallelOfTestsHasBeenSet(false) { } RecommendationJobResourceLimit::RecommendationJobResourceLimit(JsonView jsonValue) : m_maxNumberOfTests(0), m_maxNumberOfTestsHasBeenSet(false), m_maxParallelOfTests(0), m_maxParallelOfTestsHasBeenSet(false) { *this = jsonValue; } RecommendationJobResourceLimit& RecommendationJobResourceLimit::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("MaxNumberOfTests")) { m_maxNumberOfTests = jsonValue.GetInteger("MaxNumberOfTests"); m_maxNumberOfTestsHasBeenSet = true; } if(jsonValue.ValueExists("MaxParallelOfTests")) { m_maxParallelOfTests = jsonValue.GetInteger("MaxParallelOfTests"); m_maxParallelOfTestsHasBeenSet = true; } return *this; } JsonValue RecommendationJobResourceLimit::Jsonize() const { JsonValue payload; if(m_maxNumberOfTestsHasBeenSet) { payload.WithInteger("MaxNumberOfTests", m_maxNumberOfTests); } if(m_maxParallelOfTestsHasBeenSet) { payload.WithInteger("MaxParallelOfTests", m_maxParallelOfTests); } return payload; } } // namespace Model } // namespace SageMaker } // namespace Aws