/** * 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 Personalize { namespace Model { /** */ class AWS_PERSONALIZE_API CreateSolutionRequest : public PersonalizeRequest { public: CreateSolutionRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateSolution"; } Aws::String SerializePayload() const override; Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name for the solution.

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

The name for the solution.

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

The name for the solution.

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

The name for the solution.

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

The name for the solution.

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

The name for the solution.

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

The name for the solution.

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

The name for the solution.

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

Whether to perform hyperparameter optimization (HPO) on the specified or * selected recipe. The default is false.

When performing * AutoML, this parameter is always true and you should not set it to * false.

*/ inline bool GetPerformHPO() const{ return m_performHPO; } /** *

Whether to perform hyperparameter optimization (HPO) on the specified or * selected recipe. The default is false.

When performing * AutoML, this parameter is always true and you should not set it to * false.

*/ inline bool PerformHPOHasBeenSet() const { return m_performHPOHasBeenSet; } /** *

Whether to perform hyperparameter optimization (HPO) on the specified or * selected recipe. The default is false.

When performing * AutoML, this parameter is always true and you should not set it to * false.

*/ inline void SetPerformHPO(bool value) { m_performHPOHasBeenSet = true; m_performHPO = value; } /** *

Whether to perform hyperparameter optimization (HPO) on the specified or * selected recipe. The default is false.

When performing * AutoML, this parameter is always true and you should not set it to * false.

*/ inline CreateSolutionRequest& WithPerformHPO(bool value) { SetPerformHPO(value); return *this;} /** *

Whether to perform automated machine learning (AutoML). The default is * false. For this case, you must specify recipeArn.

*

When set to true, Amazon Personalize analyzes your training data * and selects the optimal USER_PERSONALIZATION recipe and hyperparameters. In this * case, you must omit recipeArn. Amazon Personalize determines the * optimal recipe by running tests with different values for the hyperparameters. * AutoML lengthens the training process as compared to selecting a specific * recipe.

*/ inline bool GetPerformAutoML() const{ return m_performAutoML; } /** *

Whether to perform automated machine learning (AutoML). The default is * false. For this case, you must specify recipeArn.

*

When set to true, Amazon Personalize analyzes your training data * and selects the optimal USER_PERSONALIZATION recipe and hyperparameters. In this * case, you must omit recipeArn. Amazon Personalize determines the * optimal recipe by running tests with different values for the hyperparameters. * AutoML lengthens the training process as compared to selecting a specific * recipe.

*/ inline bool PerformAutoMLHasBeenSet() const { return m_performAutoMLHasBeenSet; } /** *

Whether to perform automated machine learning (AutoML). The default is * false. For this case, you must specify recipeArn.

*

When set to true, Amazon Personalize analyzes your training data * and selects the optimal USER_PERSONALIZATION recipe and hyperparameters. In this * case, you must omit recipeArn. Amazon Personalize determines the * optimal recipe by running tests with different values for the hyperparameters. * AutoML lengthens the training process as compared to selecting a specific * recipe.

*/ inline void SetPerformAutoML(bool value) { m_performAutoMLHasBeenSet = true; m_performAutoML = value; } /** *

Whether to perform automated machine learning (AutoML). The default is * false. For this case, you must specify recipeArn.

*

When set to true, Amazon Personalize analyzes your training data * and selects the optimal USER_PERSONALIZATION recipe and hyperparameters. In this * case, you must omit recipeArn. Amazon Personalize determines the * optimal recipe by running tests with different values for the hyperparameters. * AutoML lengthens the training process as compared to selecting a specific * recipe.

*/ inline CreateSolutionRequest& WithPerformAutoML(bool value) { SetPerformAutoML(value); return *this;} /** *

The ARN of the recipe to use for model training. Only specified when * performAutoML is false.

*/ inline const Aws::String& GetRecipeArn() const{ return m_recipeArn; } /** *

The ARN of the recipe to use for model training. Only specified when * performAutoML is false.

*/ inline bool RecipeArnHasBeenSet() const { return m_recipeArnHasBeenSet; } /** *

The ARN of the recipe to use for model training. Only specified when * performAutoML is false.

*/ inline void SetRecipeArn(const Aws::String& value) { m_recipeArnHasBeenSet = true; m_recipeArn = value; } /** *

The ARN of the recipe to use for model training. Only specified when * performAutoML is false.

*/ inline void SetRecipeArn(Aws::String&& value) { m_recipeArnHasBeenSet = true; m_recipeArn = std::move(value); } /** *

The ARN of the recipe to use for model training. Only specified when * performAutoML is false.

*/ inline void SetRecipeArn(const char* value) { m_recipeArnHasBeenSet = true; m_recipeArn.assign(value); } /** *

The ARN of the recipe to use for model training. Only specified when * performAutoML is false.

*/ inline CreateSolutionRequest& WithRecipeArn(const Aws::String& value) { SetRecipeArn(value); return *this;} /** *

The ARN of the recipe to use for model training. Only specified when * performAutoML is false.

*/ inline CreateSolutionRequest& WithRecipeArn(Aws::String&& value) { SetRecipeArn(std::move(value)); return *this;} /** *

The ARN of the recipe to use for model training. Only specified when * performAutoML is false.

*/ inline CreateSolutionRequest& WithRecipeArn(const char* value) { SetRecipeArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the dataset group that provides the * training data.

*/ inline const Aws::String& GetDatasetGroupArn() const{ return m_datasetGroupArn; } /** *

The Amazon Resource Name (ARN) of the dataset group that provides the * training data.

*/ inline bool DatasetGroupArnHasBeenSet() const { return m_datasetGroupArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the dataset group that provides the * training data.

*/ inline void SetDatasetGroupArn(const Aws::String& value) { m_datasetGroupArnHasBeenSet = true; m_datasetGroupArn = value; } /** *

The Amazon Resource Name (ARN) of the dataset group that provides the * training data.

*/ inline void SetDatasetGroupArn(Aws::String&& value) { m_datasetGroupArnHasBeenSet = true; m_datasetGroupArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the dataset group that provides the * training data.

*/ inline void SetDatasetGroupArn(const char* value) { m_datasetGroupArnHasBeenSet = true; m_datasetGroupArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the dataset group that provides the * training data.

*/ inline CreateSolutionRequest& WithDatasetGroupArn(const Aws::String& value) { SetDatasetGroupArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the dataset group that provides the * training data.

*/ inline CreateSolutionRequest& WithDatasetGroupArn(Aws::String&& value) { SetDatasetGroupArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the dataset group that provides the * training data.

*/ inline CreateSolutionRequest& WithDatasetGroupArn(const char* value) { SetDatasetGroupArn(value); return *this;} /** *

When your have multiple event types (using an EVENT_TYPE schema * field), this parameter specifies which event type (for example, 'click' or * 'like') is used for training the model.

*/ inline const Aws::String& GetEventType() const{ return m_eventType; } /** *

When your have multiple event types (using an EVENT_TYPE schema * field), this parameter specifies which event type (for example, 'click' or * 'like') is used for training the model.

*/ inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; } /** *

When your have multiple event types (using an EVENT_TYPE schema * field), this parameter specifies which event type (for example, 'click' or * 'like') is used for training the model.

*/ inline void SetEventType(const Aws::String& value) { m_eventTypeHasBeenSet = true; m_eventType = value; } /** *

When your have multiple event types (using an EVENT_TYPE schema * field), this parameter specifies which event type (for example, 'click' or * 'like') is used for training the model.

*/ inline void SetEventType(Aws::String&& value) { m_eventTypeHasBeenSet = true; m_eventType = std::move(value); } /** *

When your have multiple event types (using an EVENT_TYPE schema * field), this parameter specifies which event type (for example, 'click' or * 'like') is used for training the model.

*/ inline void SetEventType(const char* value) { m_eventTypeHasBeenSet = true; m_eventType.assign(value); } /** *

When your have multiple event types (using an EVENT_TYPE schema * field), this parameter specifies which event type (for example, 'click' or * 'like') is used for training the model.

*/ inline CreateSolutionRequest& WithEventType(const Aws::String& value) { SetEventType(value); return *this;} /** *

When your have multiple event types (using an EVENT_TYPE schema * field), this parameter specifies which event type (for example, 'click' or * 'like') is used for training the model.

*/ inline CreateSolutionRequest& WithEventType(Aws::String&& value) { SetEventType(std::move(value)); return *this;} /** *

When your have multiple event types (using an EVENT_TYPE schema * field), this parameter specifies which event type (for example, 'click' or * 'like') is used for training the model.

*/ inline CreateSolutionRequest& WithEventType(const char* value) { SetEventType(value); return *this;} /** *

The configuration to use with the solution. When performAutoML * is set to true, Amazon Personalize only evaluates the autoMLConfig * section of the solution configuration.

*/ inline const SolutionConfig& GetSolutionConfig() const{ return m_solutionConfig; } /** *

The configuration to use with the solution. When performAutoML * is set to true, Amazon Personalize only evaluates the autoMLConfig * section of the solution configuration.

*/ inline bool SolutionConfigHasBeenSet() const { return m_solutionConfigHasBeenSet; } /** *

The configuration to use with the solution. When performAutoML * is set to true, Amazon Personalize only evaluates the autoMLConfig * section of the solution configuration.

*/ inline void SetSolutionConfig(const SolutionConfig& value) { m_solutionConfigHasBeenSet = true; m_solutionConfig = value; } /** *

The configuration to use with the solution. When performAutoML * is set to true, Amazon Personalize only evaluates the autoMLConfig * section of the solution configuration.

*/ inline void SetSolutionConfig(SolutionConfig&& value) { m_solutionConfigHasBeenSet = true; m_solutionConfig = std::move(value); } /** *

The configuration to use with the solution. When performAutoML * is set to true, Amazon Personalize only evaluates the autoMLConfig * section of the solution configuration.

*/ inline CreateSolutionRequest& WithSolutionConfig(const SolutionConfig& value) { SetSolutionConfig(value); return *this;} /** *

The configuration to use with the solution. When performAutoML * is set to true, Amazon Personalize only evaluates the autoMLConfig * section of the solution configuration.

*/ inline CreateSolutionRequest& WithSolutionConfig(SolutionConfig&& value) { SetSolutionConfig(std::move(value)); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet; bool m_performHPO; bool m_performHPOHasBeenSet; bool m_performAutoML; bool m_performAutoMLHasBeenSet; Aws::String m_recipeArn; bool m_recipeArnHasBeenSet; Aws::String m_datasetGroupArn; bool m_datasetGroupArnHasBeenSet; Aws::String m_eventType; bool m_eventTypeHasBeenSet; SolutionConfig m_solutionConfig; bool m_solutionConfigHasBeenSet; }; } // namespace Model } // namespace Personalize } // namespace Aws