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

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 * native-recipe-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 * native-recipe-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 * native-recipe-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 * native-recipe-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 * native-recipe-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 * native-recipe-hrnn-coldstart recipe.

*/ inline CreateSolutionVersionRequest& WithTrainingMode(TrainingMode&& value) { SetTrainingMode(std::move(value)); return *this;} private: Aws::String m_solutionArn; bool m_solutionArnHasBeenSet; TrainingMode m_trainingMode; bool m_trainingModeHasBeenSet; }; } // namespace Model } // namespace Personalize } // namespace Aws