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

Defines a hyperparameter to be used by an algorithm.

See Also:

* AWS * API Reference

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

The name of this hyperparameter. The name must be unique.

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

The name of this hyperparameter. The name must be unique.

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

The name of this hyperparameter. The name must be unique.

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

The name of this hyperparameter. The name must be unique.

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

The name of this hyperparameter. The name must be unique.

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

The name of this hyperparameter. The name must be unique.

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

The name of this hyperparameter. The name must be unique.

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

The name of this hyperparameter. The name must be unique.

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

A brief description of the hyperparameter.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

A brief description of the hyperparameter.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

A brief description of the hyperparameter.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

A brief description of the hyperparameter.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

A brief description of the hyperparameter.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

A brief description of the hyperparameter.

*/ inline HyperParameterSpecification& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

A brief description of the hyperparameter.

*/ inline HyperParameterSpecification& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

A brief description of the hyperparameter.

*/ inline HyperParameterSpecification& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The type of this hyperparameter. The valid types are Integer, * Continuous, Categorical, and * FreeText.

*/ inline const ParameterType& GetType() const{ return m_type; } /** *

The type of this hyperparameter. The valid types are Integer, * Continuous, Categorical, and * FreeText.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The type of this hyperparameter. The valid types are Integer, * Continuous, Categorical, and * FreeText.

*/ inline void SetType(const ParameterType& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The type of this hyperparameter. The valid types are Integer, * Continuous, Categorical, and * FreeText.

*/ inline void SetType(ParameterType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The type of this hyperparameter. The valid types are Integer, * Continuous, Categorical, and * FreeText.

*/ inline HyperParameterSpecification& WithType(const ParameterType& value) { SetType(value); return *this;} /** *

The type of this hyperparameter. The valid types are Integer, * Continuous, Categorical, and * FreeText.

*/ inline HyperParameterSpecification& WithType(ParameterType&& value) { SetType(std::move(value)); return *this;} /** *

The allowed range for this hyperparameter.

*/ inline const ParameterRange& GetRange() const{ return m_range; } /** *

The allowed range for this hyperparameter.

*/ inline bool RangeHasBeenSet() const { return m_rangeHasBeenSet; } /** *

The allowed range for this hyperparameter.

*/ inline void SetRange(const ParameterRange& value) { m_rangeHasBeenSet = true; m_range = value; } /** *

The allowed range for this hyperparameter.

*/ inline void SetRange(ParameterRange&& value) { m_rangeHasBeenSet = true; m_range = std::move(value); } /** *

The allowed range for this hyperparameter.

*/ inline HyperParameterSpecification& WithRange(const ParameterRange& value) { SetRange(value); return *this;} /** *

The allowed range for this hyperparameter.

*/ inline HyperParameterSpecification& WithRange(ParameterRange&& value) { SetRange(std::move(value)); return *this;} /** *

Indicates whether this hyperparameter is tunable in a hyperparameter tuning * job.

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

Indicates whether this hyperparameter is tunable in a hyperparameter tuning * job.

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

Indicates whether this hyperparameter is tunable in a hyperparameter tuning * job.

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

Indicates whether this hyperparameter is tunable in a hyperparameter tuning * job.

*/ inline HyperParameterSpecification& WithIsTunable(bool value) { SetIsTunable(value); return *this;} /** *

Indicates whether this hyperparameter is required.

*/ inline bool GetIsRequired() const{ return m_isRequired; } /** *

Indicates whether this hyperparameter is required.

*/ inline bool IsRequiredHasBeenSet() const { return m_isRequiredHasBeenSet; } /** *

Indicates whether this hyperparameter is required.

*/ inline void SetIsRequired(bool value) { m_isRequiredHasBeenSet = true; m_isRequired = value; } /** *

Indicates whether this hyperparameter is required.

*/ inline HyperParameterSpecification& WithIsRequired(bool value) { SetIsRequired(value); return *this;} /** *

The default value for this hyperparameter. If a default value is specified, a * hyperparameter cannot be required.

*/ inline const Aws::String& GetDefaultValue() const{ return m_defaultValue; } /** *

The default value for this hyperparameter. If a default value is specified, a * hyperparameter cannot be required.

*/ inline bool DefaultValueHasBeenSet() const { return m_defaultValueHasBeenSet; } /** *

The default value for this hyperparameter. If a default value is specified, a * hyperparameter cannot be required.

*/ inline void SetDefaultValue(const Aws::String& value) { m_defaultValueHasBeenSet = true; m_defaultValue = value; } /** *

The default value for this hyperparameter. If a default value is specified, a * hyperparameter cannot be required.

*/ inline void SetDefaultValue(Aws::String&& value) { m_defaultValueHasBeenSet = true; m_defaultValue = std::move(value); } /** *

The default value for this hyperparameter. If a default value is specified, a * hyperparameter cannot be required.

*/ inline void SetDefaultValue(const char* value) { m_defaultValueHasBeenSet = true; m_defaultValue.assign(value); } /** *

The default value for this hyperparameter. If a default value is specified, a * hyperparameter cannot be required.

*/ inline HyperParameterSpecification& WithDefaultValue(const Aws::String& value) { SetDefaultValue(value); return *this;} /** *

The default value for this hyperparameter. If a default value is specified, a * hyperparameter cannot be required.

*/ inline HyperParameterSpecification& WithDefaultValue(Aws::String&& value) { SetDefaultValue(std::move(value)); return *this;} /** *

The default value for this hyperparameter. If a default value is specified, a * hyperparameter cannot be required.

*/ inline HyperParameterSpecification& WithDefaultValue(const char* value) { SetDefaultValue(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; ParameterType m_type; bool m_typeHasBeenSet = false; ParameterRange m_range; bool m_rangeHasBeenSet = false; bool m_isTunable; bool m_isTunableHasBeenSet = false; bool m_isRequired; bool m_isRequiredHasBeenSet = false; Aws::String m_defaultValue; bool m_defaultValueHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws