/** * 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 serverless update concurrency configuration for an endpoint * variant.

See Also:

AWS * API Reference

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

The updated maximum number of concurrent invocations your serverless endpoint * can process.

*/ inline int GetMaxConcurrency() const{ return m_maxConcurrency; } /** *

The updated maximum number of concurrent invocations your serverless endpoint * can process.

*/ inline bool MaxConcurrencyHasBeenSet() const { return m_maxConcurrencyHasBeenSet; } /** *

The updated maximum number of concurrent invocations your serverless endpoint * can process.

*/ inline void SetMaxConcurrency(int value) { m_maxConcurrencyHasBeenSet = true; m_maxConcurrency = value; } /** *

The updated maximum number of concurrent invocations your serverless endpoint * can process.

*/ inline ProductionVariantServerlessUpdateConfig& WithMaxConcurrency(int value) { SetMaxConcurrency(value); return *this;} /** *

The updated amount of provisioned concurrency to allocate for the serverless * endpoint. Should be less than or equal to MaxConcurrency.

*/ inline int GetProvisionedConcurrency() const{ return m_provisionedConcurrency; } /** *

The updated amount of provisioned concurrency to allocate for the serverless * endpoint. Should be less than or equal to MaxConcurrency.

*/ inline bool ProvisionedConcurrencyHasBeenSet() const { return m_provisionedConcurrencyHasBeenSet; } /** *

The updated amount of provisioned concurrency to allocate for the serverless * endpoint. Should be less than or equal to MaxConcurrency.

*/ inline void SetProvisionedConcurrency(int value) { m_provisionedConcurrencyHasBeenSet = true; m_provisionedConcurrency = value; } /** *

The updated amount of provisioned concurrency to allocate for the serverless * endpoint. Should be less than or equal to MaxConcurrency.

*/ inline ProductionVariantServerlessUpdateConfig& WithProvisionedConcurrency(int value) { SetProvisionedConcurrency(value); return *this;} private: int m_maxConcurrency; bool m_maxConcurrencyHasBeenSet = false; int m_provisionedConcurrency; bool m_provisionedConcurrencyHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws