AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ActionInteraction.h
1
6#pragma once
7#include <aws/personalize-events/PersonalizeEvents_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace PersonalizeEvents
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_PERSONALIZEEVENTS_API ActionInteraction() = default;
38 AWS_PERSONALIZEEVENTS_API ActionInteraction(Aws::Utils::Json::JsonView jsonValue);
39 AWS_PERSONALIZEEVENTS_API ActionInteraction& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_PERSONALIZEEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const Aws::String& GetActionId() const { return m_actionId; }
49 inline bool ActionIdHasBeenSet() const { return m_actionIdHasBeenSet; }
50 template<typename ActionIdT = Aws::String>
51 void SetActionId(ActionIdT&& value) { m_actionIdHasBeenSet = true; m_actionId = std::forward<ActionIdT>(value); }
52 template<typename ActionIdT = Aws::String>
53 ActionInteraction& WithActionId(ActionIdT&& value) { SetActionId(std::forward<ActionIdT>(value)); return *this;}
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) { m_userIdHasBeenSet = true; m_userId = std::forward<UserIdT>(value); }
65 template<typename UserIdT = Aws::String>
66 ActionInteraction& WithUserId(UserIdT&& value) { SetUserId(std::forward<UserIdT>(value)); return *this;}
68
70
75 inline const Aws::String& GetSessionId() const { return m_sessionId; }
76 inline bool SessionIdHasBeenSet() const { return m_sessionIdHasBeenSet; }
77 template<typename SessionIdT = Aws::String>
78 void SetSessionId(SessionIdT&& value) { m_sessionIdHasBeenSet = true; m_sessionId = std::forward<SessionIdT>(value); }
79 template<typename SessionIdT = Aws::String>
80 ActionInteraction& WithSessionId(SessionIdT&& value) { SetSessionId(std::forward<SessionIdT>(value)); return *this;}
82
84
88 inline const Aws::Utils::DateTime& GetTimestamp() const { return m_timestamp; }
89 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
90 template<typename TimestampT = Aws::Utils::DateTime>
91 void SetTimestamp(TimestampT&& value) { m_timestampHasBeenSet = true; m_timestamp = std::forward<TimestampT>(value); }
92 template<typename TimestampT = Aws::Utils::DateTime>
93 ActionInteraction& WithTimestamp(TimestampT&& value) { SetTimestamp(std::forward<TimestampT>(value)); return *this;}
95
97
104 inline const Aws::String& GetEventType() const { return m_eventType; }
105 inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; }
106 template<typename EventTypeT = Aws::String>
107 void SetEventType(EventTypeT&& value) { m_eventTypeHasBeenSet = true; m_eventType = std::forward<EventTypeT>(value); }
108 template<typename EventTypeT = Aws::String>
109 ActionInteraction& WithEventType(EventTypeT&& value) { SetEventType(std::forward<EventTypeT>(value)); return *this;}
111
113
120 inline const Aws::String& GetEventId() const { return m_eventId; }
121 inline bool EventIdHasBeenSet() const { return m_eventIdHasBeenSet; }
122 template<typename EventIdT = Aws::String>
123 void SetEventId(EventIdT&& value) { m_eventIdHasBeenSet = true; m_eventId = std::forward<EventIdT>(value); }
124 template<typename EventIdT = Aws::String>
125 ActionInteraction& WithEventId(EventIdT&& value) { SetEventId(std::forward<EventIdT>(value)); return *this;}
127
129
133 inline const Aws::String& GetRecommendationId() const { return m_recommendationId; }
134 inline bool RecommendationIdHasBeenSet() const { return m_recommendationIdHasBeenSet; }
135 template<typename RecommendationIdT = Aws::String>
136 void SetRecommendationId(RecommendationIdT&& value) { m_recommendationIdHasBeenSet = true; m_recommendationId = std::forward<RecommendationIdT>(value); }
137 template<typename RecommendationIdT = Aws::String>
138 ActionInteraction& WithRecommendationId(RecommendationIdT&& value) { SetRecommendationId(std::forward<RecommendationIdT>(value)); return *this;}
140
142
149 inline const Aws::Vector<Aws::String>& GetImpression() const { return m_impression; }
150 inline bool ImpressionHasBeenSet() const { return m_impressionHasBeenSet; }
151 template<typename ImpressionT = Aws::Vector<Aws::String>>
152 void SetImpression(ImpressionT&& value) { m_impressionHasBeenSet = true; m_impression = std::forward<ImpressionT>(value); }
153 template<typename ImpressionT = Aws::Vector<Aws::String>>
154 ActionInteraction& WithImpression(ImpressionT&& value) { SetImpression(std::forward<ImpressionT>(value)); return *this;}
155 template<typename ImpressionT = Aws::String>
156 ActionInteraction& AddImpression(ImpressionT&& value) { m_impressionHasBeenSet = true; m_impression.emplace_back(std::forward<ImpressionT>(value)); return *this; }
158
160
173 inline const Aws::String& GetProperties() const { return m_properties; }
174 inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
175 template<typename PropertiesT = Aws::String>
176 void SetProperties(PropertiesT&& value) { m_propertiesHasBeenSet = true; m_properties = std::forward<PropertiesT>(value); }
177 template<typename PropertiesT = Aws::String>
178 ActionInteraction& WithProperties(PropertiesT&& value) { SetProperties(std::forward<PropertiesT>(value)); return *this;}
180 private:
181
182 Aws::String m_actionId;
183 bool m_actionIdHasBeenSet = false;
184
185 Aws::String m_userId;
186 bool m_userIdHasBeenSet = false;
187
188 Aws::String m_sessionId;
189 bool m_sessionIdHasBeenSet = false;
190
191 Aws::Utils::DateTime m_timestamp{};
192 bool m_timestampHasBeenSet = false;
193
194 Aws::String m_eventType;
195 bool m_eventTypeHasBeenSet = false;
196
197 Aws::String m_eventId;
198 bool m_eventIdHasBeenSet = false;
199
200 Aws::String m_recommendationId;
201 bool m_recommendationIdHasBeenSet = false;
202
203 Aws::Vector<Aws::String> m_impression;
204 bool m_impressionHasBeenSet = false;
205
206 Aws::String m_properties;
207 bool m_propertiesHasBeenSet = false;
208 };
209
210} // namespace Model
211} // namespace PersonalizeEvents
212} // 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