AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Event.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 <aws/personalize-events/model/MetricAttribution.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace PersonalizeEvents
25{
26namespace Model
27{
28
35 class Event
36 {
37 public:
38 AWS_PERSONALIZEEVENTS_API Event();
39 AWS_PERSONALIZEEVENTS_API Event(Aws::Utils::Json::JsonView jsonValue);
40 AWS_PERSONALIZEEVENTS_API Event& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_PERSONALIZEEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
52 inline const Aws::String& GetEventId() const{ return m_eventId; }
53 inline bool EventIdHasBeenSet() const { return m_eventIdHasBeenSet; }
54 inline void SetEventId(const Aws::String& value) { m_eventIdHasBeenSet = true; m_eventId = value; }
55 inline void SetEventId(Aws::String&& value) { m_eventIdHasBeenSet = true; m_eventId = std::move(value); }
56 inline void SetEventId(const char* value) { m_eventIdHasBeenSet = true; m_eventId.assign(value); }
57 inline Event& WithEventId(const Aws::String& value) { SetEventId(value); return *this;}
58 inline Event& WithEventId(Aws::String&& value) { SetEventId(std::move(value)); return *this;}
59 inline Event& WithEventId(const char* value) { SetEventId(value); return *this;}
61
63
68 inline const Aws::String& GetEventType() const{ return m_eventType; }
69 inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; }
70 inline void SetEventType(const Aws::String& value) { m_eventTypeHasBeenSet = true; m_eventType = value; }
71 inline void SetEventType(Aws::String&& value) { m_eventTypeHasBeenSet = true; m_eventType = std::move(value); }
72 inline void SetEventType(const char* value) { m_eventTypeHasBeenSet = true; m_eventType.assign(value); }
73 inline Event& WithEventType(const Aws::String& value) { SetEventType(value); return *this;}
74 inline Event& WithEventType(Aws::String&& value) { SetEventType(std::move(value)); return *this;}
75 inline Event& WithEventType(const char* value) { SetEventType(value); return *this;}
77
79
83 inline double GetEventValue() const{ return m_eventValue; }
84 inline bool EventValueHasBeenSet() const { return m_eventValueHasBeenSet; }
85 inline void SetEventValue(double value) { m_eventValueHasBeenSet = true; m_eventValue = value; }
86 inline Event& WithEventValue(double value) { SetEventValue(value); return *this;}
88
90
94 inline const Aws::String& GetItemId() const{ return m_itemId; }
95 inline bool ItemIdHasBeenSet() const { return m_itemIdHasBeenSet; }
96 inline void SetItemId(const Aws::String& value) { m_itemIdHasBeenSet = true; m_itemId = value; }
97 inline void SetItemId(Aws::String&& value) { m_itemIdHasBeenSet = true; m_itemId = std::move(value); }
98 inline void SetItemId(const char* value) { m_itemIdHasBeenSet = true; m_itemId.assign(value); }
99 inline Event& WithItemId(const Aws::String& value) { SetItemId(value); return *this;}
100 inline Event& WithItemId(Aws::String&& value) { SetItemId(std::move(value)); return *this;}
101 inline Event& WithItemId(const char* value) { SetItemId(value); return *this;}
103
105
120 inline const Aws::String& GetProperties() const{ return m_properties; }
121 inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
122 inline void SetProperties(const Aws::String& value) { m_propertiesHasBeenSet = true; m_properties = value; }
123 inline void SetProperties(Aws::String&& value) { m_propertiesHasBeenSet = true; m_properties = std::move(value); }
124 inline void SetProperties(const char* value) { m_propertiesHasBeenSet = true; m_properties.assign(value); }
125 inline Event& WithProperties(const Aws::String& value) { SetProperties(value); return *this;}
126 inline Event& WithProperties(Aws::String&& value) { SetProperties(std::move(value)); return *this;}
127 inline Event& WithProperties(const char* value) { SetProperties(value); return *this;}
129
131
134 inline const Aws::Utils::DateTime& GetSentAt() const{ return m_sentAt; }
135 inline bool SentAtHasBeenSet() const { return m_sentAtHasBeenSet; }
136 inline void SetSentAt(const Aws::Utils::DateTime& value) { m_sentAtHasBeenSet = true; m_sentAt = value; }
137 inline void SetSentAt(Aws::Utils::DateTime&& value) { m_sentAtHasBeenSet = true; m_sentAt = std::move(value); }
138 inline Event& WithSentAt(const Aws::Utils::DateTime& value) { SetSentAt(value); return *this;}
139 inline Event& WithSentAt(Aws::Utils::DateTime&& value) { SetSentAt(std::move(value)); return *this;}
141
143
156 inline const Aws::String& GetRecommendationId() const{ return m_recommendationId; }
157 inline bool RecommendationIdHasBeenSet() const { return m_recommendationIdHasBeenSet; }
158 inline void SetRecommendationId(const Aws::String& value) { m_recommendationIdHasBeenSet = true; m_recommendationId = value; }
159 inline void SetRecommendationId(Aws::String&& value) { m_recommendationIdHasBeenSet = true; m_recommendationId = std::move(value); }
160 inline void SetRecommendationId(const char* value) { m_recommendationIdHasBeenSet = true; m_recommendationId.assign(value); }
161 inline Event& WithRecommendationId(const Aws::String& value) { SetRecommendationId(value); return *this;}
162 inline Event& WithRecommendationId(Aws::String&& value) { SetRecommendationId(std::move(value)); return *this;}
163 inline Event& WithRecommendationId(const char* value) { SetRecommendationId(value); return *this;}
165
167
175 inline const Aws::Vector<Aws::String>& GetImpression() const{ return m_impression; }
176 inline bool ImpressionHasBeenSet() const { return m_impressionHasBeenSet; }
177 inline void SetImpression(const Aws::Vector<Aws::String>& value) { m_impressionHasBeenSet = true; m_impression = value; }
178 inline void SetImpression(Aws::Vector<Aws::String>&& value) { m_impressionHasBeenSet = true; m_impression = std::move(value); }
179 inline Event& WithImpression(const Aws::Vector<Aws::String>& value) { SetImpression(value); return *this;}
180 inline Event& WithImpression(Aws::Vector<Aws::String>&& value) { SetImpression(std::move(value)); return *this;}
181 inline Event& AddImpression(const Aws::String& value) { m_impressionHasBeenSet = true; m_impression.push_back(value); return *this; }
182 inline Event& AddImpression(Aws::String&& value) { m_impressionHasBeenSet = true; m_impression.push_back(std::move(value)); return *this; }
183 inline Event& AddImpression(const char* value) { m_impressionHasBeenSet = true; m_impression.push_back(value); return *this; }
185
187
193 inline const MetricAttribution& GetMetricAttribution() const{ return m_metricAttribution; }
194 inline bool MetricAttributionHasBeenSet() const { return m_metricAttributionHasBeenSet; }
195 inline void SetMetricAttribution(const MetricAttribution& value) { m_metricAttributionHasBeenSet = true; m_metricAttribution = value; }
196 inline void SetMetricAttribution(MetricAttribution&& value) { m_metricAttributionHasBeenSet = true; m_metricAttribution = std::move(value); }
197 inline Event& WithMetricAttribution(const MetricAttribution& value) { SetMetricAttribution(value); return *this;}
198 inline Event& WithMetricAttribution(MetricAttribution&& value) { SetMetricAttribution(std::move(value)); return *this;}
200 private:
201
202 Aws::String m_eventId;
203 bool m_eventIdHasBeenSet = false;
204
205 Aws::String m_eventType;
206 bool m_eventTypeHasBeenSet = false;
207
208 double m_eventValue;
209 bool m_eventValueHasBeenSet = false;
210
211 Aws::String m_itemId;
212 bool m_itemIdHasBeenSet = false;
213
214 Aws::String m_properties;
215 bool m_propertiesHasBeenSet = false;
216
217 Aws::Utils::DateTime m_sentAt;
218 bool m_sentAtHasBeenSet = false;
219
220 Aws::String m_recommendationId;
221 bool m_recommendationIdHasBeenSet = false;
222
223 Aws::Vector<Aws::String> m_impression;
224 bool m_impressionHasBeenSet = false;
225
226 MetricAttribution m_metricAttribution;
227 bool m_metricAttributionHasBeenSet = false;
228 };
229
230} // namespace Model
231} // namespace PersonalizeEvents
232} // namespace Aws
Event & WithEventId(const char *value)
Definition Event.h:59
bool MetricAttributionHasBeenSet() const
Definition Event.h:194
void SetEventId(const Aws::String &value)
Definition Event.h:54
void SetSentAt(Aws::Utils::DateTime &&value)
Definition Event.h:137
Event & WithEventType(const char *value)
Definition Event.h:75
Event & WithRecommendationId(const char *value)
Definition Event.h:163
Event & AddImpression(const char *value)
Definition Event.h:183
void SetProperties(const char *value)
Definition Event.h:124
AWS_PERSONALIZEEVENTS_API Event(Aws::Utils::Json::JsonView jsonValue)
bool RecommendationIdHasBeenSet() const
Definition Event.h:157
Event & WithEventId(const Aws::String &value)
Definition Event.h:57
Event & WithMetricAttribution(const MetricAttribution &value)
Definition Event.h:197
const Aws::String & GetEventType() const
Definition Event.h:68
void SetEventId(Aws::String &&value)
Definition Event.h:55
Event & WithEventType(Aws::String &&value)
Definition Event.h:74
const Aws::String & GetProperties() const
Definition Event.h:120
const Aws::String & GetItemId() const
Definition Event.h:94
Event & WithItemId(Aws::String &&value)
Definition Event.h:100
const Aws::Utils::DateTime & GetSentAt() const
Definition Event.h:134
Event & WithRecommendationId(const Aws::String &value)
Definition Event.h:161
void SetItemId(const Aws::String &value)
Definition Event.h:96
void SetMetricAttribution(const MetricAttribution &value)
Definition Event.h:195
void SetEventType(Aws::String &&value)
Definition Event.h:71
const Aws::String & GetRecommendationId() const
Definition Event.h:156
Event & WithImpression(const Aws::Vector< Aws::String > &value)
Definition Event.h:179
const Aws::Vector< Aws::String > & GetImpression() const
Definition Event.h:175
void SetProperties(const Aws::String &value)
Definition Event.h:122
Event & WithItemId(const Aws::String &value)
Definition Event.h:99
Event & WithProperties(const char *value)
Definition Event.h:127
Event & AddImpression(Aws::String &&value)
Definition Event.h:182
void SetImpression(const Aws::Vector< Aws::String > &value)
Definition Event.h:177
const Aws::String & GetEventId() const
Definition Event.h:52
void SetEventId(const char *value)
Definition Event.h:56
AWS_PERSONALIZEEVENTS_API Event & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_PERSONALIZEEVENTS_API Event()
Event & AddImpression(const Aws::String &value)
Definition Event.h:181
void SetImpression(Aws::Vector< Aws::String > &&value)
Definition Event.h:178
void SetSentAt(const Aws::Utils::DateTime &value)
Definition Event.h:136
Event & WithMetricAttribution(MetricAttribution &&value)
Definition Event.h:198
Event & WithImpression(Aws::Vector< Aws::String > &&value)
Definition Event.h:180
Event & WithEventValue(double value)
Definition Event.h:86
void SetRecommendationId(const Aws::String &value)
Definition Event.h:158
AWS_PERSONALIZEEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetProperties(Aws::String &&value)
Definition Event.h:123
void SetRecommendationId(Aws::String &&value)
Definition Event.h:159
Event & WithEventType(const Aws::String &value)
Definition Event.h:73
Event & WithProperties(const Aws::String &value)
Definition Event.h:125
Event & WithProperties(Aws::String &&value)
Definition Event.h:126
Event & WithEventId(Aws::String &&value)
Definition Event.h:58
void SetItemId(const char *value)
Definition Event.h:98
void SetItemId(Aws::String &&value)
Definition Event.h:97
void SetEventType(const Aws::String &value)
Definition Event.h:70
Event & WithItemId(const char *value)
Definition Event.h:101
Event & WithRecommendationId(Aws::String &&value)
Definition Event.h:162
Event & WithSentAt(Aws::Utils::DateTime &&value)
Definition Event.h:139
Event & WithSentAt(const Aws::Utils::DateTime &value)
Definition Event.h:138
void SetEventType(const char *value)
Definition Event.h:72
void SetEventValue(double value)
Definition Event.h:85
const MetricAttribution & GetMetricAttribution() const
Definition Event.h:193
void SetMetricAttribution(MetricAttribution &&value)
Definition Event.h:196
void SetRecommendationId(const char *value)
Definition Event.h:160
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue