/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SageMaker { namespace Model { /** *

The name and sampling percentage of a shadow variant.

See * Also:

AWS * API Reference

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

The name of the shadow variant.

*/ inline const Aws::String& GetShadowModelVariantName() const{ return m_shadowModelVariantName; } /** *

The name of the shadow variant.

*/ inline bool ShadowModelVariantNameHasBeenSet() const { return m_shadowModelVariantNameHasBeenSet; } /** *

The name of the shadow variant.

*/ inline void SetShadowModelVariantName(const Aws::String& value) { m_shadowModelVariantNameHasBeenSet = true; m_shadowModelVariantName = value; } /** *

The name of the shadow variant.

*/ inline void SetShadowModelVariantName(Aws::String&& value) { m_shadowModelVariantNameHasBeenSet = true; m_shadowModelVariantName = std::move(value); } /** *

The name of the shadow variant.

*/ inline void SetShadowModelVariantName(const char* value) { m_shadowModelVariantNameHasBeenSet = true; m_shadowModelVariantName.assign(value); } /** *

The name of the shadow variant.

*/ inline ShadowModelVariantConfig& WithShadowModelVariantName(const Aws::String& value) { SetShadowModelVariantName(value); return *this;} /** *

The name of the shadow variant.

*/ inline ShadowModelVariantConfig& WithShadowModelVariantName(Aws::String&& value) { SetShadowModelVariantName(std::move(value)); return *this;} /** *

The name of the shadow variant.

*/ inline ShadowModelVariantConfig& WithShadowModelVariantName(const char* value) { SetShadowModelVariantName(value); return *this;} /** *

The percentage of inference requests that Amazon SageMaker replicates from * the production variant to the shadow variant.

*/ inline int GetSamplingPercentage() const{ return m_samplingPercentage; } /** *

The percentage of inference requests that Amazon SageMaker replicates from * the production variant to the shadow variant.

*/ inline bool SamplingPercentageHasBeenSet() const { return m_samplingPercentageHasBeenSet; } /** *

The percentage of inference requests that Amazon SageMaker replicates from * the production variant to the shadow variant.

*/ inline void SetSamplingPercentage(int value) { m_samplingPercentageHasBeenSet = true; m_samplingPercentage = value; } /** *

The percentage of inference requests that Amazon SageMaker replicates from * the production variant to the shadow variant.

*/ inline ShadowModelVariantConfig& WithSamplingPercentage(int value) { SetSamplingPercentage(value); return *this;} private: Aws::String m_shadowModelVariantName; bool m_shadowModelVariantNameHasBeenSet = false; int m_samplingPercentage; bool m_samplingPercentageHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws