AWS SDK for C++

AWS SDK for C++ Version 1.11.758

Loading...
Searching...
No Matches
GetActionRecommendationsResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/personalize-runtime/PersonalizeRuntime_EXPORTS.h>
11#include <aws/personalize-runtime/model/PredictedAction.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace PersonalizeRuntime {
25namespace Model {
27 public:
28 AWS_PERSONALIZERUNTIME_API GetActionRecommendationsResult() = default;
30 AWS_PERSONALIZERUNTIME_API GetActionRecommendationsResult& operator=(
32
34
41 inline const Aws::Vector<PredictedAction>& GetActionList() const { return m_actionList; }
42 template <typename ActionListT = Aws::Vector<PredictedAction>>
43 void SetActionList(ActionListT&& value) {
44 m_actionListHasBeenSet = true;
45 m_actionList = std::forward<ActionListT>(value);
46 }
47 template <typename ActionListT = Aws::Vector<PredictedAction>>
49 SetActionList(std::forward<ActionListT>(value));
50 return *this;
51 }
52 template <typename ActionListT = PredictedAction>
54 m_actionListHasBeenSet = true;
55 m_actionList.emplace_back(std::forward<ActionListT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::String& GetRecommendationId() const { return m_recommendationId; }
65 template <typename RecommendationIdT = Aws::String>
66 void SetRecommendationId(RecommendationIdT&& value) {
67 m_recommendationIdHasBeenSet = true;
68 m_recommendationId = std::forward<RecommendationIdT>(value);
69 }
70 template <typename RecommendationIdT = Aws::String>
72 SetRecommendationId(std::forward<RecommendationIdT>(value));
73 return *this;
74 }
76
78
79 inline const Aws::String& GetRequestId() const { return m_requestId; }
80 template <typename RequestIdT = Aws::String>
81 void SetRequestId(RequestIdT&& value) {
82 m_requestIdHasBeenSet = true;
83 m_requestId = std::forward<RequestIdT>(value);
84 }
85 template <typename RequestIdT = Aws::String>
87 SetRequestId(std::forward<RequestIdT>(value));
88 return *this;
89 }
91 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
92
93 private:
95
96 Aws::String m_recommendationId;
97
98 Aws::String m_requestId;
99 Aws::Http::HttpResponseCode m_HttpResponseCode;
100 bool m_actionListHasBeenSet = false;
101 bool m_recommendationIdHasBeenSet = false;
102 bool m_requestIdHasBeenSet = false;
103};
104
105} // namespace Model
106} // namespace PersonalizeRuntime
107} // 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