AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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() = default;
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 template<typename EventIdT = Aws::String>
52 void SetEventId(EventIdT&& value) { m_eventIdHasBeenSet = true; m_eventId = std::forward<EventIdT>(value); }
53 template<typename EventIdT = Aws::String>
54 Event& WithEventId(EventIdT&& value) { SetEventId(std::forward<EventIdT>(value)); return *this;}
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) { m_resourceIdHasBeenSet = true; m_resourceId = std::forward<ResourceIdT>(value); }
65 template<typename ResourceIdT = Aws::String>
66 Event& WithResourceId(ResourceIdT&& value) { SetResourceId(std::forward<ResourceIdT>(value)); return *this;}
68
70
191 inline EventCode GetEventCode() const { return m_eventCode; }
192 inline bool EventCodeHasBeenSet() const { return m_eventCodeHasBeenSet; }
193 inline void SetEventCode(EventCode value) { m_eventCodeHasBeenSet = true; m_eventCode = value; }
194 inline Event& WithEventCode(EventCode value) { SetEventCode(value); return *this;}
196
198
201 inline const Aws::String& GetMessage() const { return m_message; }
202 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
203 template<typename MessageT = Aws::String>
204 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
205 template<typename MessageT = Aws::String>
206 Event& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
208
210
214 inline const Aws::Utils::DateTime& GetEventTime() const { return m_eventTime; }
215 inline bool EventTimeHasBeenSet() const { return m_eventTimeHasBeenSet; }
216 template<typename EventTimeT = Aws::Utils::DateTime>
217 void SetEventTime(EventTimeT&& value) { m_eventTimeHasBeenSet = true; m_eventTime = std::forward<EventTimeT>(value); }
218 template<typename EventTimeT = Aws::Utils::DateTime>
219 Event& WithEventTime(EventTimeT&& value) { SetEventTime(std::forward<EventTimeT>(value)); return *this;}
221
223
228 inline const Aws::String& GetPreSignedLogUrl() const { return m_preSignedLogUrl; }
229 inline bool PreSignedLogUrlHasBeenSet() const { return m_preSignedLogUrlHasBeenSet; }
230 template<typename PreSignedLogUrlT = Aws::String>
231 void SetPreSignedLogUrl(PreSignedLogUrlT&& value) { m_preSignedLogUrlHasBeenSet = true; m_preSignedLogUrl = std::forward<PreSignedLogUrlT>(value); }
232 template<typename PreSignedLogUrlT = Aws::String>
233 Event& WithPreSignedLogUrl(PreSignedLogUrlT&& value) { SetPreSignedLogUrl(std::forward<PreSignedLogUrlT>(value)); return *this;}
235
237
240 inline long long GetCount() const { return m_count; }
241 inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
242 inline void SetCount(long long value) { m_countHasBeenSet = true; m_count = value; }
243 inline Event& WithCount(long long value) { SetCount(value); return *this;}
245 private:
246
247 Aws::String m_eventId;
248 bool m_eventIdHasBeenSet = false;
249
250 Aws::String m_resourceId;
251 bool m_resourceIdHasBeenSet = false;
252
253 EventCode m_eventCode{EventCode::NOT_SET};
254 bool m_eventCodeHasBeenSet = false;
255
256 Aws::String m_message;
257 bool m_messageHasBeenSet = false;
258
259 Aws::Utils::DateTime m_eventTime{};
260 bool m_eventTimeHasBeenSet = false;
261
262 Aws::String m_preSignedLogUrl;
263 bool m_preSignedLogUrlHasBeenSet = false;
264
265 long long m_count{0};
266 bool m_countHasBeenSet = false;
267 };
268
269} // namespace Model
270} // namespace GameLift
271} // namespace Aws
const Aws::Utils::DateTime & GetEventTime() const
Definition Event.h:214
void SetPreSignedLogUrl(PreSignedLogUrlT &&value)
Definition Event.h:231
bool EventTimeHasBeenSet() const
Definition Event.h:215
bool EventCodeHasBeenSet() const
Definition Event.h:192
Event & WithEventTime(EventTimeT &&value)
Definition Event.h:219
bool CountHasBeenSet() const
Definition Event.h:241
const Aws::String & GetMessage() const
Definition Event.h:201
bool EventIdHasBeenSet() const
Definition Event.h:50
bool PreSignedLogUrlHasBeenSet() const
Definition Event.h:229
void SetEventTime(EventTimeT &&value)
Definition Event.h:217
AWS_GAMELIFT_API Event & operator=(Aws::Utils::Json::JsonView jsonValue)
bool MessageHasBeenSet() const
Definition Event.h:202
EventCode GetEventCode() const
Definition Event.h:191
Event & WithPreSignedLogUrl(PreSignedLogUrlT &&value)
Definition Event.h:233
void SetEventCode(EventCode value)
Definition Event.h:193
AWS_GAMELIFT_API Event(Aws::Utils::Json::JsonView jsonValue)
void SetEventId(EventIdT &&value)
Definition Event.h:52
AWS_GAMELIFT_API Event()=default
AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const
Event & WithMessage(MessageT &&value)
Definition Event.h:206
void SetResourceId(ResourceIdT &&value)
Definition Event.h:64
Event & WithResourceId(ResourceIdT &&value)
Definition Event.h:66
const Aws::String & GetPreSignedLogUrl() const
Definition Event.h:228
void SetCount(long long value)
Definition Event.h:242
Event & WithEventCode(EventCode value)
Definition Event.h:194
bool ResourceIdHasBeenSet() const
Definition Event.h:62
const Aws::String & GetEventId() const
Definition Event.h:49
Event & WithEventId(EventIdT &&value)
Definition Event.h:54
void SetMessage(MessageT &&value)
Definition Event.h:204
const Aws::String & GetResourceId() const
Definition Event.h:61
long long GetCount() const
Definition Event.h:240
Event & WithCount(long long value)
Definition Event.h:243
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue