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

Defines the possible values for a categorical hyperparameter.

See * Also:

AWS * API Reference

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

The allowed categories for the hyperparameter.

*/ inline const Aws::Vector& GetValues() const{ return m_values; } /** *

The allowed categories for the hyperparameter.

*/ inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; } /** *

The allowed categories for the hyperparameter.

*/ inline void SetValues(const Aws::Vector& value) { m_valuesHasBeenSet = true; m_values = value; } /** *

The allowed categories for the hyperparameter.

*/ inline void SetValues(Aws::Vector&& value) { m_valuesHasBeenSet = true; m_values = std::move(value); } /** *

The allowed categories for the hyperparameter.

*/ inline CategoricalParameterRangeSpecification& WithValues(const Aws::Vector& value) { SetValues(value); return *this;} /** *

The allowed categories for the hyperparameter.

*/ inline CategoricalParameterRangeSpecification& WithValues(Aws::Vector&& value) { SetValues(std::move(value)); return *this;} /** *

The allowed categories for the hyperparameter.

*/ inline CategoricalParameterRangeSpecification& AddValues(const Aws::String& value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; } /** *

The allowed categories for the hyperparameter.

*/ inline CategoricalParameterRangeSpecification& AddValues(Aws::String&& value) { m_valuesHasBeenSet = true; m_values.push_back(std::move(value)); return *this; } /** *

The allowed categories for the hyperparameter.

*/ inline CategoricalParameterRangeSpecification& AddValues(const char* value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; } private: Aws::Vector m_values; bool m_valuesHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws