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>
24namespace PersonalizeEvents
38 AWS_PERSONALIZEEVENTS_API
Event();
56 inline void SetEventId(
const char* value) { m_eventIdHasBeenSet =
true; m_eventId.assign(value); }
72 inline void SetEventType(
const char* value) { m_eventTypeHasBeenSet =
true; m_eventType.assign(value); }
85 inline void SetEventValue(
double value) { m_eventValueHasBeenSet =
true; m_eventValue = value; }
98 inline void SetItemId(
const char* value) { m_itemIdHasBeenSet =
true; m_itemId.assign(value); }
124 inline void SetProperties(
const char* value) { m_propertiesHasBeenSet =
true; m_properties.assign(value); }
160 inline void SetRecommendationId(
const char* value) { m_recommendationIdHasBeenSet =
true; m_recommendationId.assign(value); }
183 inline Event&
AddImpression(
const char* value) { m_impressionHasBeenSet =
true; m_impression.push_back(value);
return *
this; }
203 bool m_eventIdHasBeenSet =
false;
206 bool m_eventTypeHasBeenSet =
false;
209 bool m_eventValueHasBeenSet =
false;
212 bool m_itemIdHasBeenSet =
false;
215 bool m_propertiesHasBeenSet =
false;
218 bool m_sentAtHasBeenSet =
false;
221 bool m_recommendationIdHasBeenSet =
false;
224 bool m_impressionHasBeenSet =
false;
227 bool m_metricAttributionHasBeenSet =
false;
Event & WithEventId(const char *value)
bool MetricAttributionHasBeenSet() const
void SetEventId(const Aws::String &value)
void SetSentAt(Aws::Utils::DateTime &&value)
Event & WithEventType(const char *value)
Event & WithRecommendationId(const char *value)
Event & AddImpression(const char *value)
bool ImpressionHasBeenSet() const
void SetProperties(const char *value)
AWS_PERSONALIZEEVENTS_API Event(Aws::Utils::Json::JsonView jsonValue)
bool RecommendationIdHasBeenSet() const
Event & WithEventId(const Aws::String &value)
Event & WithMetricAttribution(const MetricAttribution &value)
const Aws::String & GetEventType() const
void SetEventId(Aws::String &&value)
Event & WithEventType(Aws::String &&value)
const Aws::String & GetProperties() const
bool SentAtHasBeenSet() const
const Aws::String & GetItemId() const
bool EventValueHasBeenSet() const
Event & WithItemId(Aws::String &&value)
const Aws::Utils::DateTime & GetSentAt() const
Event & WithRecommendationId(const Aws::String &value)
void SetItemId(const Aws::String &value)
void SetMetricAttribution(const MetricAttribution &value)
void SetEventType(Aws::String &&value)
const Aws::String & GetRecommendationId() const
Event & WithImpression(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Aws::String > & GetImpression() const
bool EventIdHasBeenSet() const
void SetProperties(const Aws::String &value)
Event & WithItemId(const Aws::String &value)
Event & WithProperties(const char *value)
Event & AddImpression(Aws::String &&value)
bool EventTypeHasBeenSet() const
void SetImpression(const Aws::Vector< Aws::String > &value)
const Aws::String & GetEventId() const
void SetEventId(const char *value)
AWS_PERSONALIZEEVENTS_API Event & operator=(Aws::Utils::Json::JsonView jsonValue)
bool PropertiesHasBeenSet() const
AWS_PERSONALIZEEVENTS_API Event()
Event & AddImpression(const Aws::String &value)
void SetImpression(Aws::Vector< Aws::String > &&value)
void SetSentAt(const Aws::Utils::DateTime &value)
Event & WithMetricAttribution(MetricAttribution &&value)
Event & WithImpression(Aws::Vector< Aws::String > &&value)
Event & WithEventValue(double value)
void SetRecommendationId(const Aws::String &value)
AWS_PERSONALIZEEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetProperties(Aws::String &&value)
void SetRecommendationId(Aws::String &&value)
Event & WithEventType(const Aws::String &value)
Event & WithProperties(const Aws::String &value)
Event & WithProperties(Aws::String &&value)
Event & WithEventId(Aws::String &&value)
double GetEventValue() const
void SetItemId(const char *value)
void SetItemId(Aws::String &&value)
void SetEventType(const Aws::String &value)
Event & WithItemId(const char *value)
Event & WithRecommendationId(Aws::String &&value)
Event & WithSentAt(Aws::Utils::DateTime &&value)
Event & WithSentAt(const Aws::Utils::DateTime &value)
void SetEventType(const char *value)
void SetEventValue(double value)
const MetricAttribution & GetMetricAttribution() const
void SetMetricAttribution(MetricAttribution &&value)
void SetRecommendationId(const char *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