/** * 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 { /** *

Specifies a production variant property type for an Endpoint.

If you * are updating an endpoint with the RetainAllVariantProperties option * of UpdateEndpointInput * set to true, the VariantProperty objects listed in the * ExcludeRetainedVariantProperties parameter of UpdateEndpointInput * override the existing variant properties of the endpoint.

See * Also:

AWS * API Reference

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

The type of variant property. The supported values are:

  • * DesiredInstanceCount: Overrides the existing variant instance * counts using the InitialInstanceCount values in the * ProductionVariants of CreateEndpointConfig.

    *
  • DesiredWeight: Overrides the existing variant * weights using the InitialVariantWeight values in the * ProductionVariants of CreateEndpointConfig.

    *
  • DataCaptureConfig: (Not currently supported.)

    *
*/ inline const VariantPropertyType& GetVariantPropertyType() const{ return m_variantPropertyType; } /** *

The type of variant property. The supported values are:

  • * DesiredInstanceCount: Overrides the existing variant instance * counts using the InitialInstanceCount values in the * ProductionVariants of CreateEndpointConfig.

    *
  • DesiredWeight: Overrides the existing variant * weights using the InitialVariantWeight values in the * ProductionVariants of CreateEndpointConfig.

    *
  • DataCaptureConfig: (Not currently supported.)

    *
*/ inline bool VariantPropertyTypeHasBeenSet() const { return m_variantPropertyTypeHasBeenSet; } /** *

The type of variant property. The supported values are:

  • * DesiredInstanceCount: Overrides the existing variant instance * counts using the InitialInstanceCount values in the * ProductionVariants of CreateEndpointConfig.

    *
  • DesiredWeight: Overrides the existing variant * weights using the InitialVariantWeight values in the * ProductionVariants of CreateEndpointConfig.

    *
  • DataCaptureConfig: (Not currently supported.)

    *
*/ inline void SetVariantPropertyType(const VariantPropertyType& value) { m_variantPropertyTypeHasBeenSet = true; m_variantPropertyType = value; } /** *

The type of variant property. The supported values are:

  • * DesiredInstanceCount: Overrides the existing variant instance * counts using the InitialInstanceCount values in the * ProductionVariants of CreateEndpointConfig.

    *
  • DesiredWeight: Overrides the existing variant * weights using the InitialVariantWeight values in the * ProductionVariants of CreateEndpointConfig.

    *
  • DataCaptureConfig: (Not currently supported.)

    *
*/ inline void SetVariantPropertyType(VariantPropertyType&& value) { m_variantPropertyTypeHasBeenSet = true; m_variantPropertyType = std::move(value); } /** *

The type of variant property. The supported values are:

  • * DesiredInstanceCount: Overrides the existing variant instance * counts using the InitialInstanceCount values in the * ProductionVariants of CreateEndpointConfig.

    *
  • DesiredWeight: Overrides the existing variant * weights using the InitialVariantWeight values in the * ProductionVariants of CreateEndpointConfig.

    *
  • DataCaptureConfig: (Not currently supported.)

    *
*/ inline VariantProperty& WithVariantPropertyType(const VariantPropertyType& value) { SetVariantPropertyType(value); return *this;} /** *

The type of variant property. The supported values are:

  • * DesiredInstanceCount: Overrides the existing variant instance * counts using the InitialInstanceCount values in the * ProductionVariants of CreateEndpointConfig.

    *
  • DesiredWeight: Overrides the existing variant * weights using the InitialVariantWeight values in the * ProductionVariants of CreateEndpointConfig.

    *
  • DataCaptureConfig: (Not currently supported.)

    *
*/ inline VariantProperty& WithVariantPropertyType(VariantPropertyType&& value) { SetVariantPropertyType(std::move(value)); return *this;} private: VariantPropertyType m_variantPropertyType; bool m_variantPropertyTypeHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws