7#include <aws/pinpoint/Pinpoint_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/pinpoint/model/Session.h>
37 AWS_PINPOINT_API
Event() =
default;
49 template<
typename AppPackageNameT = Aws::String>
50 void SetAppPackageName(AppPackageNameT&& value) { m_appPackageNameHasBeenSet =
true; m_appPackageName = std::forward<AppPackageNameT>(value); }
51 template<
typename AppPackageNameT = Aws::String>
61 template<
typename AppTitleT = Aws::String>
62 void SetAppTitle(AppTitleT&& value) { m_appTitleHasBeenSet =
true; m_appTitle = std::forward<AppTitleT>(value); }
63 template<
typename AppTitleT = Aws::String>
73 template<
typename AppVersionCodeT = Aws::String>
74 void SetAppVersionCode(AppVersionCodeT&& value) { m_appVersionCodeHasBeenSet =
true; m_appVersionCode = std::forward<AppVersionCodeT>(value); }
75 template<
typename AppVersionCodeT = Aws::String>
85 template<
typename AttributesT = Aws::Map<Aws::String, Aws::String>>
86 void SetAttributes(AttributesT&& value) { m_attributesHasBeenSet =
true; m_attributes = std::forward<AttributesT>(value); }
87 template<
typename AttributesT = Aws::Map<Aws::String, Aws::String>>
89 template<
typename AttributesKeyT = Aws::String,
typename AttributesValueT = Aws::String>
91 m_attributesHasBeenSet =
true; m_attributes.emplace(std::forward<AttributesKeyT>(key), std::forward<AttributesValueT>(value));
return *
this;
101 template<
typename ClientSdkVersionT = Aws::String>
102 void SetClientSdkVersion(ClientSdkVersionT&& value) { m_clientSdkVersionHasBeenSet =
true; m_clientSdkVersion = std::forward<ClientSdkVersionT>(value); }
103 template<
typename ClientSdkVersionT = Aws::String>
113 template<
typename EventTypeT = Aws::String>
114 void SetEventType(EventTypeT&& value) { m_eventTypeHasBeenSet =
true; m_eventType = std::forward<EventTypeT>(value); }
115 template<
typename EventTypeT = Aws::String>
125 template<
typename MetricsT = Aws::Map<Aws::String,
double>>
126 void SetMetrics(MetricsT&& value) { m_metricsHasBeenSet =
true; m_metrics = std::forward<MetricsT>(value); }
127 template<
typename MetricsT = Aws::Map<Aws::String,
double>>
130 m_metricsHasBeenSet =
true; m_metrics.emplace(key, value);
return *
this;
140 template<
typename SdkNameT = Aws::String>
141 void SetSdkName(SdkNameT&& value) { m_sdkNameHasBeenSet =
true; m_sdkName = std::forward<SdkNameT>(value); }
142 template<
typename SdkNameT = Aws::String>
152 template<
typename SessionT = Session>
153 void SetSession(SessionT&& value) { m_sessionHasBeenSet =
true; m_session = std::forward<SessionT>(value); }
154 template<
typename SessionT = Session>
164 template<
typename TimestampT = Aws::String>
165 void SetTimestamp(TimestampT&& value) { m_timestampHasBeenSet =
true; m_timestamp = std::forward<TimestampT>(value); }
166 template<
typename TimestampT = Aws::String>
172 bool m_appPackageNameHasBeenSet =
false;
175 bool m_appTitleHasBeenSet =
false;
178 bool m_appVersionCodeHasBeenSet =
false;
181 bool m_attributesHasBeenSet =
false;
184 bool m_clientSdkVersionHasBeenSet =
false;
187 bool m_eventTypeHasBeenSet =
false;
190 bool m_metricsHasBeenSet =
false;
193 bool m_sdkNameHasBeenSet =
false;
196 bool m_sessionHasBeenSet =
false;
199 bool m_timestampHasBeenSet =
false;
AWS_PINPOINT_API Event & operator=(Aws::Utils::Json::JsonView jsonValue)
bool ClientSdkVersionHasBeenSet() const
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
Event & WithAppVersionCode(AppVersionCodeT &&value)
const Aws::String & GetAppVersionCode() const
Event & WithMetrics(MetricsT &&value)
Event & WithAppTitle(AppTitleT &&value)
void SetSession(SessionT &&value)
Event & WithTimestamp(TimestampT &&value)
bool AppTitleHasBeenSet() const
void SetEventType(EventTypeT &&value)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetAppTitle() const
bool SessionHasBeenSet() const
void SetAppVersionCode(AppVersionCodeT &&value)
Event & WithSession(SessionT &&value)
Event & WithSdkName(SdkNameT &&value)
void SetSdkName(SdkNameT &&value)
const Aws::String & GetTimestamp() const
const Aws::String & GetClientSdkVersion() const
void SetMetrics(MetricsT &&value)
void SetAttributes(AttributesT &&value)
bool MetricsHasBeenSet() const
Event & AddAttributes(AttributesKeyT &&key, AttributesValueT &&value)
void SetClientSdkVersion(ClientSdkVersionT &&value)
const Aws::String & GetSdkName() const
void SetTimestamp(TimestampT &&value)
bool AppPackageNameHasBeenSet() const
AWS_PINPOINT_API Event(Aws::Utils::Json::JsonView jsonValue)
Event & WithAttributes(AttributesT &&value)
const Aws::String & GetAppPackageName() const
bool SdkNameHasBeenSet() const
bool TimestampHasBeenSet() const
bool AttributesHasBeenSet() const
bool EventTypeHasBeenSet() const
const Aws::Map< Aws::String, double > & GetMetrics() const
AWS_PINPOINT_API Event()=default
const Aws::String & GetEventType() const
void SetAppTitle(AppTitleT &&value)
bool AppVersionCodeHasBeenSet() const
Event & WithAppPackageName(AppPackageNameT &&value)
Event & WithClientSdkVersion(ClientSdkVersionT &&value)
Event & WithEventType(EventTypeT &&value)
const Session & GetSession() const
void SetAppPackageName(AppPackageNameT &&value)
Event & AddMetrics(Aws::String key, double value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue