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#include <aws/personalize-events/model/MetricAttribution.h>
22namespace PersonalizeEvents {
33 AWS_PERSONALIZEEVENTS_API
Event() =
default;
48 template <
typename EventIdT = Aws::String>
50 m_eventIdHasBeenSet =
true;
51 m_eventId = std::forward<EventIdT>(value);
53 template <
typename EventIdT = Aws::String>
68 template <
typename EventTypeT = Aws::String>
70 m_eventTypeHasBeenSet =
true;
71 m_eventType = std::forward<EventTypeT>(value);
73 template <
typename EventTypeT = Aws::String>
88 m_eventValueHasBeenSet =
true;
104 template <
typename ItemIdT = Aws::String>
106 m_itemIdHasBeenSet =
true;
107 m_itemId = std::forward<ItemIdT>(value);
109 template <
typename ItemIdT = Aws::String>
134 template <
typename PropertiesT = Aws::String>
136 m_propertiesHasBeenSet =
true;
137 m_properties = std::forward<PropertiesT>(value);
139 template <
typename PropertiesT = Aws::String>
152 template <
typename SentAtT = Aws::Utils::DateTime>
154 m_sentAtHasBeenSet =
true;
155 m_sentAt = std::forward<SentAtT>(value);
157 template <
typename SentAtT = Aws::Utils::DateTime>
180 template <
typename RecommendationIdT = Aws::String>
182 m_recommendationIdHasBeenSet =
true;
183 m_recommendationId = std::forward<RecommendationIdT>(value);
185 template <
typename RecommendationIdT = Aws::String>
203 template <
typename ImpressionT = Aws::Vector<Aws::String>>
205 m_impressionHasBeenSet =
true;
206 m_impression = std::forward<ImpressionT>(value);
208 template <
typename ImpressionT = Aws::Vector<Aws::String>>
213 template <
typename ImpressionT = Aws::String>
215 m_impressionHasBeenSet =
true;
216 m_impression.emplace_back(std::forward<ImpressionT>(value));
230 template <
typename MetricAttributionT = MetricAttribution>
232 m_metricAttributionHasBeenSet =
true;
233 m_metricAttribution = std::forward<MetricAttributionT>(value);
235 template <
typename MetricAttributionT = MetricAttribution>
246 double m_eventValue{0.0};
258 MetricAttribution m_metricAttribution;
259 bool m_eventIdHasBeenSet =
false;
260 bool m_eventTypeHasBeenSet =
false;
261 bool m_eventValueHasBeenSet =
false;
262 bool m_itemIdHasBeenSet =
false;
263 bool m_propertiesHasBeenSet =
false;
264 bool m_sentAtHasBeenSet =
false;
265 bool m_recommendationIdHasBeenSet =
false;
266 bool m_impressionHasBeenSet =
false;
267 bool m_metricAttributionHasBeenSet =
false;
bool MetricAttributionHasBeenSet() const
void SetProperties(PropertiesT &&value)
bool ImpressionHasBeenSet() const
AWS_PERSONALIZEEVENTS_API Event(Aws::Utils::Json::JsonView jsonValue)
Event & WithEventType(EventTypeT &&value)
bool RecommendationIdHasBeenSet() const
Event & WithImpression(ImpressionT &&value)
const Aws::String & GetEventType() const
void SetSentAt(SentAtT &&value)
Event & WithItemId(ItemIdT &&value)
const Aws::String & GetProperties() const
bool SentAtHasBeenSet() const
void SetEventType(EventTypeT &&value)
const Aws::String & GetItemId() const
bool EventValueHasBeenSet() const
Event & WithEventId(EventIdT &&value)
const Aws::Utils::DateTime & GetSentAt() const
Event & WithMetricAttribution(MetricAttributionT &&value)
Event & WithProperties(PropertiesT &&value)
const Aws::String & GetRecommendationId() const
const Aws::Vector< Aws::String > & GetImpression() const
Event & WithSentAt(SentAtT &&value)
bool EventIdHasBeenSet() const
bool EventTypeHasBeenSet() const
const Aws::String & GetEventId() const
AWS_PERSONALIZEEVENTS_API Event & operator=(Aws::Utils::Json::JsonView jsonValue)
bool PropertiesHasBeenSet() const
Event & WithEventValue(double value)
Event & WithRecommendationId(RecommendationIdT &&value)
AWS_PERSONALIZEEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetMetricAttribution(MetricAttributionT &&value)
double GetEventValue() const
void SetRecommendationId(RecommendationIdT &&value)
AWS_PERSONALIZEEVENTS_API Event()=default
void SetEventId(EventIdT &&value)
void SetImpression(ImpressionT &&value)
void SetEventValue(double value)
Event & AddImpression(ImpressionT &&value)
const MetricAttribution & GetMetricAttribution() const
void SetItemId(ItemIdT &&value)
bool ItemIdHasBeenSet() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue