/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include An object that identifies an item. The and APIs return a list of
* PredictedItem
s.See Also:
AWS
* API Reference
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;} /** *The name of the promotion that included the predicted item.
*/ inline const Aws::String& GetPromotionName() const{ return m_promotionName; } /** *The name of the promotion that included the predicted item.
*/ inline bool PromotionNameHasBeenSet() const { return m_promotionNameHasBeenSet; } /** *The name of the promotion that included the predicted item.
*/ inline void SetPromotionName(const Aws::String& value) { m_promotionNameHasBeenSet = true; m_promotionName = value; } /** *The name of the promotion that included the predicted item.
*/ inline void SetPromotionName(Aws::String&& value) { m_promotionNameHasBeenSet = true; m_promotionName = std::move(value); } /** *The name of the promotion that included the predicted item.
*/ inline void SetPromotionName(const char* value) { m_promotionNameHasBeenSet = true; m_promotionName.assign(value); } /** *The name of the promotion that included the predicted item.
*/ inline PredictedItem& WithPromotionName(const Aws::String& value) { SetPromotionName(value); return *this;} /** *The name of the promotion that included the predicted item.
*/ inline PredictedItem& WithPromotionName(Aws::String&& value) { SetPromotionName(std::move(value)); return *this;} /** *The name of the promotion that included the predicted item.
*/ inline PredictedItem& WithPromotionName(const char* value) { SetPromotionName(value); return *this;} private: Aws::String m_itemId; bool m_itemIdHasBeenSet = false; double m_score; bool m_scoreHasBeenSet = false; Aws::String m_promotionName; bool m_promotionNameHasBeenSet = false; }; } // namespace Model } // namespace PersonalizeRuntime } // namespace Aws