/** * 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 Personalize { namespace Model { /** *

Provides the name and default range of a integer-valued hyperparameter and * whether the hyperparameter is tunable. A tunable hyperparameter can have its * value determined during hyperparameter optimization (HPO).

See * Also:

AWS * API Reference

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

The name of the hyperparameter.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the hyperparameter.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the hyperparameter.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the hyperparameter.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the hyperparameter.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the hyperparameter.

*/ inline DefaultIntegerHyperParameterRange& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the hyperparameter.

*/ inline DefaultIntegerHyperParameterRange& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the hyperparameter.

*/ inline DefaultIntegerHyperParameterRange& WithName(const char* value) { SetName(value); return *this;} /** *

The minimum allowable value for the hyperparameter.

*/ inline int GetMinValue() const{ return m_minValue; } /** *

The minimum allowable value for the hyperparameter.

*/ inline bool MinValueHasBeenSet() const { return m_minValueHasBeenSet; } /** *

The minimum allowable value for the hyperparameter.

*/ inline void SetMinValue(int value) { m_minValueHasBeenSet = true; m_minValue = value; } /** *

The minimum allowable value for the hyperparameter.

*/ inline DefaultIntegerHyperParameterRange& WithMinValue(int value) { SetMinValue(value); return *this;} /** *

The maximum allowable value for the hyperparameter.

*/ inline int GetMaxValue() const{ return m_maxValue; } /** *

The maximum allowable value for the hyperparameter.

*/ inline bool MaxValueHasBeenSet() const { return m_maxValueHasBeenSet; } /** *

The maximum allowable value for the hyperparameter.

*/ inline void SetMaxValue(int value) { m_maxValueHasBeenSet = true; m_maxValue = value; } /** *

The maximum allowable value for the hyperparameter.

*/ inline DefaultIntegerHyperParameterRange& WithMaxValue(int value) { SetMaxValue(value); return *this;} /** *

Indicates whether the hyperparameter is tunable.

*/ inline bool GetIsTunable() const{ return m_isTunable; } /** *

Indicates whether the hyperparameter is tunable.

*/ inline bool IsTunableHasBeenSet() const { return m_isTunableHasBeenSet; } /** *

Indicates whether the hyperparameter is tunable.

*/ inline void SetIsTunable(bool value) { m_isTunableHasBeenSet = true; m_isTunable = value; } /** *

Indicates whether the hyperparameter is tunable.

*/ inline DefaultIntegerHyperParameterRange& WithIsTunable(bool value) { SetIsTunable(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; int m_minValue; bool m_minValueHasBeenSet = false; int m_maxValue; bool m_maxValueHasBeenSet = false; bool m_isTunable; bool m_isTunableHasBeenSet = false; }; } // namespace Model } // namespace Personalize } // namespace Aws