/** * 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 CreateSolutionVersionRequest : public PersonalizeRequest { public: AWS_PERSONALIZE_API CreateSolutionVersionRequest(); // 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 "CreateSolutionVersion"; } AWS_PERSONALIZE_API Aws::String SerializePayload() const override; AWS_PERSONALIZE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of the solution version.

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

The name of the solution version.

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

The name of the solution version.

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

The name of the solution version.

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

The name of the solution version.

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

The name of the solution version.

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

The name of the solution version.

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

The name of the solution version.

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

The Amazon Resource Name (ARN) of the solution containing the training * configuration information.

*/ inline const Aws::String& GetSolutionArn() const{ return m_solutionArn; } /** *

The Amazon Resource Name (ARN) of the solution containing the training * configuration information.

*/ inline bool SolutionArnHasBeenSet() const { return m_solutionArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the solution containing the training * configuration information.

*/ inline void SetSolutionArn(const Aws::String& value) { m_solutionArnHasBeenSet = true; m_solutionArn = value; } /** *

The Amazon Resource Name (ARN) of the solution containing the training * configuration information.

*/ inline void SetSolutionArn(Aws::String&& value) { m_solutionArnHasBeenSet = true; m_solutionArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the solution containing the training * configuration information.

*/ inline void SetSolutionArn(const char* value) { m_solutionArnHasBeenSet = true; m_solutionArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the solution containing the training * configuration information.

*/ inline CreateSolutionVersionRequest& WithSolutionArn(const Aws::String& value) { SetSolutionArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the solution containing the training * configuration information.

*/ inline CreateSolutionVersionRequest& WithSolutionArn(Aws::String&& value) { SetSolutionArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the solution containing the training * configuration information.

*/ inline CreateSolutionVersionRequest& WithSolutionArn(const char* value) { SetSolutionArn(value); return *this;} /** *

The scope of training to be performed when creating the solution version. The * FULL option trains the solution version based on the entirety of * the input solution's training data, while the UPDATE option * processes only the data that has changed in comparison to the input solution. * Choose UPDATE when you want to incrementally update your solution * version instead of creating an entirely new one.

The * UPDATE option can only be used when you already have an active * solution version created from the input solution using the FULL * option and the input solution was trained with the User-Personalization * recipe or the HRNN-Coldstart * recipe.

*/ inline const TrainingMode& GetTrainingMode() const{ return m_trainingMode; } /** *

The scope of training to be performed when creating the solution version. The * FULL option trains the solution version based on the entirety of * the input solution's training data, while the UPDATE option * processes only the data that has changed in comparison to the input solution. * Choose UPDATE when you want to incrementally update your solution * version instead of creating an entirely new one.

The * UPDATE option can only be used when you already have an active * solution version created from the input solution using the FULL * option and the input solution was trained with the User-Personalization * recipe or the HRNN-Coldstart * recipe.

*/ inline bool TrainingModeHasBeenSet() const { return m_trainingModeHasBeenSet; } /** *

The scope of training to be performed when creating the solution version. The * FULL option trains the solution version based on the entirety of * the input solution's training data, while the UPDATE option * processes only the data that has changed in comparison to the input solution. * Choose UPDATE when you want to incrementally update your solution * version instead of creating an entirely new one.

The * UPDATE option can only be used when you already have an active * solution version created from the input solution using the FULL * option and the input solution was trained with the User-Personalization * recipe or the HRNN-Coldstart * recipe.

*/ inline void SetTrainingMode(const TrainingMode& value) { m_trainingModeHasBeenSet = true; m_trainingMode = value; } /** *

The scope of training to be performed when creating the solution version. The * FULL option trains the solution version based on the entirety of * the input solution's training data, while the UPDATE option * processes only the data that has changed in comparison to the input solution. * Choose UPDATE when you want to incrementally update your solution * version instead of creating an entirely new one.

The * UPDATE option can only be used when you already have an active * solution version created from the input solution using the FULL * option and the input solution was trained with the User-Personalization * recipe or the HRNN-Coldstart * recipe.

*/ inline void SetTrainingMode(TrainingMode&& value) { m_trainingModeHasBeenSet = true; m_trainingMode = std::move(value); } /** *

The scope of training to be performed when creating the solution version. The * FULL option trains the solution version based on the entirety of * the input solution's training data, while the UPDATE option * processes only the data that has changed in comparison to the input solution. * Choose UPDATE when you want to incrementally update your solution * version instead of creating an entirely new one.

The * UPDATE option can only be used when you already have an active * solution version created from the input solution using the FULL * option and the input solution was trained with the User-Personalization * recipe or the HRNN-Coldstart * recipe.

*/ inline CreateSolutionVersionRequest& WithTrainingMode(const TrainingMode& value) { SetTrainingMode(value); return *this;} /** *

The scope of training to be performed when creating the solution version. The * FULL option trains the solution version based on the entirety of * the input solution's training data, while the UPDATE option * processes only the data that has changed in comparison to the input solution. * Choose UPDATE when you want to incrementally update your solution * version instead of creating an entirely new one.

The * UPDATE option can only be used when you already have an active * solution version created from the input solution using the FULL * option and the input solution was trained with the User-Personalization * recipe or the HRNN-Coldstart * recipe.

*/ inline CreateSolutionVersionRequest& WithTrainingMode(TrainingMode&& value) { SetTrainingMode(std::move(value)); return *this;} /** *

A list of tags * to apply to the solution version.

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

A list of tags * to apply to the solution version.

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

A list of tags * to apply to the solution version.

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

A list of tags * to apply to the solution version.

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

A list of tags * to apply to the solution version.

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

A list of tags * to apply to the solution version.

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

A list of tags * to apply to the solution version.

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

A list of tags * to apply to the solution version.

*/ inline CreateSolutionVersionRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_solutionArn; bool m_solutionArnHasBeenSet = false; TrainingMode m_trainingMode; bool m_trainingModeHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace Personalize } // namespace Aws