7#include <aws/personalize-runtime/PersonalizeRuntime_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
23namespace PersonalizeRuntime
51 inline void SetItemId(
const char* value) { m_itemIdHasBeenSet =
true; m_itemId.assign(value); }
63 inline double GetScore()
const{
return m_score; }
65 inline void SetScore(
double value) { m_scoreHasBeenSet =
true; m_score = value; }
77 inline void SetPromotionName(
const char* value) { m_promotionNameHasBeenSet =
true; m_promotionName.assign(value); }
99 inline PredictedItem&
AddMetadata(
const char* key,
const char* value) { m_metadataHasBeenSet =
true; m_metadata.emplace(key, value);
return *
this; }
127 inline PredictedItem&
AddReason(
const char* value) { m_reasonHasBeenSet =
true; m_reason.push_back(value);
return *
this; }
132 bool m_itemIdHasBeenSet =
false;
135 bool m_scoreHasBeenSet =
false;
138 bool m_promotionNameHasBeenSet =
false;
141 bool m_metadataHasBeenSet =
false;
144 bool m_reasonHasBeenSet =
false;
PredictedItem & WithPromotionName(const char *value)
PredictedItem & WithMetadata(const Aws::Map< Aws::String, Aws::String > &value)
PredictedItem & WithMetadata(Aws::Map< Aws::String, Aws::String > &&value)
const Aws::String & GetPromotionName() const
const Aws::Map< Aws::String, Aws::String > & GetMetadata() const
void SetReason(Aws::Vector< Aws::String > &&value)
PredictedItem & WithItemId(const char *value)
AWS_PERSONALIZERUNTIME_API PredictedItem & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetItemId() const
PredictedItem & WithItemId(Aws::String &&value)
PredictedItem & AddMetadata(const Aws::String &key, Aws::String &&value)
void SetPromotionName(const Aws::String &value)
PredictedItem & AddMetadata(const Aws::String &key, const Aws::String &value)
void SetItemId(const Aws::String &value)
void SetPromotionName(const char *value)
void SetItemId(Aws::String &&value)
void SetItemId(const char *value)
PredictedItem & AddReason(const Aws::String &value)
PredictedItem & WithPromotionName(Aws::String &&value)
void SetScore(double value)
bool MetadataHasBeenSet() const
PredictedItem & AddMetadata(Aws::String &&key, const char *value)
PredictedItem & WithReason(const Aws::Vector< Aws::String > &value)
void SetMetadata(Aws::Map< Aws::String, Aws::String > &&value)
void SetPromotionName(Aws::String &&value)
PredictedItem & WithItemId(const Aws::String &value)
PredictedItem & WithPromotionName(const Aws::String &value)
bool ItemIdHasBeenSet() const
void SetMetadata(const Aws::Map< Aws::String, Aws::String > &value)
bool ScoreHasBeenSet() const
AWS_PERSONALIZERUNTIME_API PredictedItem()
PredictedItem & AddMetadata(Aws::String &&key, Aws::String &&value)
bool PromotionNameHasBeenSet() const
PredictedItem & AddMetadata(const char *key, const char *value)
PredictedItem & AddReason(const char *value)
AWS_PERSONALIZERUNTIME_API PredictedItem(Aws::Utils::Json::JsonView jsonValue)
PredictedItem & AddReason(Aws::String &&value)
void SetReason(const Aws::Vector< Aws::String > &value)
PredictedItem & AddMetadata(Aws::String &&key, const Aws::String &value)
const Aws::Vector< Aws::String > & GetReason() const
AWS_PERSONALIZERUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
PredictedItem & WithReason(Aws::Vector< Aws::String > &&value)
PredictedItem & WithScore(double value)
bool ReasonHasBeenSet() const
PredictedItem & AddMetadata(const char *key, Aws::String &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue