/** * 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 a summary of the properties of a solution. For a complete listing, * call the DescribeSolution * API.

See Also:

AWS * API Reference

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

The name of the solution.

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

The name of the solution.

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

The name of the solution.

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

The name of the solution.

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

The name of the solution.

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

The name of the solution.

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

The name of the solution.

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

The name of the solution.

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

The Amazon Resource Name (ARN) of the solution.

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

The Amazon Resource Name (ARN) of the solution.

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

The Amazon Resource Name (ARN) of the solution.

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

The Amazon Resource Name (ARN) of the solution.

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

The Amazon Resource Name (ARN) of the solution.

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

The Amazon Resource Name (ARN) of the solution.

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

The Amazon Resource Name (ARN) of the solution.

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

The Amazon Resource Name (ARN) of the solution.

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

The status of the solution.

A solution can be in one of the following * states:

  • CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- * CREATE FAILED

  • DELETE PENDING > DELETE IN_PROGRESS

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

The status of the solution.

A solution can be in one of the following * states:

  • CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- * CREATE FAILED

  • DELETE PENDING > DELETE IN_PROGRESS

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

The status of the solution.

A solution can be in one of the following * states:

  • CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- * CREATE FAILED

  • DELETE PENDING > DELETE IN_PROGRESS

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

The status of the solution.

A solution can be in one of the following * states:

  • CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- * CREATE FAILED

  • DELETE PENDING > DELETE IN_PROGRESS

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

The status of the solution.

A solution can be in one of the following * states:

  • CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- * CREATE FAILED

  • DELETE PENDING > DELETE IN_PROGRESS

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

The status of the solution.

A solution can be in one of the following * states:

  • CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- * CREATE FAILED

  • DELETE PENDING > DELETE IN_PROGRESS

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

The status of the solution.

A solution can be in one of the following * states:

  • CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- * CREATE FAILED

  • DELETE PENDING > DELETE IN_PROGRESS

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

The status of the solution.

A solution can be in one of the following * states:

  • CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- * CREATE FAILED

  • DELETE PENDING > DELETE IN_PROGRESS

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

*/ inline SolutionSummary& WithLastUpdatedDateTime(Aws::Utils::DateTime&& value) { SetLastUpdatedDateTime(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the recipe used by the solution.

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

The Amazon Resource Name (ARN) of the recipe used by the solution.

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

The Amazon Resource Name (ARN) of the recipe used by the solution.

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

The Amazon Resource Name (ARN) of the recipe used by the solution.

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

The Amazon Resource Name (ARN) of the recipe used by the solution.

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

The Amazon Resource Name (ARN) of the recipe used by the solution.

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

The Amazon Resource Name (ARN) of the recipe used by the solution.

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

The Amazon Resource Name (ARN) of the recipe used by the solution.

*/ inline SolutionSummary& WithRecipeArn(const char* value) { SetRecipeArn(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_solutionArn; bool m_solutionArnHasBeenSet = false; Aws::String m_status; bool m_statusHasBeenSet = false; Aws::Utils::DateTime m_creationDateTime; bool m_creationDateTimeHasBeenSet = false; Aws::Utils::DateTime m_lastUpdatedDateTime; bool m_lastUpdatedDateTimeHasBeenSet = false; Aws::String m_recipeArn; bool m_recipeArnHasBeenSet = false; }; } // namespace Model } // namespace Personalize } // namespace Aws