/** * 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 { /** *

The value of a hyperparameter. Only one of NumberValue or * StringValue can be specified.

This object is specified in * the CreateTrialComponent * request.

See Also:

AWS * API Reference

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

The string value of a categorical hyperparameter. If you specify a value for * this parameter, you can't specify the NumberValue parameter.

*/ inline const Aws::String& GetStringValue() const{ return m_stringValue; } /** *

The string value of a categorical hyperparameter. If you specify a value for * this parameter, you can't specify the NumberValue parameter.

*/ inline bool StringValueHasBeenSet() const { return m_stringValueHasBeenSet; } /** *

The string value of a categorical hyperparameter. If you specify a value for * this parameter, you can't specify the NumberValue parameter.

*/ inline void SetStringValue(const Aws::String& value) { m_stringValueHasBeenSet = true; m_stringValue = value; } /** *

The string value of a categorical hyperparameter. If you specify a value for * this parameter, you can't specify the NumberValue parameter.

*/ inline void SetStringValue(Aws::String&& value) { m_stringValueHasBeenSet = true; m_stringValue = std::move(value); } /** *

The string value of a categorical hyperparameter. If you specify a value for * this parameter, you can't specify the NumberValue parameter.

*/ inline void SetStringValue(const char* value) { m_stringValueHasBeenSet = true; m_stringValue.assign(value); } /** *

The string value of a categorical hyperparameter. If you specify a value for * this parameter, you can't specify the NumberValue parameter.

*/ inline TrialComponentParameterValue& WithStringValue(const Aws::String& value) { SetStringValue(value); return *this;} /** *

The string value of a categorical hyperparameter. If you specify a value for * this parameter, you can't specify the NumberValue parameter.

*/ inline TrialComponentParameterValue& WithStringValue(Aws::String&& value) { SetStringValue(std::move(value)); return *this;} /** *

The string value of a categorical hyperparameter. If you specify a value for * this parameter, you can't specify the NumberValue parameter.

*/ inline TrialComponentParameterValue& WithStringValue(const char* value) { SetStringValue(value); return *this;} /** *

The numeric value of a numeric hyperparameter. If you specify a value for * this parameter, you can't specify the StringValue parameter.

*/ inline double GetNumberValue() const{ return m_numberValue; } /** *

The numeric value of a numeric hyperparameter. If you specify a value for * this parameter, you can't specify the StringValue parameter.

*/ inline bool NumberValueHasBeenSet() const { return m_numberValueHasBeenSet; } /** *

The numeric value of a numeric hyperparameter. If you specify a value for * this parameter, you can't specify the StringValue parameter.

*/ inline void SetNumberValue(double value) { m_numberValueHasBeenSet = true; m_numberValue = value; } /** *

The numeric value of a numeric hyperparameter. If you specify a value for * this parameter, you can't specify the StringValue parameter.

*/ inline TrialComponentParameterValue& WithNumberValue(double value) { SetNumberValue(value); return *this;} private: Aws::String m_stringValue; bool m_stringValueHasBeenSet = false; double m_numberValue; bool m_numberValueHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws