AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
Recommendation.h
1
6#pragma once
7#include <aws/customer-profiles/CustomerProfiles_EXPORTS.h>
8#include <aws/customer-profiles/model/CatalogItem.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace CustomerProfiles {
20namespace Model {
21
29 public:
30 AWS_CUSTOMERPROFILES_API Recommendation() = default;
31 AWS_CUSTOMERPROFILES_API Recommendation(Aws::Utils::Json::JsonView jsonValue);
32 AWS_CUSTOMERPROFILES_API Recommendation& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
40 inline const CatalogItem& GetCatalogItem() const { return m_catalogItem; }
41 inline bool CatalogItemHasBeenSet() const { return m_catalogItemHasBeenSet; }
42 template <typename CatalogItemT = CatalogItem>
43 void SetCatalogItem(CatalogItemT&& value) {
44 m_catalogItemHasBeenSet = true;
45 m_catalogItem = std::forward<CatalogItemT>(value);
46 }
47 template <typename CatalogItemT = CatalogItem>
48 Recommendation& WithCatalogItem(CatalogItemT&& value) {
49 SetCatalogItem(std::forward<CatalogItemT>(value));
50 return *this;
51 }
53
55
58 inline double GetScore() const { return m_score; }
59 inline bool ScoreHasBeenSet() const { return m_scoreHasBeenSet; }
60 inline void SetScore(double value) {
61 m_scoreHasBeenSet = true;
62 m_score = value;
63 }
64 inline Recommendation& WithScore(double value) {
65 SetScore(value);
66 return *this;
67 }
69 private:
70 CatalogItem m_catalogItem;
71
72 double m_score{0.0};
73 bool m_catalogItemHasBeenSet = false;
74 bool m_scoreHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace CustomerProfiles
79} // namespace Aws
AWS_CUSTOMERPROFILES_API Recommendation & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CUSTOMERPROFILES_API Recommendation()=default
AWS_CUSTOMERPROFILES_API Recommendation(Aws::Utils::Json::JsonView jsonValue)
Recommendation & WithScore(double value)
Recommendation & WithCatalogItem(CatalogItemT &&value)
AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const
const CatalogItem & GetCatalogItem() const
Aws::Utils::Json::JsonValue JsonValue