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

Provides information about a recipe. Each recipe provides an algorithm that * Amazon Personalize uses in model training when you use the CreateSolution * operation.

See Also:

AWS * API Reference

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

The name of the recipe.

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

The name of the recipe.

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

The name of the recipe.

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

The name of the recipe.

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

The name of the recipe.

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

The name of the recipe.

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

The name of the recipe.

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

The name of the recipe.

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

The Amazon Resource Name (ARN) of the recipe.

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

The Amazon Resource Name (ARN) of the recipe.

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

The Amazon Resource Name (ARN) of the recipe.

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

The Amazon Resource Name (ARN) of the recipe.

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

The Amazon Resource Name (ARN) of the recipe.

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

The Amazon Resource Name (ARN) of the recipe.

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

The Amazon Resource Name (ARN) of the recipe.

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

The Amazon Resource Name (ARN) of the recipe.

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

The Amazon Resource Name (ARN) of the algorithm that Amazon Personalize uses * to train the model.

*/ inline const Aws::String& GetAlgorithmArn() const{ return m_algorithmArn; } /** *

The Amazon Resource Name (ARN) of the algorithm that Amazon Personalize uses * to train the model.

*/ inline bool AlgorithmArnHasBeenSet() const { return m_algorithmArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the algorithm that Amazon Personalize uses * to train the model.

*/ inline void SetAlgorithmArn(const Aws::String& value) { m_algorithmArnHasBeenSet = true; m_algorithmArn = value; } /** *

The Amazon Resource Name (ARN) of the algorithm that Amazon Personalize uses * to train the model.

*/ inline void SetAlgorithmArn(Aws::String&& value) { m_algorithmArnHasBeenSet = true; m_algorithmArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the algorithm that Amazon Personalize uses * to train the model.

*/ inline void SetAlgorithmArn(const char* value) { m_algorithmArnHasBeenSet = true; m_algorithmArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the algorithm that Amazon Personalize uses * to train the model.

*/ inline Recipe& WithAlgorithmArn(const Aws::String& value) { SetAlgorithmArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the algorithm that Amazon Personalize uses * to train the model.

*/ inline Recipe& WithAlgorithmArn(Aws::String&& value) { SetAlgorithmArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the algorithm that Amazon Personalize uses * to train the model.

*/ inline Recipe& WithAlgorithmArn(const char* value) { SetAlgorithmArn(value); return *this;} /** *

The ARN of the FeatureTransformation object.

*/ inline const Aws::String& GetFeatureTransformationArn() const{ return m_featureTransformationArn; } /** *

The ARN of the FeatureTransformation object.

*/ inline bool FeatureTransformationArnHasBeenSet() const { return m_featureTransformationArnHasBeenSet; } /** *

The ARN of the FeatureTransformation object.

*/ inline void SetFeatureTransformationArn(const Aws::String& value) { m_featureTransformationArnHasBeenSet = true; m_featureTransformationArn = value; } /** *

The ARN of the FeatureTransformation object.

*/ inline void SetFeatureTransformationArn(Aws::String&& value) { m_featureTransformationArnHasBeenSet = true; m_featureTransformationArn = std::move(value); } /** *

The ARN of the FeatureTransformation object.

*/ inline void SetFeatureTransformationArn(const char* value) { m_featureTransformationArnHasBeenSet = true; m_featureTransformationArn.assign(value); } /** *

The ARN of the FeatureTransformation object.

*/ inline Recipe& WithFeatureTransformationArn(const Aws::String& value) { SetFeatureTransformationArn(value); return *this;} /** *

The ARN of the FeatureTransformation object.

*/ inline Recipe& WithFeatureTransformationArn(Aws::String&& value) { SetFeatureTransformationArn(std::move(value)); return *this;} /** *

The ARN of the FeatureTransformation object.

*/ inline Recipe& WithFeatureTransformationArn(const char* value) { SetFeatureTransformationArn(value); return *this;} /** *

The status of the recipe.

*/ inline const Aws::String& GetStatus() const{ return m_status; } /** *

The status of the recipe.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The status of the recipe.

*/ inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The status of the recipe.

*/ inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The status of the recipe.

*/ inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); } /** *

The status of the recipe.

*/ inline Recipe& WithStatus(const Aws::String& value) { SetStatus(value); return *this;} /** *

The status of the recipe.

*/ inline Recipe& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;} /** *

The status of the recipe.

*/ inline Recipe& WithStatus(const char* value) { SetStatus(value); return *this;} /** *

The description of the recipe.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

The description of the recipe.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

The description of the recipe.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

The description of the recipe.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

The description of the recipe.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

The description of the recipe.

*/ inline Recipe& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The description of the recipe.

*/ inline Recipe& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The description of the recipe.

*/ inline Recipe& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The date and time (in Unix format) that the recipe was created.

*/ inline const Aws::Utils::DateTime& GetCreationDateTime() const{ return m_creationDateTime; } /** *

The date and time (in Unix format) that the recipe was created.

*/ inline bool CreationDateTimeHasBeenSet() const { return m_creationDateTimeHasBeenSet; } /** *

The date and time (in Unix format) that the recipe was created.

*/ inline void SetCreationDateTime(const Aws::Utils::DateTime& value) { m_creationDateTimeHasBeenSet = true; m_creationDateTime = value; } /** *

The date and time (in Unix format) that the recipe was created.

*/ inline void SetCreationDateTime(Aws::Utils::DateTime&& value) { m_creationDateTimeHasBeenSet = true; m_creationDateTime = std::move(value); } /** *

The date and time (in Unix format) that the recipe was created.

*/ inline Recipe& WithCreationDateTime(const Aws::Utils::DateTime& value) { SetCreationDateTime(value); return *this;} /** *

The date and time (in Unix format) that the recipe was created.

*/ inline Recipe& WithCreationDateTime(Aws::Utils::DateTime&& value) { SetCreationDateTime(std::move(value)); return *this;} /** *

One of the following values:

  • PERSONALIZED_RANKING

  • *
  • RELATED_ITEMS

  • USER_PERSONALIZATION

*/ inline const Aws::String& GetRecipeType() const{ return m_recipeType; } /** *

One of the following values:

  • PERSONALIZED_RANKING

  • *
  • RELATED_ITEMS

  • USER_PERSONALIZATION

*/ inline bool RecipeTypeHasBeenSet() const { return m_recipeTypeHasBeenSet; } /** *

One of the following values:

  • PERSONALIZED_RANKING

  • *
  • RELATED_ITEMS

  • USER_PERSONALIZATION

*/ inline void SetRecipeType(const Aws::String& value) { m_recipeTypeHasBeenSet = true; m_recipeType = value; } /** *

One of the following values:

  • PERSONALIZED_RANKING

  • *
  • RELATED_ITEMS

  • USER_PERSONALIZATION

*/ inline void SetRecipeType(Aws::String&& value) { m_recipeTypeHasBeenSet = true; m_recipeType = std::move(value); } /** *

One of the following values:

  • PERSONALIZED_RANKING

  • *
  • RELATED_ITEMS

  • USER_PERSONALIZATION

*/ inline void SetRecipeType(const char* value) { m_recipeTypeHasBeenSet = true; m_recipeType.assign(value); } /** *

One of the following values:

  • PERSONALIZED_RANKING

  • *
  • RELATED_ITEMS

  • USER_PERSONALIZATION

*/ inline Recipe& WithRecipeType(const Aws::String& value) { SetRecipeType(value); return *this;} /** *

One of the following values:

  • PERSONALIZED_RANKING

  • *
  • RELATED_ITEMS

  • USER_PERSONALIZATION

*/ inline Recipe& WithRecipeType(Aws::String&& value) { SetRecipeType(std::move(value)); return *this;} /** *

One of the following values:

  • PERSONALIZED_RANKING

  • *
  • RELATED_ITEMS

  • USER_PERSONALIZATION

*/ inline Recipe& WithRecipeType(const char* value) { SetRecipeType(value); return *this;} /** *

The date and time (in Unix format) that the recipe was last updated.

*/ inline const Aws::Utils::DateTime& GetLastUpdatedDateTime() const{ return m_lastUpdatedDateTime; } /** *

The date and time (in Unix format) that the recipe was last updated.

*/ inline bool LastUpdatedDateTimeHasBeenSet() const { return m_lastUpdatedDateTimeHasBeenSet; } /** *

The date and time (in Unix format) that the recipe was last updated.

*/ inline void SetLastUpdatedDateTime(const Aws::Utils::DateTime& value) { m_lastUpdatedDateTimeHasBeenSet = true; m_lastUpdatedDateTime = value; } /** *

The date and time (in Unix format) that the recipe was last updated.

*/ inline void SetLastUpdatedDateTime(Aws::Utils::DateTime&& value) { m_lastUpdatedDateTimeHasBeenSet = true; m_lastUpdatedDateTime = std::move(value); } /** *

The date and time (in Unix format) that the recipe was last updated.

*/ inline Recipe& WithLastUpdatedDateTime(const Aws::Utils::DateTime& value) { SetLastUpdatedDateTime(value); return *this;} /** *

The date and time (in Unix format) that the recipe was last updated.

*/ inline Recipe& WithLastUpdatedDateTime(Aws::Utils::DateTime&& value) { SetLastUpdatedDateTime(std::move(value)); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_recipeArn; bool m_recipeArnHasBeenSet = false; Aws::String m_algorithmArn; bool m_algorithmArnHasBeenSet = false; Aws::String m_featureTransformationArn; bool m_featureTransformationArnHasBeenSet = false; Aws::String m_status; bool m_statusHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::Utils::DateTime m_creationDateTime; bool m_creationDateTimeHasBeenSet = false; Aws::String m_recipeType; bool m_recipeTypeHasBeenSet = false; Aws::Utils::DateTime m_lastUpdatedDateTime; bool m_lastUpdatedDateTimeHasBeenSet = false; }; } // namespace Model } // namespace Personalize } // namespace Aws