/** * 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 range of a continuous hyperparameter.

See * Also:

AWS * API Reference

*/ class ContinuousHyperParameterRange { public: AWS_PERSONALIZE_API ContinuousHyperParameterRange(); AWS_PERSONALIZE_API ContinuousHyperParameterRange(Aws::Utils::Json::JsonView jsonValue); AWS_PERSONALIZE_API ContinuousHyperParameterRange& 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 ContinuousHyperParameterRange& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the hyperparameter.

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

The name of the hyperparameter.

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

The minimum allowable value for the hyperparameter.

*/ inline double 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(double value) { m_minValueHasBeenSet = true; m_minValue = value; } /** *

The minimum allowable value for the hyperparameter.

*/ inline ContinuousHyperParameterRange& WithMinValue(double value) { SetMinValue(value); return *this;} /** *

The maximum allowable value for the hyperparameter.

*/ inline double 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(double value) { m_maxValueHasBeenSet = true; m_maxValue = value; } /** *

The maximum allowable value for the hyperparameter.

*/ inline ContinuousHyperParameterRange& WithMaxValue(double value) { SetMaxValue(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; double m_minValue; bool m_minValueHasBeenSet = false; double m_maxValue; bool m_maxValueHasBeenSet = false; }; } // namespace Model } // namespace Personalize } // namespace Aws