/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes the properties for hyperparameter optimization (HPO). For use with
* the bring-your-own-recipe feature. Do not use for Amazon Personalize native
* recipes.See Also:
AWS
* API Reference
The metric to optimize during HPO.
*/ inline const HPOObjective& GetHpoObjective() const{ return m_hpoObjective; } /** *The metric to optimize during HPO.
*/ inline bool HpoObjectiveHasBeenSet() const { return m_hpoObjectiveHasBeenSet; } /** *The metric to optimize during HPO.
*/ inline void SetHpoObjective(const HPOObjective& value) { m_hpoObjectiveHasBeenSet = true; m_hpoObjective = value; } /** *The metric to optimize during HPO.
*/ inline void SetHpoObjective(HPOObjective&& value) { m_hpoObjectiveHasBeenSet = true; m_hpoObjective = std::move(value); } /** *The metric to optimize during HPO.
*/ inline HPOConfig& WithHpoObjective(const HPOObjective& value) { SetHpoObjective(value); return *this;} /** *The metric to optimize during HPO.
*/ inline HPOConfig& WithHpoObjective(HPOObjective&& value) { SetHpoObjective(std::move(value)); return *this;} /** *Describes the resource configuration for HPO.
*/ inline const HPOResourceConfig& GetHpoResourceConfig() const{ return m_hpoResourceConfig; } /** *Describes the resource configuration for HPO.
*/ inline bool HpoResourceConfigHasBeenSet() const { return m_hpoResourceConfigHasBeenSet; } /** *Describes the resource configuration for HPO.
*/ inline void SetHpoResourceConfig(const HPOResourceConfig& value) { m_hpoResourceConfigHasBeenSet = true; m_hpoResourceConfig = value; } /** *Describes the resource configuration for HPO.
*/ inline void SetHpoResourceConfig(HPOResourceConfig&& value) { m_hpoResourceConfigHasBeenSet = true; m_hpoResourceConfig = std::move(value); } /** *Describes the resource configuration for HPO.
*/ inline HPOConfig& WithHpoResourceConfig(const HPOResourceConfig& value) { SetHpoResourceConfig(value); return *this;} /** *Describes the resource configuration for HPO.
*/ inline HPOConfig& WithHpoResourceConfig(HPOResourceConfig&& value) { SetHpoResourceConfig(std::move(value)); return *this;} /** *The hyperparameters and their allowable ranges.
*/ inline const HyperParameterRanges& GetAlgorithmHyperParameterRanges() const{ return m_algorithmHyperParameterRanges; } /** *The hyperparameters and their allowable ranges.
*/ inline bool AlgorithmHyperParameterRangesHasBeenSet() const { return m_algorithmHyperParameterRangesHasBeenSet; } /** *The hyperparameters and their allowable ranges.
*/ inline void SetAlgorithmHyperParameterRanges(const HyperParameterRanges& value) { m_algorithmHyperParameterRangesHasBeenSet = true; m_algorithmHyperParameterRanges = value; } /** *The hyperparameters and their allowable ranges.
*/ inline void SetAlgorithmHyperParameterRanges(HyperParameterRanges&& value) { m_algorithmHyperParameterRangesHasBeenSet = true; m_algorithmHyperParameterRanges = std::move(value); } /** *The hyperparameters and their allowable ranges.
*/ inline HPOConfig& WithAlgorithmHyperParameterRanges(const HyperParameterRanges& value) { SetAlgorithmHyperParameterRanges(value); return *this;} /** *The hyperparameters and their allowable ranges.
*/ inline HPOConfig& WithAlgorithmHyperParameterRanges(HyperParameterRanges&& value) { SetAlgorithmHyperParameterRanges(std::move(value)); return *this;} private: HPOObjective m_hpoObjective; bool m_hpoObjectiveHasBeenSet; HPOResourceConfig m_hpoResourceConfig; bool m_hpoResourceConfigHasBeenSet; HyperParameterRanges m_algorithmHyperParameterRanges; bool m_algorithmHyperParameterRangesHasBeenSet; }; } // namespace Model } // namespace Personalize } // namespace Aws