AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
Event.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/gamelift/GameLift_EXPORTS.h>
10#include <aws/gamelift/model/EventCode.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace GameLift {
22namespace Model {
23
32class Event {
33 public:
34 AWS_GAMELIFT_API Event() = default;
35 AWS_GAMELIFT_API Event(Aws::Utils::Json::JsonView jsonValue);
36 AWS_GAMELIFT_API Event& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetEventId() const { return m_eventId; }
44 inline bool EventIdHasBeenSet() const { return m_eventIdHasBeenSet; }
45 template <typename EventIdT = Aws::String>
46 void SetEventId(EventIdT&& value) {
47 m_eventIdHasBeenSet = true;
48 m_eventId = std::forward<EventIdT>(value);
49 }
50 template <typename EventIdT = Aws::String>
51 Event& WithEventId(EventIdT&& value) {
52 SetEventId(std::forward<EventIdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetResourceId() const { return m_resourceId; }
62 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
63 template <typename ResourceIdT = Aws::String>
64 void SetResourceId(ResourceIdT&& value) {
65 m_resourceIdHasBeenSet = true;
66 m_resourceId = std::forward<ResourceIdT>(value);
67 }
68 template <typename ResourceIdT = Aws::String>
69 Event& WithResourceId(ResourceIdT&& value) {
70 SetResourceId(std::forward<ResourceIdT>(value));
71 return *this;
72 }
74
76
197 inline EventCode GetEventCode() const { return m_eventCode; }
198 inline bool EventCodeHasBeenSet() const { return m_eventCodeHasBeenSet; }
199 inline void SetEventCode(EventCode value) {
200 m_eventCodeHasBeenSet = true;
201 m_eventCode = value;
202 }
204 SetEventCode(value);
205 return *this;
206 }
208
210
213 inline const Aws::String& GetMessage() const { return m_message; }
214 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
215 template <typename MessageT = Aws::String>
216 void SetMessage(MessageT&& value) {
217 m_messageHasBeenSet = true;
218 m_message = std::forward<MessageT>(value);
219 }
220 template <typename MessageT = Aws::String>
221 Event& WithMessage(MessageT&& value) {
222 SetMessage(std::forward<MessageT>(value));
223 return *this;
224 }
226
228
232 inline const Aws::Utils::DateTime& GetEventTime() const { return m_eventTime; }
233 inline bool EventTimeHasBeenSet() const { return m_eventTimeHasBeenSet; }
234 template <typename EventTimeT = Aws::Utils::DateTime>
235 void SetEventTime(EventTimeT&& value) {
236 m_eventTimeHasBeenSet = true;
237 m_eventTime = std::forward<EventTimeT>(value);
238 }
239 template <typename EventTimeT = Aws::Utils::DateTime>
240 Event& WithEventTime(EventTimeT&& value) {
241 SetEventTime(std::forward<EventTimeT>(value));
242 return *this;
243 }
245
247
252 inline const Aws::String& GetPreSignedLogUrl() const { return m_preSignedLogUrl; }
253 inline bool PreSignedLogUrlHasBeenSet() const { return m_preSignedLogUrlHasBeenSet; }
254 template <typename PreSignedLogUrlT = Aws::String>
255 void SetPreSignedLogUrl(PreSignedLogUrlT&& value) {
256 m_preSignedLogUrlHasBeenSet = true;
257 m_preSignedLogUrl = std::forward<PreSignedLogUrlT>(value);
258 }
259 template <typename PreSignedLogUrlT = Aws::String>
260 Event& WithPreSignedLogUrl(PreSignedLogUrlT&& value) {
261 SetPreSignedLogUrl(std::forward<PreSignedLogUrlT>(value));
262 return *this;
263 }
265
267
270 inline long long GetCount() const { return m_count; }
271 inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
272 inline void SetCount(long long value) {
273 m_countHasBeenSet = true;
274 m_count = value;
275 }
276 inline Event& WithCount(long long value) {
277 SetCount(value);
278 return *this;
279 }
281 private:
282 Aws::String m_eventId;
283
284 Aws::String m_resourceId;
285
286 EventCode m_eventCode{EventCode::NOT_SET};
287
288 Aws::String m_message;
289
290 Aws::Utils::DateTime m_eventTime{};
291
292 Aws::String m_preSignedLogUrl;
293
294 long long m_count{0};
295 bool m_eventIdHasBeenSet = false;
296 bool m_resourceIdHasBeenSet = false;
297 bool m_eventCodeHasBeenSet = false;
298 bool m_messageHasBeenSet = false;
299 bool m_eventTimeHasBeenSet = false;
300 bool m_preSignedLogUrlHasBeenSet = false;
301 bool m_countHasBeenSet = false;
302};
303
304} // namespace Model
305} // namespace GameLift
306} // namespace Aws
const Aws::Utils::DateTime & GetEventTime() const
Definition Event.h:232
void SetPreSignedLogUrl(PreSignedLogUrlT &&value)
Definition Event.h:255
bool EventTimeHasBeenSet() const
Definition Event.h:233
bool EventCodeHasBeenSet() const
Definition Event.h:198
Event & WithEventTime(EventTimeT &&value)
Definition Event.h:240
bool CountHasBeenSet() const
Definition Event.h:271
const Aws::String & GetMessage() const
Definition Event.h:213
bool EventIdHasBeenSet() const
Definition Event.h:44
bool PreSignedLogUrlHasBeenSet() const
Definition Event.h:253
void SetEventTime(EventTimeT &&value)
Definition Event.h:235
AWS_GAMELIFT_API Event & operator=(Aws::Utils::Json::JsonView jsonValue)
bool MessageHasBeenSet() const
Definition Event.h:214
EventCode GetEventCode() const
Definition Event.h:197
Event & WithPreSignedLogUrl(PreSignedLogUrlT &&value)
Definition Event.h:260
void SetEventCode(EventCode value)
Definition Event.h:199
AWS_GAMELIFT_API Event(Aws::Utils::Json::JsonView jsonValue)
void SetEventId(EventIdT &&value)
Definition Event.h:46
AWS_GAMELIFT_API Event()=default
AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const
Event & WithMessage(MessageT &&value)
Definition Event.h:221
void SetResourceId(ResourceIdT &&value)
Definition Event.h:64
Event & WithResourceId(ResourceIdT &&value)
Definition Event.h:69
const Aws::String & GetPreSignedLogUrl() const
Definition Event.h:252
void SetCount(long long value)
Definition Event.h:272
Event & WithEventCode(EventCode value)
Definition Event.h:203
bool ResourceIdHasBeenSet() const
Definition Event.h:62
const Aws::String & GetEventId() const
Definition Event.h:43
Event & WithEventId(EventIdT &&value)
Definition Event.h:51
void SetMessage(MessageT &&value)
Definition Event.h:216
const Aws::String & GetResourceId() const
Definition Event.h:61
long long GetCount() const
Definition Event.h:270
Event & WithCount(long long value)
Definition Event.h:276
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue