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/gamelift/GameLift_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/gamelift/model/EventCode.h>
10#include <aws/core/utils/DateTime.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 GameLift
24{
25namespace Model
26{
27
36 class Event
37 {
38 public:
39 AWS_GAMELIFT_API Event();
40 AWS_GAMELIFT_API Event(Aws::Utils::Json::JsonView jsonValue);
41 AWS_GAMELIFT_API Event& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetEventId() const{ return m_eventId; }
50 inline bool EventIdHasBeenSet() const { return m_eventIdHasBeenSet; }
51 inline void SetEventId(const Aws::String& value) { m_eventIdHasBeenSet = true; m_eventId = value; }
52 inline void SetEventId(Aws::String&& value) { m_eventIdHasBeenSet = true; m_eventId = std::move(value); }
53 inline void SetEventId(const char* value) { m_eventIdHasBeenSet = true; m_eventId.assign(value); }
54 inline Event& WithEventId(const Aws::String& value) { SetEventId(value); return *this;}
55 inline Event& WithEventId(Aws::String&& value) { SetEventId(std::move(value)); return *this;}
56 inline Event& WithEventId(const char* value) { SetEventId(value); return *this;}
58
60
63 inline const Aws::String& GetResourceId() const{ return m_resourceId; }
64 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
65 inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
66 inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
67 inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
68 inline Event& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
69 inline Event& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
70 inline Event& WithResourceId(const char* value) { SetResourceId(value); return *this;}
72
74
192 inline const EventCode& GetEventCode() const{ return m_eventCode; }
193 inline bool EventCodeHasBeenSet() const { return m_eventCodeHasBeenSet; }
194 inline void SetEventCode(const EventCode& value) { m_eventCodeHasBeenSet = true; m_eventCode = value; }
195 inline void SetEventCode(EventCode&& value) { m_eventCodeHasBeenSet = true; m_eventCode = std::move(value); }
196 inline Event& WithEventCode(const EventCode& value) { SetEventCode(value); return *this;}
197 inline Event& WithEventCode(EventCode&& value) { SetEventCode(std::move(value)); return *this;}
199
201
204 inline const Aws::String& GetMessage() const{ return m_message; }
205 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
206 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
207 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
208 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
209 inline Event& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
210 inline Event& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
211 inline Event& WithMessage(const char* value) { SetMessage(value); return *this;}
213
215
219 inline const Aws::Utils::DateTime& GetEventTime() const{ return m_eventTime; }
220 inline bool EventTimeHasBeenSet() const { return m_eventTimeHasBeenSet; }
221 inline void SetEventTime(const Aws::Utils::DateTime& value) { m_eventTimeHasBeenSet = true; m_eventTime = value; }
222 inline void SetEventTime(Aws::Utils::DateTime&& value) { m_eventTimeHasBeenSet = true; m_eventTime = std::move(value); }
223 inline Event& WithEventTime(const Aws::Utils::DateTime& value) { SetEventTime(value); return *this;}
224 inline Event& WithEventTime(Aws::Utils::DateTime&& value) { SetEventTime(std::move(value)); return *this;}
226
228
233 inline const Aws::String& GetPreSignedLogUrl() const{ return m_preSignedLogUrl; }
234 inline bool PreSignedLogUrlHasBeenSet() const { return m_preSignedLogUrlHasBeenSet; }
235 inline void SetPreSignedLogUrl(const Aws::String& value) { m_preSignedLogUrlHasBeenSet = true; m_preSignedLogUrl = value; }
236 inline void SetPreSignedLogUrl(Aws::String&& value) { m_preSignedLogUrlHasBeenSet = true; m_preSignedLogUrl = std::move(value); }
237 inline void SetPreSignedLogUrl(const char* value) { m_preSignedLogUrlHasBeenSet = true; m_preSignedLogUrl.assign(value); }
238 inline Event& WithPreSignedLogUrl(const Aws::String& value) { SetPreSignedLogUrl(value); return *this;}
239 inline Event& WithPreSignedLogUrl(Aws::String&& value) { SetPreSignedLogUrl(std::move(value)); return *this;}
240 inline Event& WithPreSignedLogUrl(const char* value) { SetPreSignedLogUrl(value); return *this;}
242
244
247 inline long long GetCount() const{ return m_count; }
248 inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
249 inline void SetCount(long long value) { m_countHasBeenSet = true; m_count = value; }
250 inline Event& WithCount(long long value) { SetCount(value); return *this;}
252 private:
253
254 Aws::String m_eventId;
255 bool m_eventIdHasBeenSet = false;
256
257 Aws::String m_resourceId;
258 bool m_resourceIdHasBeenSet = false;
259
260 EventCode m_eventCode;
261 bool m_eventCodeHasBeenSet = false;
262
263 Aws::String m_message;
264 bool m_messageHasBeenSet = false;
265
266 Aws::Utils::DateTime m_eventTime;
267 bool m_eventTimeHasBeenSet = false;
268
269 Aws::String m_preSignedLogUrl;
270 bool m_preSignedLogUrlHasBeenSet = false;
271
272 long long m_count;
273 bool m_countHasBeenSet = false;
274 };
275
276} // namespace Model
277} // namespace GameLift
278} // namespace Aws
const Aws::Utils::DateTime & GetEventTime() const
Definition Event.h:219
bool EventTimeHasBeenSet() const
Definition Event.h:220
bool EventCodeHasBeenSet() const
Definition Event.h:193
Event & WithResourceId(const char *value)
Definition Event.h:70
bool CountHasBeenSet() const
Definition Event.h:248
void SetMessage(const char *value)
Definition Event.h:208
void SetPreSignedLogUrl(const char *value)
Definition Event.h:237
Event & WithEventCode(const EventCode &value)
Definition Event.h:196
Event & WithMessage(const char *value)
Definition Event.h:211
void SetMessage(Aws::String &&value)
Definition Event.h:207
const Aws::String & GetMessage() const
Definition Event.h:204
bool EventIdHasBeenSet() const
Definition Event.h:50
void SetPreSignedLogUrl(const Aws::String &value)
Definition Event.h:235
bool PreSignedLogUrlHasBeenSet() const
Definition Event.h:234
AWS_GAMELIFT_API Event()
Event & WithResourceId(const Aws::String &value)
Definition Event.h:68
Event & WithEventTime(const Aws::Utils::DateTime &value)
Definition Event.h:223
Event & WithPreSignedLogUrl(Aws::String &&value)
Definition Event.h:239
AWS_GAMELIFT_API Event & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetMessage(const Aws::String &value)
Definition Event.h:206
bool MessageHasBeenSet() const
Definition Event.h:205
Event & WithMessage(Aws::String &&value)
Definition Event.h:210
const EventCode & GetEventCode() const
Definition Event.h:192
void SetResourceId(Aws::String &&value)
Definition Event.h:66
Event & WithEventTime(Aws::Utils::DateTime &&value)
Definition Event.h:224
void SetEventTime(const Aws::Utils::DateTime &value)
Definition Event.h:221
Event & WithEventCode(EventCode &&value)
Definition Event.h:197
void SetEventTime(Aws::Utils::DateTime &&value)
Definition Event.h:222
Event & WithPreSignedLogUrl(const char *value)
Definition Event.h:240
void SetEventCode(EventCode &&value)
Definition Event.h:195
Event & WithMessage(const Aws::String &value)
Definition Event.h:209
AWS_GAMELIFT_API Event(Aws::Utils::Json::JsonView jsonValue)
Event & WithEventId(Aws::String &&value)
Definition Event.h:55
AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetEventId(Aws::String &&value)
Definition Event.h:52
Event & WithPreSignedLogUrl(const Aws::String &value)
Definition Event.h:238
const Aws::String & GetPreSignedLogUrl() const
Definition Event.h:233
void SetCount(long long value)
Definition Event.h:249
Event & WithResourceId(Aws::String &&value)
Definition Event.h:69
Event & WithEventId(const char *value)
Definition Event.h:56
bool ResourceIdHasBeenSet() const
Definition Event.h:64
const Aws::String & GetEventId() const
Definition Event.h:49
void SetResourceId(const Aws::String &value)
Definition Event.h:65
void SetResourceId(const char *value)
Definition Event.h:67
void SetPreSignedLogUrl(Aws::String &&value)
Definition Event.h:236
const Aws::String & GetResourceId() const
Definition Event.h:63
Event & WithEventId(const Aws::String &value)
Definition Event.h:54
void SetEventCode(const EventCode &value)
Definition Event.h:194
void SetEventId(const Aws::String &value)
Definition Event.h:51
long long GetCount() const
Definition Event.h:247
void SetEventId(const char *value)
Definition Event.h:53
Event & WithCount(long long value)
Definition Event.h:250
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue