AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
GetRecommendationsResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/personalize-runtime/PersonalizeRuntime_EXPORTS.h>
10#include <aws/personalize-runtime/model/PredictedItem.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace PersonalizeRuntime {
24namespace Model {
26 public:
27 AWS_PERSONALIZERUNTIME_API GetRecommendationsResult() = default;
30
32
36 inline const Aws::Vector<PredictedItem>& GetItemList() const { return m_itemList; }
37 template <typename ItemListT = Aws::Vector<PredictedItem>>
38 void SetItemList(ItemListT&& value) {
39 m_itemListHasBeenSet = true;
40 m_itemList = std::forward<ItemListT>(value);
41 }
42 template <typename ItemListT = Aws::Vector<PredictedItem>>
44 SetItemList(std::forward<ItemListT>(value));
45 return *this;
46 }
47 template <typename ItemListT = PredictedItem>
49 m_itemListHasBeenSet = true;
50 m_itemList.emplace_back(std::forward<ItemListT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetRecommendationId() const { return m_recommendationId; }
60 template <typename RecommendationIdT = Aws::String>
61 void SetRecommendationId(RecommendationIdT&& value) {
62 m_recommendationIdHasBeenSet = true;
63 m_recommendationId = std::forward<RecommendationIdT>(value);
64 }
65 template <typename RecommendationIdT = Aws::String>
66 GetRecommendationsResult& WithRecommendationId(RecommendationIdT&& value) {
67 SetRecommendationId(std::forward<RecommendationIdT>(value));
68 return *this;
69 }
71
73
74 inline const Aws::String& GetRequestId() const { return m_requestId; }
75 template <typename RequestIdT = Aws::String>
76 void SetRequestId(RequestIdT&& value) {
77 m_requestIdHasBeenSet = true;
78 m_requestId = std::forward<RequestIdT>(value);
79 }
80 template <typename RequestIdT = Aws::String>
82 SetRequestId(std::forward<RequestIdT>(value));
83 return *this;
84 }
86 private:
88
89 Aws::String m_recommendationId;
90
91 Aws::String m_requestId;
92 bool m_itemListHasBeenSet = false;
93 bool m_recommendationIdHasBeenSet = false;
94 bool m_requestIdHasBeenSet = false;
95};
96
97} // namespace Model
98} // namespace PersonalizeRuntime
99} // namespace Aws
GetRecommendationsResult & WithRequestId(RequestIdT &&value)
AWS_PERSONALIZERUNTIME_API GetRecommendationsResult()=default
const Aws::Vector< PredictedItem > & GetItemList() const
AWS_PERSONALIZERUNTIME_API GetRecommendationsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_PERSONALIZERUNTIME_API GetRecommendationsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetRecommendationsResult & WithRecommendationId(RecommendationIdT &&value)
GetRecommendationsResult & WithItemList(ItemListT &&value)
GetRecommendationsResult & AddItemList(ItemListT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue