AWS SDK for C++

AWS SDK for C++ Version 1.11.851

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/crt/cbor/Cbor.h>
10#include <aws/gamelift/GameLift_EXPORTS.h>
11#include <aws/gamelift/model/EventCode.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Cbor {
18class CborValue;
19} // namespace Cbor
20} // namespace Utils
21namespace GameLift {
22namespace Model {
23
32class Event {
33 public:
34 AWS_GAMELIFT_API Event() = default;
35 AWS_GAMELIFT_API Event(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
36 AWS_GAMELIFT_API Event& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
37 AWS_GAMELIFT_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) 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
199 inline EventCode GetEventCode() const { return m_eventCode; }
200 inline bool EventCodeHasBeenSet() const { return m_eventCodeHasBeenSet; }
201 inline void SetEventCode(EventCode value) {
202 m_eventCodeHasBeenSet = true;
203 m_eventCode = value;
204 }
206 SetEventCode(value);
207 return *this;
208 }
210
212
215 inline const Aws::String& GetMessage() const { return m_message; }
216 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
217 template <typename MessageT = Aws::String>
218 void SetMessage(MessageT&& value) {
219 m_messageHasBeenSet = true;
220 m_message = std::forward<MessageT>(value);
221 }
222 template <typename MessageT = Aws::String>
223 Event& WithMessage(MessageT&& value) {
224 SetMessage(std::forward<MessageT>(value));
225 return *this;
226 }
228
230
234 inline const Aws::Utils::DateTime& GetEventTime() const { return m_eventTime; }
235 inline bool EventTimeHasBeenSet() const { return m_eventTimeHasBeenSet; }
236 template <typename EventTimeT = Aws::Utils::DateTime>
237 void SetEventTime(EventTimeT&& value) {
238 m_eventTimeHasBeenSet = true;
239 m_eventTime = std::forward<EventTimeT>(value);
240 }
241 template <typename EventTimeT = Aws::Utils::DateTime>
242 Event& WithEventTime(EventTimeT&& value) {
243 SetEventTime(std::forward<EventTimeT>(value));
244 return *this;
245 }
247
249
254 inline const Aws::String& GetPreSignedLogUrl() const { return m_preSignedLogUrl; }
255 inline bool PreSignedLogUrlHasBeenSet() const { return m_preSignedLogUrlHasBeenSet; }
256 template <typename PreSignedLogUrlT = Aws::String>
257 void SetPreSignedLogUrl(PreSignedLogUrlT&& value) {
258 m_preSignedLogUrlHasBeenSet = true;
259 m_preSignedLogUrl = std::forward<PreSignedLogUrlT>(value);
260 }
261 template <typename PreSignedLogUrlT = Aws::String>
262 Event& WithPreSignedLogUrl(PreSignedLogUrlT&& value) {
263 SetPreSignedLogUrl(std::forward<PreSignedLogUrlT>(value));
264 return *this;
265 }
267
269
272 inline long long GetCount() const { return m_count; }
273 inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
274 inline void SetCount(long long value) {
275 m_countHasBeenSet = true;
276 m_count = value;
277 }
278 inline Event& WithCount(long long value) {
279 SetCount(value);
280 return *this;
281 }
283 private:
284 Aws::String m_eventId;
285
286 Aws::String m_resourceId;
287
288 EventCode m_eventCode{EventCode::NOT_SET};
289
290 Aws::String m_message;
291
292 Aws::Utils::DateTime m_eventTime{};
293
294 Aws::String m_preSignedLogUrl;
295
296 long long m_count{0};
297 bool m_eventIdHasBeenSet = false;
298 bool m_resourceIdHasBeenSet = false;
299 bool m_eventCodeHasBeenSet = false;
300 bool m_messageHasBeenSet = false;
301 bool m_eventTimeHasBeenSet = false;
302 bool m_preSignedLogUrlHasBeenSet = false;
303 bool m_countHasBeenSet = false;
304};
305
306} // namespace Model
307} // namespace GameLift
308} // namespace Aws
AWS_GAMELIFT_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
const Aws::Utils::DateTime & GetEventTime() const
Definition Event.h:234
void SetPreSignedLogUrl(PreSignedLogUrlT &&value)
Definition Event.h:257
bool EventTimeHasBeenSet() const
Definition Event.h:235
bool EventCodeHasBeenSet() const
Definition Event.h:200
Event & WithEventTime(EventTimeT &&value)
Definition Event.h:242
bool CountHasBeenSet() const
Definition Event.h:273
const Aws::String & GetMessage() const
Definition Event.h:215
bool EventIdHasBeenSet() const
Definition Event.h:44
bool PreSignedLogUrlHasBeenSet() const
Definition Event.h:255
void SetEventTime(EventTimeT &&value)
Definition Event.h:237
bool MessageHasBeenSet() const
Definition Event.h:216
EventCode GetEventCode() const
Definition Event.h:199
Event & WithPreSignedLogUrl(PreSignedLogUrlT &&value)
Definition Event.h:262
AWS_GAMELIFT_API Event & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
void SetEventCode(EventCode value)
Definition Event.h:201
void SetEventId(EventIdT &&value)
Definition Event.h:46
AWS_GAMELIFT_API Event()=default
Event & WithMessage(MessageT &&value)
Definition Event.h:223
void SetResourceId(ResourceIdT &&value)
Definition Event.h:64
Event & WithResourceId(ResourceIdT &&value)
Definition Event.h:69
const Aws::String & GetPreSignedLogUrl() const
Definition Event.h:254
void SetCount(long long value)
Definition Event.h:274
Event & WithEventCode(EventCode value)
Definition Event.h:205
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:218
const Aws::String & GetResourceId() const
Definition Event.h:61
AWS_GAMELIFT_API Event(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
long long GetCount() const
Definition Event.h:272
Event & WithCount(long long value)
Definition Event.h:278
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String