/** * 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 SageMaker { namespace Model { /** *

Specifies the maximum number of jobs that can run in parallel and the maximum * number of jobs that can run.

See Also:

AWS * API Reference

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

Defines the maximum number of load tests.

*/ inline int GetMaxNumberOfTests() const{ return m_maxNumberOfTests; } /** *

Defines the maximum number of load tests.

*/ inline bool MaxNumberOfTestsHasBeenSet() const { return m_maxNumberOfTestsHasBeenSet; } /** *

Defines the maximum number of load tests.

*/ inline void SetMaxNumberOfTests(int value) { m_maxNumberOfTestsHasBeenSet = true; m_maxNumberOfTests = value; } /** *

Defines the maximum number of load tests.

*/ inline RecommendationJobResourceLimit& WithMaxNumberOfTests(int value) { SetMaxNumberOfTests(value); return *this;} /** *

Defines the maximum number of parallel load tests.

*/ inline int GetMaxParallelOfTests() const{ return m_maxParallelOfTests; } /** *

Defines the maximum number of parallel load tests.

*/ inline bool MaxParallelOfTestsHasBeenSet() const { return m_maxParallelOfTestsHasBeenSet; } /** *

Defines the maximum number of parallel load tests.

*/ inline void SetMaxParallelOfTests(int value) { m_maxParallelOfTestsHasBeenSet = true; m_maxParallelOfTests = value; } /** *

Defines the maximum number of parallel load tests.

*/ inline RecommendationJobResourceLimit& WithMaxParallelOfTests(int value) { SetMaxParallelOfTests(value); return *this;} private: int m_maxNumberOfTests; bool m_maxNumberOfTestsHasBeenSet = false; int m_maxParallelOfTests; bool m_maxParallelOfTestsHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws