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

When the solution performs AutoML (performAutoML is true in CreateSolution), * Amazon Personalize determines which recipe, from the specified list, optimizes * the given metric. Amazon Personalize then uses that recipe for the * solution.

See Also:

AWS * API Reference

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

The metric to optimize.

*/ inline const Aws::String& GetMetricName() const{ return m_metricName; } /** *

The metric to optimize.

*/ inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; } /** *

The metric to optimize.

*/ inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; } /** *

The metric to optimize.

*/ inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); } /** *

The metric to optimize.

*/ inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); } /** *

The metric to optimize.

*/ inline AutoMLConfig& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;} /** *

The metric to optimize.

*/ inline AutoMLConfig& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;} /** *

The metric to optimize.

*/ inline AutoMLConfig& WithMetricName(const char* value) { SetMetricName(value); return *this;} /** *

The list of candidate recipes.

*/ inline const Aws::Vector& GetRecipeList() const{ return m_recipeList; } /** *

The list of candidate recipes.

*/ inline bool RecipeListHasBeenSet() const { return m_recipeListHasBeenSet; } /** *

The list of candidate recipes.

*/ inline void SetRecipeList(const Aws::Vector& value) { m_recipeListHasBeenSet = true; m_recipeList = value; } /** *

The list of candidate recipes.

*/ inline void SetRecipeList(Aws::Vector&& value) { m_recipeListHasBeenSet = true; m_recipeList = std::move(value); } /** *

The list of candidate recipes.

*/ inline AutoMLConfig& WithRecipeList(const Aws::Vector& value) { SetRecipeList(value); return *this;} /** *

The list of candidate recipes.

*/ inline AutoMLConfig& WithRecipeList(Aws::Vector&& value) { SetRecipeList(std::move(value)); return *this;} /** *

The list of candidate recipes.

*/ inline AutoMLConfig& AddRecipeList(const Aws::String& value) { m_recipeListHasBeenSet = true; m_recipeList.push_back(value); return *this; } /** *

The list of candidate recipes.

*/ inline AutoMLConfig& AddRecipeList(Aws::String&& value) { m_recipeListHasBeenSet = true; m_recipeList.push_back(std::move(value)); return *this; } /** *

The list of candidate recipes.

*/ inline AutoMLConfig& AddRecipeList(const char* value) { m_recipeListHasBeenSet = true; m_recipeList.push_back(value); return *this; } private: Aws::String m_metricName; bool m_metricNameHasBeenSet = false; Aws::Vector m_recipeList; bool m_recipeListHasBeenSet = false; }; } // namespace Model } // namespace Personalize } // namespace Aws