/** * 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 * UpdateEndpointInput$RetainAllVariantProperties option set to * true, the VariantProperty objects listed in * UpdateEndpointInput$ExcludeRetainedVariantProperties override the * existing variant properties of the endpoint.

See Also:

AWS * API Reference

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

The type of variant property. The supported values are:

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

The type of variant property. The supported values are:

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

The type of variant property. The supported values are:

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

The type of variant property. The supported values are:

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

The type of variant property. The supported values are:

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

The type of variant property. The supported values are:

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