AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
Event.h
1
6#pragma once
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>
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 Pinpoint
24{
25namespace Model
26{
27
34 class Event
35 {
36 public:
37 AWS_PINPOINT_API Event() = default;
38 AWS_PINPOINT_API Event(Aws::Utils::Json::JsonView jsonValue);
39 AWS_PINPOINT_API Event& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetAppPackageName() const { return m_appPackageName; }
48 inline bool AppPackageNameHasBeenSet() const { return m_appPackageNameHasBeenSet; }
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>
52 Event& WithAppPackageName(AppPackageNameT&& value) { SetAppPackageName(std::forward<AppPackageNameT>(value)); return *this;}
54
56
59 inline const Aws::String& GetAppTitle() const { return m_appTitle; }
60 inline bool AppTitleHasBeenSet() const { return m_appTitleHasBeenSet; }
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>
64 Event& WithAppTitle(AppTitleT&& value) { SetAppTitle(std::forward<AppTitleT>(value)); return *this;}
66
68
71 inline const Aws::String& GetAppVersionCode() const { return m_appVersionCode; }
72 inline bool AppVersionCodeHasBeenSet() const { return m_appVersionCodeHasBeenSet; }
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>
76 Event& WithAppVersionCode(AppVersionCodeT&& value) { SetAppVersionCode(std::forward<AppVersionCodeT>(value)); return *this;}
78
80
83 inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const { return m_attributes; }
84 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
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>>
88 Event& WithAttributes(AttributesT&& value) { SetAttributes(std::forward<AttributesT>(value)); return *this;}
89 template<typename AttributesKeyT = Aws::String, typename AttributesValueT = Aws::String>
90 Event& AddAttributes(AttributesKeyT&& key, AttributesValueT&& value) {
91 m_attributesHasBeenSet = true; m_attributes.emplace(std::forward<AttributesKeyT>(key), std::forward<AttributesValueT>(value)); return *this;
92 }
94
96
99 inline const Aws::String& GetClientSdkVersion() const { return m_clientSdkVersion; }
100 inline bool ClientSdkVersionHasBeenSet() const { return m_clientSdkVersionHasBeenSet; }
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>
104 Event& WithClientSdkVersion(ClientSdkVersionT&& value) { SetClientSdkVersion(std::forward<ClientSdkVersionT>(value)); return *this;}
106
108
111 inline const Aws::String& GetEventType() const { return m_eventType; }
112 inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; }
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>
116 Event& WithEventType(EventTypeT&& value) { SetEventType(std::forward<EventTypeT>(value)); return *this;}
118
120
123 inline const Aws::Map<Aws::String, double>& GetMetrics() const { return m_metrics; }
124 inline bool MetricsHasBeenSet() const { return m_metricsHasBeenSet; }
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>>
128 Event& WithMetrics(MetricsT&& value) { SetMetrics(std::forward<MetricsT>(value)); return *this;}
129 inline Event& AddMetrics(Aws::String key, double value) {
130 m_metricsHasBeenSet = true; m_metrics.emplace(key, value); return *this;
131 }
133
135
138 inline const Aws::String& GetSdkName() const { return m_sdkName; }
139 inline bool SdkNameHasBeenSet() const { return m_sdkNameHasBeenSet; }
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>
143 Event& WithSdkName(SdkNameT&& value) { SetSdkName(std::forward<SdkNameT>(value)); return *this;}
145
147
150 inline const Session& GetSession() const { return m_session; }
151 inline bool SessionHasBeenSet() const { return m_sessionHasBeenSet; }
152 template<typename SessionT = Session>
153 void SetSession(SessionT&& value) { m_sessionHasBeenSet = true; m_session = std::forward<SessionT>(value); }
154 template<typename SessionT = Session>
155 Event& WithSession(SessionT&& value) { SetSession(std::forward<SessionT>(value)); return *this;}
157
159
162 inline const Aws::String& GetTimestamp() const { return m_timestamp; }
163 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
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>
167 Event& WithTimestamp(TimestampT&& value) { SetTimestamp(std::forward<TimestampT>(value)); return *this;}
169 private:
170
171 Aws::String m_appPackageName;
172 bool m_appPackageNameHasBeenSet = false;
173
174 Aws::String m_appTitle;
175 bool m_appTitleHasBeenSet = false;
176
177 Aws::String m_appVersionCode;
178 bool m_appVersionCodeHasBeenSet = false;
179
181 bool m_attributesHasBeenSet = false;
182
183 Aws::String m_clientSdkVersion;
184 bool m_clientSdkVersionHasBeenSet = false;
185
186 Aws::String m_eventType;
187 bool m_eventTypeHasBeenSet = false;
188
190 bool m_metricsHasBeenSet = false;
191
192 Aws::String m_sdkName;
193 bool m_sdkNameHasBeenSet = false;
194
195 Session m_session;
196 bool m_sessionHasBeenSet = false;
197
198 Aws::String m_timestamp;
199 bool m_timestampHasBeenSet = false;
200 };
201
202} // namespace Model
203} // namespace Pinpoint
204} // namespace Aws
AWS_PINPOINT_API Event & operator=(Aws::Utils::Json::JsonView jsonValue)
bool ClientSdkVersionHasBeenSet() const
Definition Event.h:100
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
Definition Event.h:83
Event & WithAppVersionCode(AppVersionCodeT &&value)
Definition Event.h:76
const Aws::String & GetAppVersionCode() const
Definition Event.h:71
Event & WithMetrics(MetricsT &&value)
Definition Event.h:128
Event & WithAppTitle(AppTitleT &&value)
Definition Event.h:64
void SetSession(SessionT &&value)
Definition Event.h:153
Event & WithTimestamp(TimestampT &&value)
Definition Event.h:167
bool AppTitleHasBeenSet() const
Definition Event.h:60
void SetEventType(EventTypeT &&value)
Definition Event.h:114
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetAppTitle() const
Definition Event.h:59
bool SessionHasBeenSet() const
Definition Event.h:151
void SetAppVersionCode(AppVersionCodeT &&value)
Definition Event.h:74
Event & WithSession(SessionT &&value)
Definition Event.h:155
Event & WithSdkName(SdkNameT &&value)
Definition Event.h:143
void SetSdkName(SdkNameT &&value)
Definition Event.h:141
const Aws::String & GetTimestamp() const
Definition Event.h:162
const Aws::String & GetClientSdkVersion() const
Definition Event.h:99
void SetMetrics(MetricsT &&value)
Definition Event.h:126
void SetAttributes(AttributesT &&value)
Definition Event.h:86
bool MetricsHasBeenSet() const
Definition Event.h:124
Event & AddAttributes(AttributesKeyT &&key, AttributesValueT &&value)
Definition Event.h:90
void SetClientSdkVersion(ClientSdkVersionT &&value)
Definition Event.h:102
const Aws::String & GetSdkName() const
Definition Event.h:138
void SetTimestamp(TimestampT &&value)
Definition Event.h:165
bool AppPackageNameHasBeenSet() const
Definition Event.h:48
AWS_PINPOINT_API Event(Aws::Utils::Json::JsonView jsonValue)
Event & WithAttributes(AttributesT &&value)
Definition Event.h:88
const Aws::String & GetAppPackageName() const
Definition Event.h:47
bool SdkNameHasBeenSet() const
Definition Event.h:139
bool TimestampHasBeenSet() const
Definition Event.h:163
bool AttributesHasBeenSet() const
Definition Event.h:84
bool EventTypeHasBeenSet() const
Definition Event.h:112
const Aws::Map< Aws::String, double > & GetMetrics() const
Definition Event.h:123
AWS_PINPOINT_API Event()=default
const Aws::String & GetEventType() const
Definition Event.h:111
void SetAppTitle(AppTitleT &&value)
Definition Event.h:62
bool AppVersionCodeHasBeenSet() const
Definition Event.h:72
Event & WithAppPackageName(AppPackageNameT &&value)
Definition Event.h:52
Event & WithClientSdkVersion(ClientSdkVersionT &&value)
Definition Event.h:104
Event & WithEventType(EventTypeT &&value)
Definition Event.h:116
const Session & GetSession() const
Definition Event.h:150
void SetAppPackageName(AppPackageNameT &&value)
Definition Event.h:50
Event & AddMetrics(Aws::String key, double value)
Definition Event.h:129
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