AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
GetActionRecommendationsResult.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/PredictedAction.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 GetActionRecommendationsResult() = default;
29 AWS_PERSONALIZERUNTIME_API GetActionRecommendationsResult& operator=(
31
33
40 inline const Aws::Vector<PredictedAction>& GetActionList() const { return m_actionList; }
41 template <typename ActionListT = Aws::Vector<PredictedAction>>
42 void SetActionList(ActionListT&& value) {
43 m_actionListHasBeenSet = true;
44 m_actionList = std::forward<ActionListT>(value);
45 }
46 template <typename ActionListT = Aws::Vector<PredictedAction>>
48 SetActionList(std::forward<ActionListT>(value));
49 return *this;
50 }
51 template <typename ActionListT = PredictedAction>
53 m_actionListHasBeenSet = true;
54 m_actionList.emplace_back(std::forward<ActionListT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetRecommendationId() const { return m_recommendationId; }
64 template <typename RecommendationIdT = Aws::String>
65 void SetRecommendationId(RecommendationIdT&& value) {
66 m_recommendationIdHasBeenSet = true;
67 m_recommendationId = std::forward<RecommendationIdT>(value);
68 }
69 template <typename RecommendationIdT = Aws::String>
71 SetRecommendationId(std::forward<RecommendationIdT>(value));
72 return *this;
73 }
75
77
78 inline const Aws::String& GetRequestId() const { return m_requestId; }
79 template <typename RequestIdT = Aws::String>
80 void SetRequestId(RequestIdT&& value) {
81 m_requestIdHasBeenSet = true;
82 m_requestId = std::forward<RequestIdT>(value);
83 }
84 template <typename RequestIdT = Aws::String>
86 SetRequestId(std::forward<RequestIdT>(value));
87 return *this;
88 }
90 private:
92
93 Aws::String m_recommendationId;
94
95 Aws::String m_requestId;
96 bool m_actionListHasBeenSet = false;
97 bool m_recommendationIdHasBeenSet = false;
98 bool m_requestIdHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace PersonalizeRuntime
103} // namespace Aws
GetActionRecommendationsResult & AddActionList(ActionListT &&value)
AWS_PERSONALIZERUNTIME_API GetActionRecommendationsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_PERSONALIZERUNTIME_API GetActionRecommendationsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetActionRecommendationsResult & WithRecommendationId(RecommendationIdT &&value)
GetActionRecommendationsResult & WithRequestId(RequestIdT &&value)
AWS_PERSONALIZERUNTIME_API GetActionRecommendationsResult()=default
GetActionRecommendationsResult & WithActionList(ActionListT &&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