/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace Personalize { namespace Model { /** */ class CreateSolutionRequest : public PersonalizeRequest { public: AWS_PERSONALIZE_API 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_PERSONALIZE_API Aws::String SerializePayload() const override; AWS_PERSONALIZE_API 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;} /** *

We don't recommend enabling automated machine learning. Instead, * match your use case to the available Amazon Personalize recipes. For more * information, see Determining * your use case.

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; } /** *

We don't recommend enabling automated machine learning. Instead, * match your use case to the available Amazon Personalize recipes. For more * information, see Determining * your use case.

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; } /** *

We don't recommend enabling automated machine learning. Instead, * match your use case to the available Amazon Personalize recipes. For more * information, see Determining * your use case.

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; } /** *

We don't recommend enabling automated machine learning. Instead, * match your use case to the available Amazon Personalize recipes. For more * information, see Determining * your use case.

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. This is required when * performAutoML is false.

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

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

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

The ARN of the recipe to use for model training. This is required 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. This is required 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. This is required 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. This is required 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. This is required 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. This is required 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.

If you do not provide an * eventType, Amazon Personalize will use all interactions for * training with equal weight regardless of type.

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

If you do not provide an * eventType, Amazon Personalize will use all interactions for * training with equal weight regardless of type.

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

If you do not provide an * eventType, Amazon Personalize will use all interactions for * training with equal weight regardless of type.

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

If you do not provide an * eventType, Amazon Personalize will use all interactions for * training with equal weight regardless of type.

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

If you do not provide an * eventType, Amazon Personalize will use all interactions for * training with equal weight regardless of type.

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

If you do not provide an * eventType, Amazon Personalize will use all interactions for * training with equal weight regardless of type.

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

If you do not provide an * eventType, Amazon Personalize will use all interactions for * training with equal weight regardless of type.

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

If you do not provide an * eventType, Amazon Personalize will use all interactions for * training with equal weight regardless of type.

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

Amazon Personalize doesn't * support configuring the hpoObjective at this time.

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

Amazon Personalize doesn't * support configuring the hpoObjective at this time.

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

Amazon Personalize doesn't * support configuring the hpoObjective at this time.

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

Amazon Personalize doesn't * support configuring the hpoObjective at this time.

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

Amazon Personalize doesn't * support configuring the hpoObjective at this time.

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

Amazon Personalize doesn't * support configuring the hpoObjective at this time.

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

A list of tags * to apply to the solution.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

A list of tags * to apply to the solution.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

A list of tags * to apply to the solution.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

A list of tags * to apply to the solution.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

A list of tags * to apply to the solution.

*/ inline CreateSolutionRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

A list of tags * to apply to the solution.

*/ inline CreateSolutionRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

A list of tags * to apply to the solution.

*/ inline CreateSolutionRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

A list of tags * to apply to the solution.

*/ inline CreateSolutionRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_name; bool m_nameHasBeenSet = false; bool m_performHPO; bool m_performHPOHasBeenSet = false; bool m_performAutoML; bool m_performAutoMLHasBeenSet = false; Aws::String m_recipeArn; bool m_recipeArnHasBeenSet = false; Aws::String m_datasetGroupArn; bool m_datasetGroupArnHasBeenSet = false; Aws::String m_eventType; bool m_eventTypeHasBeenSet = false; SolutionConfig m_solutionConfig; bool m_solutionConfigHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace Personalize } // namespace Aws