AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
ActionInteraction.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/personalize-events/PersonalizeEvents_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace PersonalizeEvents {
22namespace Model {
23
31 public:
32 AWS_PERSONALIZEEVENTS_API ActionInteraction() = default;
33 AWS_PERSONALIZEEVENTS_API ActionInteraction(Aws::Utils::Json::JsonView jsonValue);
34 AWS_PERSONALIZEEVENTS_API ActionInteraction& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_PERSONALIZEEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const Aws::String& GetActionId() const { return m_actionId; }
43 inline bool ActionIdHasBeenSet() const { return m_actionIdHasBeenSet; }
44 template <typename ActionIdT = Aws::String>
45 void SetActionId(ActionIdT&& value) {
46 m_actionIdHasBeenSet = true;
47 m_actionId = std::forward<ActionIdT>(value);
48 }
49 template <typename ActionIdT = Aws::String>
50 ActionInteraction& WithActionId(ActionIdT&& value) {
51 SetActionId(std::forward<ActionIdT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::String& GetUserId() const { return m_userId; }
62 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
63 template <typename UserIdT = Aws::String>
64 void SetUserId(UserIdT&& value) {
65 m_userIdHasBeenSet = true;
66 m_userId = std::forward<UserIdT>(value);
67 }
68 template <typename UserIdT = Aws::String>
69 ActionInteraction& WithUserId(UserIdT&& value) {
70 SetUserId(std::forward<UserIdT>(value));
71 return *this;
72 }
74
76
81 inline const Aws::String& GetSessionId() const { return m_sessionId; }
82 inline bool SessionIdHasBeenSet() const { return m_sessionIdHasBeenSet; }
83 template <typename SessionIdT = Aws::String>
84 void SetSessionId(SessionIdT&& value) {
85 m_sessionIdHasBeenSet = true;
86 m_sessionId = std::forward<SessionIdT>(value);
87 }
88 template <typename SessionIdT = Aws::String>
89 ActionInteraction& WithSessionId(SessionIdT&& value) {
90 SetSessionId(std::forward<SessionIdT>(value));
91 return *this;
92 }
94
96
100 inline const Aws::Utils::DateTime& GetTimestamp() const { return m_timestamp; }
101 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
102 template <typename TimestampT = Aws::Utils::DateTime>
103 void SetTimestamp(TimestampT&& value) {
104 m_timestampHasBeenSet = true;
105 m_timestamp = std::forward<TimestampT>(value);
106 }
107 template <typename TimestampT = Aws::Utils::DateTime>
108 ActionInteraction& WithTimestamp(TimestampT&& value) {
109 SetTimestamp(std::forward<TimestampT>(value));
110 return *this;
111 }
113
115
122 inline const Aws::String& GetEventType() const { return m_eventType; }
123 inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; }
124 template <typename EventTypeT = Aws::String>
125 void SetEventType(EventTypeT&& value) {
126 m_eventTypeHasBeenSet = true;
127 m_eventType = std::forward<EventTypeT>(value);
128 }
129 template <typename EventTypeT = Aws::String>
130 ActionInteraction& WithEventType(EventTypeT&& value) {
131 SetEventType(std::forward<EventTypeT>(value));
132 return *this;
133 }
135
137
144 inline const Aws::String& GetEventId() const { return m_eventId; }
145 inline bool EventIdHasBeenSet() const { return m_eventIdHasBeenSet; }
146 template <typename EventIdT = Aws::String>
147 void SetEventId(EventIdT&& value) {
148 m_eventIdHasBeenSet = true;
149 m_eventId = std::forward<EventIdT>(value);
150 }
151 template <typename EventIdT = Aws::String>
152 ActionInteraction& WithEventId(EventIdT&& value) {
153 SetEventId(std::forward<EventIdT>(value));
154 return *this;
155 }
157
159
163 inline const Aws::String& GetRecommendationId() const { return m_recommendationId; }
164 inline bool RecommendationIdHasBeenSet() const { return m_recommendationIdHasBeenSet; }
165 template <typename RecommendationIdT = Aws::String>
166 void SetRecommendationId(RecommendationIdT&& value) {
167 m_recommendationIdHasBeenSet = true;
168 m_recommendationId = std::forward<RecommendationIdT>(value);
169 }
170 template <typename RecommendationIdT = Aws::String>
171 ActionInteraction& WithRecommendationId(RecommendationIdT&& value) {
172 SetRecommendationId(std::forward<RecommendationIdT>(value));
173 return *this;
174 }
176
178
185 inline const Aws::Vector<Aws::String>& GetImpression() const { return m_impression; }
186 inline bool ImpressionHasBeenSet() const { return m_impressionHasBeenSet; }
187 template <typename ImpressionT = Aws::Vector<Aws::String>>
188 void SetImpression(ImpressionT&& value) {
189 m_impressionHasBeenSet = true;
190 m_impression = std::forward<ImpressionT>(value);
191 }
192 template <typename ImpressionT = Aws::Vector<Aws::String>>
193 ActionInteraction& WithImpression(ImpressionT&& value) {
194 SetImpression(std::forward<ImpressionT>(value));
195 return *this;
196 }
197 template <typename ImpressionT = Aws::String>
198 ActionInteraction& AddImpression(ImpressionT&& value) {
199 m_impressionHasBeenSet = true;
200 m_impression.emplace_back(std::forward<ImpressionT>(value));
201 return *this;
202 }
204
206
219 inline const Aws::String& GetProperties() const { return m_properties; }
220 inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
221 template <typename PropertiesT = Aws::String>
222 void SetProperties(PropertiesT&& value) {
223 m_propertiesHasBeenSet = true;
224 m_properties = std::forward<PropertiesT>(value);
225 }
226 template <typename PropertiesT = Aws::String>
227 ActionInteraction& WithProperties(PropertiesT&& value) {
228 SetProperties(std::forward<PropertiesT>(value));
229 return *this;
230 }
232 private:
233 Aws::String m_actionId;
234
235 Aws::String m_userId;
236
237 Aws::String m_sessionId;
238
239 Aws::Utils::DateTime m_timestamp{};
240
241 Aws::String m_eventType;
242
243 Aws::String m_eventId;
244
245 Aws::String m_recommendationId;
246
247 Aws::Vector<Aws::String> m_impression;
248
249 Aws::String m_properties;
250 bool m_actionIdHasBeenSet = false;
251 bool m_userIdHasBeenSet = false;
252 bool m_sessionIdHasBeenSet = false;
253 bool m_timestampHasBeenSet = false;
254 bool m_eventTypeHasBeenSet = false;
255 bool m_eventIdHasBeenSet = false;
256 bool m_recommendationIdHasBeenSet = false;
257 bool m_impressionHasBeenSet = false;
258 bool m_propertiesHasBeenSet = false;
259};
260
261} // namespace Model
262} // namespace PersonalizeEvents
263} // namespace Aws
AWS_PERSONALIZEEVENTS_API ActionInteraction & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetImpression() const
ActionInteraction & WithTimestamp(TimestampT &&value)
AWS_PERSONALIZEEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const
ActionInteraction & WithEventType(EventTypeT &&value)
ActionInteraction & WithImpression(ImpressionT &&value)
AWS_PERSONALIZEEVENTS_API ActionInteraction()=default
AWS_PERSONALIZEEVENTS_API ActionInteraction(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetTimestamp() const
ActionInteraction & WithRecommendationId(RecommendationIdT &&value)
void SetRecommendationId(RecommendationIdT &&value)
ActionInteraction & WithEventId(EventIdT &&value)
ActionInteraction & WithSessionId(SessionIdT &&value)
ActionInteraction & WithProperties(PropertiesT &&value)
ActionInteraction & WithActionId(ActionIdT &&value)
ActionInteraction & AddImpression(ImpressionT &&value)
ActionInteraction & WithUserId(UserIdT &&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