AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetActionId(const Aws::String& value) { m_actionIdHasBeenSet = true; m_actionId = value; }
51 inline void SetActionId(Aws::String&& value) { m_actionIdHasBeenSet = true; m_actionId = std::move(value); }
52 inline void SetActionId(const char* value) { m_actionIdHasBeenSet = true; m_actionId.assign(value); }
53 inline ActionInteraction& WithActionId(const Aws::String& value) { SetActionId(value); return *this;}
54 inline ActionInteraction& WithActionId(Aws::String&& value) { SetActionId(std::move(value)); return *this;}
55 inline ActionInteraction& WithActionId(const char* value) { SetActionId(value); return *this;}
57
59
63 inline const Aws::String& GetUserId() const{ return m_userId; }
64 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
65 inline void SetUserId(const Aws::String& value) { m_userIdHasBeenSet = true; m_userId = value; }
66 inline void SetUserId(Aws::String&& value) { m_userIdHasBeenSet = true; m_userId = std::move(value); }
67 inline void SetUserId(const char* value) { m_userIdHasBeenSet = true; m_userId.assign(value); }
68 inline ActionInteraction& WithUserId(const Aws::String& value) { SetUserId(value); return *this;}
69 inline ActionInteraction& WithUserId(Aws::String&& value) { SetUserId(std::move(value)); return *this;}
70 inline ActionInteraction& WithUserId(const char* value) { SetUserId(value); return *this;}
72
74
79 inline const Aws::String& GetSessionId() const{ return m_sessionId; }
80 inline bool SessionIdHasBeenSet() const { return m_sessionIdHasBeenSet; }
81 inline void SetSessionId(const Aws::String& value) { m_sessionIdHasBeenSet = true; m_sessionId = value; }
82 inline void SetSessionId(Aws::String&& value) { m_sessionIdHasBeenSet = true; m_sessionId = std::move(value); }
83 inline void SetSessionId(const char* value) { m_sessionIdHasBeenSet = true; m_sessionId.assign(value); }
84 inline ActionInteraction& WithSessionId(const Aws::String& value) { SetSessionId(value); return *this;}
85 inline ActionInteraction& WithSessionId(Aws::String&& value) { SetSessionId(std::move(value)); return *this;}
86 inline ActionInteraction& WithSessionId(const char* value) { SetSessionId(value); return *this;}
88
90
94 inline const Aws::Utils::DateTime& GetTimestamp() const{ return m_timestamp; }
95 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
96 inline void SetTimestamp(const Aws::Utils::DateTime& value) { m_timestampHasBeenSet = true; m_timestamp = value; }
97 inline void SetTimestamp(Aws::Utils::DateTime&& value) { m_timestampHasBeenSet = true; m_timestamp = std::move(value); }
98 inline ActionInteraction& WithTimestamp(const Aws::Utils::DateTime& value) { SetTimestamp(value); return *this;}
99 inline ActionInteraction& WithTimestamp(Aws::Utils::DateTime&& value) { SetTimestamp(std::move(value)); return *this;}
101
103
110 inline const Aws::String& GetEventType() const{ return m_eventType; }
111 inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; }
112 inline void SetEventType(const Aws::String& value) { m_eventTypeHasBeenSet = true; m_eventType = value; }
113 inline void SetEventType(Aws::String&& value) { m_eventTypeHasBeenSet = true; m_eventType = std::move(value); }
114 inline void SetEventType(const char* value) { m_eventTypeHasBeenSet = true; m_eventType.assign(value); }
115 inline ActionInteraction& WithEventType(const Aws::String& value) { SetEventType(value); return *this;}
116 inline ActionInteraction& WithEventType(Aws::String&& value) { SetEventType(std::move(value)); return *this;}
117 inline ActionInteraction& WithEventType(const char* value) { SetEventType(value); return *this;}
119
121
128 inline const Aws::String& GetEventId() const{ return m_eventId; }
129 inline bool EventIdHasBeenSet() const { return m_eventIdHasBeenSet; }
130 inline void SetEventId(const Aws::String& value) { m_eventIdHasBeenSet = true; m_eventId = value; }
131 inline void SetEventId(Aws::String&& value) { m_eventIdHasBeenSet = true; m_eventId = std::move(value); }
132 inline void SetEventId(const char* value) { m_eventIdHasBeenSet = true; m_eventId.assign(value); }
133 inline ActionInteraction& WithEventId(const Aws::String& value) { SetEventId(value); return *this;}
134 inline ActionInteraction& WithEventId(Aws::String&& value) { SetEventId(std::move(value)); return *this;}
135 inline ActionInteraction& WithEventId(const char* value) { SetEventId(value); return *this;}
137
139
143 inline const Aws::String& GetRecommendationId() const{ return m_recommendationId; }
144 inline bool RecommendationIdHasBeenSet() const { return m_recommendationIdHasBeenSet; }
145 inline void SetRecommendationId(const Aws::String& value) { m_recommendationIdHasBeenSet = true; m_recommendationId = value; }
146 inline void SetRecommendationId(Aws::String&& value) { m_recommendationIdHasBeenSet = true; m_recommendationId = std::move(value); }
147 inline void SetRecommendationId(const char* value) { m_recommendationIdHasBeenSet = true; m_recommendationId.assign(value); }
148 inline ActionInteraction& WithRecommendationId(const Aws::String& value) { SetRecommendationId(value); return *this;}
149 inline ActionInteraction& WithRecommendationId(Aws::String&& value) { SetRecommendationId(std::move(value)); return *this;}
150 inline ActionInteraction& WithRecommendationId(const char* value) { SetRecommendationId(value); return *this;}
152
154
161 inline const Aws::Vector<Aws::String>& GetImpression() const{ return m_impression; }
162 inline bool ImpressionHasBeenSet() const { return m_impressionHasBeenSet; }
163 inline void SetImpression(const Aws::Vector<Aws::String>& value) { m_impressionHasBeenSet = true; m_impression = value; }
164 inline void SetImpression(Aws::Vector<Aws::String>&& value) { m_impressionHasBeenSet = true; m_impression = std::move(value); }
165 inline ActionInteraction& WithImpression(const Aws::Vector<Aws::String>& value) { SetImpression(value); return *this;}
166 inline ActionInteraction& WithImpression(Aws::Vector<Aws::String>&& value) { SetImpression(std::move(value)); return *this;}
167 inline ActionInteraction& AddImpression(const Aws::String& value) { m_impressionHasBeenSet = true; m_impression.push_back(value); return *this; }
168 inline ActionInteraction& AddImpression(Aws::String&& value) { m_impressionHasBeenSet = true; m_impression.push_back(std::move(value)); return *this; }
169 inline ActionInteraction& AddImpression(const char* value) { m_impressionHasBeenSet = true; m_impression.push_back(value); return *this; }
171
173
186 inline const Aws::String& GetProperties() const{ return m_properties; }
187 inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
188 inline void SetProperties(const Aws::String& value) { m_propertiesHasBeenSet = true; m_properties = value; }
189 inline void SetProperties(Aws::String&& value) { m_propertiesHasBeenSet = true; m_properties = std::move(value); }
190 inline void SetProperties(const char* value) { m_propertiesHasBeenSet = true; m_properties.assign(value); }
191 inline ActionInteraction& WithProperties(const Aws::String& value) { SetProperties(value); return *this;}
192 inline ActionInteraction& WithProperties(Aws::String&& value) { SetProperties(std::move(value)); return *this;}
193 inline ActionInteraction& WithProperties(const char* value) { SetProperties(value); return *this;}
195 private:
196
197 Aws::String m_actionId;
198 bool m_actionIdHasBeenSet = false;
199
200 Aws::String m_userId;
201 bool m_userIdHasBeenSet = false;
202
203 Aws::String m_sessionId;
204 bool m_sessionIdHasBeenSet = false;
205
206 Aws::Utils::DateTime m_timestamp;
207 bool m_timestampHasBeenSet = false;
208
209 Aws::String m_eventType;
210 bool m_eventTypeHasBeenSet = false;
211
212 Aws::String m_eventId;
213 bool m_eventIdHasBeenSet = false;
214
215 Aws::String m_recommendationId;
216 bool m_recommendationIdHasBeenSet = false;
217
218 Aws::Vector<Aws::String> m_impression;
219 bool m_impressionHasBeenSet = false;
220
221 Aws::String m_properties;
222 bool m_propertiesHasBeenSet = false;
223 };
224
225} // namespace Model
226} // namespace PersonalizeEvents
227} // namespace Aws
void SetImpression(const Aws::Vector< Aws::String > &value)
AWS_PERSONALIZEEVENTS_API ActionInteraction & operator=(Aws::Utils::Json::JsonView jsonValue)
ActionInteraction & AddImpression(Aws::String &&value)
const Aws::Vector< Aws::String > & GetImpression() const
void SetImpression(Aws::Vector< Aws::String > &&value)
ActionInteraction & WithRecommendationId(const Aws::String &value)
ActionInteraction & WithSessionId(Aws::String &&value)
AWS_PERSONALIZEEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const
ActionInteraction & WithEventType(const char *value)
ActionInteraction & WithProperties(Aws::String &&value)
ActionInteraction & WithTimestamp(const Aws::Utils::DateTime &value)
ActionInteraction & WithEventType(Aws::String &&value)
ActionInteraction & AddImpression(const char *value)
ActionInteraction & WithUserId(Aws::String &&value)
ActionInteraction & WithSessionId(const char *value)
ActionInteraction & WithActionId(Aws::String &&value)
ActionInteraction & WithProperties(const Aws::String &value)
ActionInteraction & WithProperties(const char *value)
ActionInteraction & WithEventId(const Aws::String &value)
ActionInteraction & WithEventId(Aws::String &&value)
ActionInteraction & WithImpression(const Aws::Vector< Aws::String > &value)
AWS_PERSONALIZEEVENTS_API ActionInteraction(Aws::Utils::Json::JsonView jsonValue)
ActionInteraction & WithSessionId(const Aws::String &value)
const Aws::Utils::DateTime & GetTimestamp() const
ActionInteraction & AddImpression(const Aws::String &value)
ActionInteraction & WithEventType(const Aws::String &value)
ActionInteraction & WithActionId(const char *value)
ActionInteraction & WithActionId(const Aws::String &value)
ActionInteraction & WithEventId(const char *value)
ActionInteraction & WithRecommendationId(const char *value)
ActionInteraction & WithRecommendationId(Aws::String &&value)
ActionInteraction & WithUserId(const char *value)
ActionInteraction & WithUserId(const Aws::String &value)
ActionInteraction & WithImpression(Aws::Vector< Aws::String > &&value)
AWS_PERSONALIZEEVENTS_API ActionInteraction()
void SetTimestamp(Aws::Utils::DateTime &&value)
ActionInteraction & WithTimestamp(Aws::Utils::DateTime &&value)
void SetTimestamp(const Aws::Utils::DateTime &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