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/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();
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 inline void SetAppPackageName(const Aws::String& value) { m_appPackageNameHasBeenSet = true; m_appPackageName = value; }
50 inline void SetAppPackageName(Aws::String&& value) { m_appPackageNameHasBeenSet = true; m_appPackageName = std::move(value); }
51 inline void SetAppPackageName(const char* value) { m_appPackageNameHasBeenSet = true; m_appPackageName.assign(value); }
52 inline Event& WithAppPackageName(const Aws::String& value) { SetAppPackageName(value); return *this;}
53 inline Event& WithAppPackageName(Aws::String&& value) { SetAppPackageName(std::move(value)); return *this;}
54 inline Event& WithAppPackageName(const char* value) { SetAppPackageName(value); return *this;}
56
58
61 inline const Aws::String& GetAppTitle() const{ return m_appTitle; }
62 inline bool AppTitleHasBeenSet() const { return m_appTitleHasBeenSet; }
63 inline void SetAppTitle(const Aws::String& value) { m_appTitleHasBeenSet = true; m_appTitle = value; }
64 inline void SetAppTitle(Aws::String&& value) { m_appTitleHasBeenSet = true; m_appTitle = std::move(value); }
65 inline void SetAppTitle(const char* value) { m_appTitleHasBeenSet = true; m_appTitle.assign(value); }
66 inline Event& WithAppTitle(const Aws::String& value) { SetAppTitle(value); return *this;}
67 inline Event& WithAppTitle(Aws::String&& value) { SetAppTitle(std::move(value)); return *this;}
68 inline Event& WithAppTitle(const char* value) { SetAppTitle(value); return *this;}
70
72
75 inline const Aws::String& GetAppVersionCode() const{ return m_appVersionCode; }
76 inline bool AppVersionCodeHasBeenSet() const { return m_appVersionCodeHasBeenSet; }
77 inline void SetAppVersionCode(const Aws::String& value) { m_appVersionCodeHasBeenSet = true; m_appVersionCode = value; }
78 inline void SetAppVersionCode(Aws::String&& value) { m_appVersionCodeHasBeenSet = true; m_appVersionCode = std::move(value); }
79 inline void SetAppVersionCode(const char* value) { m_appVersionCodeHasBeenSet = true; m_appVersionCode.assign(value); }
80 inline Event& WithAppVersionCode(const Aws::String& value) { SetAppVersionCode(value); return *this;}
81 inline Event& WithAppVersionCode(Aws::String&& value) { SetAppVersionCode(std::move(value)); return *this;}
82 inline Event& WithAppVersionCode(const char* value) { SetAppVersionCode(value); return *this;}
84
86
89 inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const{ return m_attributes; }
90 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
91 inline void SetAttributes(const Aws::Map<Aws::String, Aws::String>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
92 inline void SetAttributes(Aws::Map<Aws::String, Aws::String>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
93 inline Event& WithAttributes(const Aws::Map<Aws::String, Aws::String>& value) { SetAttributes(value); return *this;}
94 inline Event& WithAttributes(Aws::Map<Aws::String, Aws::String>&& value) { SetAttributes(std::move(value)); return *this;}
95 inline Event& AddAttributes(const Aws::String& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
96 inline Event& AddAttributes(Aws::String&& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
97 inline Event& AddAttributes(const Aws::String& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
98 inline Event& AddAttributes(Aws::String&& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), std::move(value)); return *this; }
99 inline Event& AddAttributes(const char* key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
100 inline Event& AddAttributes(Aws::String&& key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
101 inline Event& AddAttributes(const char* key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
103
105
108 inline const Aws::String& GetClientSdkVersion() const{ return m_clientSdkVersion; }
109 inline bool ClientSdkVersionHasBeenSet() const { return m_clientSdkVersionHasBeenSet; }
110 inline void SetClientSdkVersion(const Aws::String& value) { m_clientSdkVersionHasBeenSet = true; m_clientSdkVersion = value; }
111 inline void SetClientSdkVersion(Aws::String&& value) { m_clientSdkVersionHasBeenSet = true; m_clientSdkVersion = std::move(value); }
112 inline void SetClientSdkVersion(const char* value) { m_clientSdkVersionHasBeenSet = true; m_clientSdkVersion.assign(value); }
113 inline Event& WithClientSdkVersion(const Aws::String& value) { SetClientSdkVersion(value); return *this;}
114 inline Event& WithClientSdkVersion(Aws::String&& value) { SetClientSdkVersion(std::move(value)); return *this;}
115 inline Event& WithClientSdkVersion(const char* value) { SetClientSdkVersion(value); return *this;}
117
119
122 inline const Aws::String& GetEventType() const{ return m_eventType; }
123 inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; }
124 inline void SetEventType(const Aws::String& value) { m_eventTypeHasBeenSet = true; m_eventType = value; }
125 inline void SetEventType(Aws::String&& value) { m_eventTypeHasBeenSet = true; m_eventType = std::move(value); }
126 inline void SetEventType(const char* value) { m_eventTypeHasBeenSet = true; m_eventType.assign(value); }
127 inline Event& WithEventType(const Aws::String& value) { SetEventType(value); return *this;}
128 inline Event& WithEventType(Aws::String&& value) { SetEventType(std::move(value)); return *this;}
129 inline Event& WithEventType(const char* value) { SetEventType(value); return *this;}
131
133
136 inline const Aws::Map<Aws::String, double>& GetMetrics() const{ return m_metrics; }
137 inline bool MetricsHasBeenSet() const { return m_metricsHasBeenSet; }
138 inline void SetMetrics(const Aws::Map<Aws::String, double>& value) { m_metricsHasBeenSet = true; m_metrics = value; }
139 inline void SetMetrics(Aws::Map<Aws::String, double>&& value) { m_metricsHasBeenSet = true; m_metrics = std::move(value); }
140 inline Event& WithMetrics(const Aws::Map<Aws::String, double>& value) { SetMetrics(value); return *this;}
141 inline Event& WithMetrics(Aws::Map<Aws::String, double>&& value) { SetMetrics(std::move(value)); return *this;}
142 inline Event& AddMetrics(const Aws::String& key, double value) { m_metricsHasBeenSet = true; m_metrics.emplace(key, value); return *this; }
143 inline Event& AddMetrics(Aws::String&& key, double value) { m_metricsHasBeenSet = true; m_metrics.emplace(std::move(key), value); return *this; }
144 inline Event& AddMetrics(const char* key, double value) { m_metricsHasBeenSet = true; m_metrics.emplace(key, value); return *this; }
146
148
151 inline const Aws::String& GetSdkName() const{ return m_sdkName; }
152 inline bool SdkNameHasBeenSet() const { return m_sdkNameHasBeenSet; }
153 inline void SetSdkName(const Aws::String& value) { m_sdkNameHasBeenSet = true; m_sdkName = value; }
154 inline void SetSdkName(Aws::String&& value) { m_sdkNameHasBeenSet = true; m_sdkName = std::move(value); }
155 inline void SetSdkName(const char* value) { m_sdkNameHasBeenSet = true; m_sdkName.assign(value); }
156 inline Event& WithSdkName(const Aws::String& value) { SetSdkName(value); return *this;}
157 inline Event& WithSdkName(Aws::String&& value) { SetSdkName(std::move(value)); return *this;}
158 inline Event& WithSdkName(const char* value) { SetSdkName(value); return *this;}
160
162
165 inline const Session& GetSession() const{ return m_session; }
166 inline bool SessionHasBeenSet() const { return m_sessionHasBeenSet; }
167 inline void SetSession(const Session& value) { m_sessionHasBeenSet = true; m_session = value; }
168 inline void SetSession(Session&& value) { m_sessionHasBeenSet = true; m_session = std::move(value); }
169 inline Event& WithSession(const Session& value) { SetSession(value); return *this;}
170 inline Event& WithSession(Session&& value) { SetSession(std::move(value)); return *this;}
172
174
177 inline const Aws::String& GetTimestamp() const{ return m_timestamp; }
178 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
179 inline void SetTimestamp(const Aws::String& value) { m_timestampHasBeenSet = true; m_timestamp = value; }
180 inline void SetTimestamp(Aws::String&& value) { m_timestampHasBeenSet = true; m_timestamp = std::move(value); }
181 inline void SetTimestamp(const char* value) { m_timestampHasBeenSet = true; m_timestamp.assign(value); }
182 inline Event& WithTimestamp(const Aws::String& value) { SetTimestamp(value); return *this;}
183 inline Event& WithTimestamp(Aws::String&& value) { SetTimestamp(std::move(value)); return *this;}
184 inline Event& WithTimestamp(const char* value) { SetTimestamp(value); return *this;}
186 private:
187
188 Aws::String m_appPackageName;
189 bool m_appPackageNameHasBeenSet = false;
190
191 Aws::String m_appTitle;
192 bool m_appTitleHasBeenSet = false;
193
194 Aws::String m_appVersionCode;
195 bool m_appVersionCodeHasBeenSet = false;
196
198 bool m_attributesHasBeenSet = false;
199
200 Aws::String m_clientSdkVersion;
201 bool m_clientSdkVersionHasBeenSet = false;
202
203 Aws::String m_eventType;
204 bool m_eventTypeHasBeenSet = false;
205
207 bool m_metricsHasBeenSet = false;
208
209 Aws::String m_sdkName;
210 bool m_sdkNameHasBeenSet = false;
211
212 Session m_session;
213 bool m_sessionHasBeenSet = false;
214
215 Aws::String m_timestamp;
216 bool m_timestampHasBeenSet = false;
217 };
218
219} // namespace Model
220} // namespace Pinpoint
221} // namespace Aws
Event & AddAttributes(Aws::String &&key, const char *value)
Definition Event.h:100
Event & AddAttributes(const Aws::String &key, const Aws::String &value)
Definition Event.h:95
Event & WithSdkName(const Aws::String &value)
Definition Event.h:156
AWS_PINPOINT_API Event & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetTimestamp(const char *value)
Definition Event.h:181
Event & WithAppPackageName(const char *value)
Definition Event.h:54
bool ClientSdkVersionHasBeenSet() const
Definition Event.h:109
AWS_PINPOINT_API Event()
Event & WithClientSdkVersion(const char *value)
Definition Event.h:115
Event & WithTimestamp(const char *value)
Definition Event.h:184
Event & WithAppVersionCode(Aws::String &&value)
Definition Event.h:81
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
Definition Event.h:89
const Aws::String & GetAppVersionCode() const
Definition Event.h:75
void SetAppVersionCode(const Aws::String &value)
Definition Event.h:77
void SetAppVersionCode(const char *value)
Definition Event.h:79
void SetEventType(Aws::String &&value)
Definition Event.h:125
Event & AddAttributes(Aws::String &&key, Aws::String &&value)
Definition Event.h:98
Event & WithSdkName(const char *value)
Definition Event.h:158
Event & AddAttributes(const char *key, const char *value)
Definition Event.h:101
Event & AddAttributes(const char *key, Aws::String &&value)
Definition Event.h:99
void SetMetrics(Aws::Map< Aws::String, double > &&value)
Definition Event.h:139
bool AppTitleHasBeenSet() const
Definition Event.h:62
void SetClientSdkVersion(const char *value)
Definition Event.h:112
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetAppTitle() const
Definition Event.h:61
bool SessionHasBeenSet() const
Definition Event.h:166
Event & WithSession(Session &&value)
Definition Event.h:170
Event & WithAppPackageName(const Aws::String &value)
Definition Event.h:52
Event & WithTimestamp(Aws::String &&value)
Definition Event.h:183
void SetAppPackageName(const Aws::String &value)
Definition Event.h:49
void SetAttributes(const Aws::Map< Aws::String, Aws::String > &value)
Definition Event.h:91
Event & AddMetrics(const char *key, double value)
Definition Event.h:144
Event & WithAppVersionCode(const Aws::String &value)
Definition Event.h:80
void SetAppTitle(const Aws::String &value)
Definition Event.h:63
void SetAppTitle(Aws::String &&value)
Definition Event.h:64
void SetTimestamp(Aws::String &&value)
Definition Event.h:180
void SetAppVersionCode(Aws::String &&value)
Definition Event.h:78
Event & WithClientSdkVersion(Aws::String &&value)
Definition Event.h:114
void SetAppPackageName(Aws::String &&value)
Definition Event.h:50
void SetAppTitle(const char *value)
Definition Event.h:65
void SetTimestamp(const Aws::String &value)
Definition Event.h:179
const Aws::String & GetTimestamp() const
Definition Event.h:177
const Aws::String & GetClientSdkVersion() const
Definition Event.h:108
Event & AddMetrics(const Aws::String &key, double value)
Definition Event.h:142
Event & WithAttributes(Aws::Map< Aws::String, Aws::String > &&value)
Definition Event.h:94
Event & WithAppVersionCode(const char *value)
Definition Event.h:82
Event & WithEventType(const char *value)
Definition Event.h:129
void SetMetrics(const Aws::Map< Aws::String, double > &value)
Definition Event.h:138
bool MetricsHasBeenSet() const
Definition Event.h:137
void SetClientSdkVersion(const Aws::String &value)
Definition Event.h:110
Event & AddAttributes(const Aws::String &key, Aws::String &&value)
Definition Event.h:97
Event & WithAttributes(const Aws::Map< Aws::String, Aws::String > &value)
Definition Event.h:93
void SetSdkName(Aws::String &&value)
Definition Event.h:154
const Aws::String & GetSdkName() const
Definition Event.h:151
Event & WithClientSdkVersion(const Aws::String &value)
Definition Event.h:113
bool AppPackageNameHasBeenSet() const
Definition Event.h:48
void SetSdkName(const Aws::String &value)
Definition Event.h:153
AWS_PINPOINT_API Event(Aws::Utils::Json::JsonView jsonValue)
Event & WithEventType(const Aws::String &value)
Definition Event.h:127
void SetEventType(const Aws::String &value)
Definition Event.h:124
Event & WithAppTitle(const char *value)
Definition Event.h:68
Event & WithAppPackageName(Aws::String &&value)
Definition Event.h:53
Event & AddMetrics(Aws::String &&key, double value)
Definition Event.h:143
const Aws::String & GetAppPackageName() const
Definition Event.h:47
bool SdkNameHasBeenSet() const
Definition Event.h:152
bool TimestampHasBeenSet() const
Definition Event.h:178
Event & WithSession(const Session &value)
Definition Event.h:169
void SetSession(Session &&value)
Definition Event.h:168
bool AttributesHasBeenSet() const
Definition Event.h:90
void SetSession(const Session &value)
Definition Event.h:167
Event & WithSdkName(Aws::String &&value)
Definition Event.h:157
bool EventTypeHasBeenSet() const
Definition Event.h:123
const Aws::Map< Aws::String, double > & GetMetrics() const
Definition Event.h:136
Event & WithTimestamp(const Aws::String &value)
Definition Event.h:182
Event & WithMetrics(const Aws::Map< Aws::String, double > &value)
Definition Event.h:140
Event & WithMetrics(Aws::Map< Aws::String, double > &&value)
Definition Event.h:141
Event & WithEventType(Aws::String &&value)
Definition Event.h:128
const Aws::String & GetEventType() const
Definition Event.h:122
void SetEventType(const char *value)
Definition Event.h:126
Event & AddAttributes(Aws::String &&key, const Aws::String &value)
Definition Event.h:96
bool AppVersionCodeHasBeenSet() const
Definition Event.h:76
void SetSdkName(const char *value)
Definition Event.h:155
void SetAppPackageName(const char *value)
Definition Event.h:51
void SetClientSdkVersion(Aws::String &&value)
Definition Event.h:111
const Session & GetSession() const
Definition Event.h:165
Event & WithAppTitle(Aws::String &&value)
Definition Event.h:67
Event & WithAppTitle(const Aws::String &value)
Definition Event.h:66
void SetAttributes(Aws::Map< Aws::String, Aws::String > &&value)
Definition Event.h:92
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