/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace PersonalizeRuntime { namespace Model { /** *

An object that identifies an item.

The and APIs return a list of * PredictedItems.

See Also:

AWS * API Reference

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

The recommended item ID.

*/ inline const Aws::String& GetItemId() const{ return m_itemId; } /** *

The recommended item ID.

*/ inline bool ItemIdHasBeenSet() const { return m_itemIdHasBeenSet; } /** *

The recommended item ID.

*/ inline void SetItemId(const Aws::String& value) { m_itemIdHasBeenSet = true; m_itemId = value; } /** *

The recommended item ID.

*/ inline void SetItemId(Aws::String&& value) { m_itemIdHasBeenSet = true; m_itemId = std::move(value); } /** *

The recommended item ID.

*/ inline void SetItemId(const char* value) { m_itemIdHasBeenSet = true; m_itemId.assign(value); } /** *

The recommended item ID.

*/ inline PredictedItem& WithItemId(const Aws::String& value) { SetItemId(value); return *this;} /** *

The recommended item ID.

*/ inline PredictedItem& WithItemId(Aws::String&& value) { SetItemId(std::move(value)); return *this;} /** *

The recommended item ID.

*/ inline PredictedItem& WithItemId(const char* value) { SetItemId(value); return *this;} /** *

A numeric representation of the model's certainty that the item will be the * next user selection. For more information on scoring logic, see * how-scores-work.

*/ inline double GetScore() const{ return m_score; } /** *

A numeric representation of the model's certainty that the item will be the * next user selection. For more information on scoring logic, see * how-scores-work.

*/ inline bool ScoreHasBeenSet() const { return m_scoreHasBeenSet; } /** *

A numeric representation of the model's certainty that the item will be the * next user selection. For more information on scoring logic, see * how-scores-work.

*/ inline void SetScore(double value) { m_scoreHasBeenSet = true; m_score = value; } /** *

A numeric representation of the model's certainty that the item will be the * next user selection. For more information on scoring logic, see * how-scores-work.

*/ inline PredictedItem& WithScore(double value) { SetScore(value); return *this;} private: Aws::String m_itemId; bool m_itemIdHasBeenSet; double m_score; bool m_scoreHasBeenSet; }; } // namespace Model } // namespace PersonalizeRuntime } // namespace Aws