AWS SDK for C++  1.9.108
AWS SDK for C++
Event.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace GameLift
24 {
25 namespace Model
26 {
27 
38  {
39  public:
40  Event();
44 
45 
49  inline const Aws::String& GetEventId() const{ return m_eventId; }
50 
54  inline bool EventIdHasBeenSet() const { return m_eventIdHasBeenSet; }
55 
59  inline void SetEventId(const Aws::String& value) { m_eventIdHasBeenSet = true; m_eventId = value; }
60 
64  inline void SetEventId(Aws::String&& value) { m_eventIdHasBeenSet = true; m_eventId = std::move(value); }
65 
69  inline void SetEventId(const char* value) { m_eventIdHasBeenSet = true; m_eventId.assign(value); }
70 
74  inline Event& WithEventId(const Aws::String& value) { SetEventId(value); return *this;}
75 
79  inline Event& WithEventId(Aws::String&& value) { SetEventId(std::move(value)); return *this;}
80 
84  inline Event& WithEventId(const char* value) { SetEventId(value); return *this;}
85 
86 
90  inline const Aws::String& GetResourceId() const{ return m_resourceId; }
91 
95  inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
96 
100  inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
101 
105  inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
106 
110  inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
111 
115  inline Event& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
116 
120  inline Event& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
121 
125  inline Event& WithResourceId(const char* value) { SetResourceId(value); return *this;}
126 
127 
197  inline const EventCode& GetEventCode() const{ return m_eventCode; }
198 
268  inline bool EventCodeHasBeenSet() const { return m_eventCodeHasBeenSet; }
269 
339  inline void SetEventCode(const EventCode& value) { m_eventCodeHasBeenSet = true; m_eventCode = value; }
340 
410  inline void SetEventCode(EventCode&& value) { m_eventCodeHasBeenSet = true; m_eventCode = std::move(value); }
411 
481  inline Event& WithEventCode(const EventCode& value) { SetEventCode(value); return *this;}
482 
552  inline Event& WithEventCode(EventCode&& value) { SetEventCode(std::move(value)); return *this;}
553 
554 
558  inline const Aws::String& GetMessage() const{ return m_message; }
559 
563  inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
564 
568  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
569 
573  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
574 
578  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
579 
583  inline Event& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
584 
588  inline Event& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
589 
593  inline Event& WithMessage(const char* value) { SetMessage(value); return *this;}
594 
595 
600  inline const Aws::Utils::DateTime& GetEventTime() const{ return m_eventTime; }
601 
606  inline bool EventTimeHasBeenSet() const { return m_eventTimeHasBeenSet; }
607 
612  inline void SetEventTime(const Aws::Utils::DateTime& value) { m_eventTimeHasBeenSet = true; m_eventTime = value; }
613 
618  inline void SetEventTime(Aws::Utils::DateTime&& value) { m_eventTimeHasBeenSet = true; m_eventTime = std::move(value); }
619 
624  inline Event& WithEventTime(const Aws::Utils::DateTime& value) { SetEventTime(value); return *this;}
625 
630  inline Event& WithEventTime(Aws::Utils::DateTime&& value) { SetEventTime(std::move(value)); return *this;}
631 
632 
638  inline const Aws::String& GetPreSignedLogUrl() const{ return m_preSignedLogUrl; }
639 
645  inline bool PreSignedLogUrlHasBeenSet() const { return m_preSignedLogUrlHasBeenSet; }
646 
652  inline void SetPreSignedLogUrl(const Aws::String& value) { m_preSignedLogUrlHasBeenSet = true; m_preSignedLogUrl = value; }
653 
659  inline void SetPreSignedLogUrl(Aws::String&& value) { m_preSignedLogUrlHasBeenSet = true; m_preSignedLogUrl = std::move(value); }
660 
666  inline void SetPreSignedLogUrl(const char* value) { m_preSignedLogUrlHasBeenSet = true; m_preSignedLogUrl.assign(value); }
667 
673  inline Event& WithPreSignedLogUrl(const Aws::String& value) { SetPreSignedLogUrl(value); return *this;}
674 
680  inline Event& WithPreSignedLogUrl(Aws::String&& value) { SetPreSignedLogUrl(std::move(value)); return *this;}
681 
687  inline Event& WithPreSignedLogUrl(const char* value) { SetPreSignedLogUrl(value); return *this;}
688 
689  private:
690 
691  Aws::String m_eventId;
692  bool m_eventIdHasBeenSet;
693 
694  Aws::String m_resourceId;
695  bool m_resourceIdHasBeenSet;
696 
697  EventCode m_eventCode;
698  bool m_eventCodeHasBeenSet;
699 
700  Aws::String m_message;
701  bool m_messageHasBeenSet;
702 
703  Aws::Utils::DateTime m_eventTime;
704  bool m_eventTimeHasBeenSet;
705 
706  Aws::String m_preSignedLogUrl;
707  bool m_preSignedLogUrlHasBeenSet;
708  };
709 
710 } // namespace Model
711 } // namespace GameLift
712 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::GameLift::Model::Event::WithEventCode
Event & WithEventCode(EventCode &&value)
Definition: Event.h:552
Aws::GameLift::Model::Event::GetEventTime
const Aws::Utils::DateTime & GetEventTime() const
Definition: Event.h:600
Aws::GameLift::Model::Event::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: Event.h:563
EventCode.h
Aws::GameLift::Model::Event::WithPreSignedLogUrl
Event & WithPreSignedLogUrl(const char *value)
Definition: Event.h:687
DateTime.h
AWS_GAMELIFT_API
#define AWS_GAMELIFT_API
Definition: GameLift_EXPORTS.h:28
Aws::GameLift::Model::Event::EventCodeHasBeenSet
bool EventCodeHasBeenSet() const
Definition: Event.h:268
Aws::GameLift::Model::Event::WithResourceId
Event & WithResourceId(const char *value)
Definition: Event.h:125
Aws::GameLift::Model::Event::SetEventId
void SetEventId(const Aws::String &value)
Definition: Event.h:59
Aws::GameLift::Model::Event::WithEventId
Event & WithEventId(const Aws::String &value)
Definition: Event.h:74
Aws::GameLift::Model::Event::PreSignedLogUrlHasBeenSet
bool PreSignedLogUrlHasBeenSet() const
Definition: Event.h:645
Aws::GameLift::Model::Event::SetPreSignedLogUrl
void SetPreSignedLogUrl(const char *value)
Definition: Event.h:666
Aws::GameLift::Model::Event::EventIdHasBeenSet
bool EventIdHasBeenSet() const
Definition: Event.h:54
Aws::GameLift::Model::Event::SetPreSignedLogUrl
void SetPreSignedLogUrl(Aws::String &&value)
Definition: Event.h:659
Aws::GameLift::Model::Event::SetPreSignedLogUrl
void SetPreSignedLogUrl(const Aws::String &value)
Definition: Event.h:652
Aws::GameLift::Model::Event::WithPreSignedLogUrl
Event & WithPreSignedLogUrl(const Aws::String &value)
Definition: Event.h:673
Aws::GameLift::Model::Event::SetEventId
void SetEventId(Aws::String &&value)
Definition: Event.h:64
Aws::GameLift::Model::Event::SetMessage
void SetMessage(const char *value)
Definition: Event.h:578
Aws::GameLift::Model::Event::GetEventId
const Aws::String & GetEventId() const
Definition: Event.h:49
GameLift_EXPORTS.h
Aws::GameLift::Model::Event::WithResourceId
Event & WithResourceId(Aws::String &&value)
Definition: Event.h:120
Aws::GameLift::Model::Event::SetEventId
void SetEventId(const char *value)
Definition: Event.h:69
Aws::GameLift::Model::Event::WithPreSignedLogUrl
Event & WithPreSignedLogUrl(Aws::String &&value)
Definition: Event.h:680
Aws::GameLift::Model::Event::SetEventCode
void SetEventCode(EventCode &&value)
Definition: Event.h:410
Aws::GameLift::Model::Event::GetResourceId
const Aws::String & GetResourceId() const
Definition: Event.h:90
Aws::GameLift::Model::Event::operator=
Event & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::GameLift::Model::Event::WithEventTime
Event & WithEventTime(const Aws::Utils::DateTime &value)
Definition: Event.h:624
Aws::GameLift::Model::Event::SetEventTime
void SetEventTime(Aws::Utils::DateTime &&value)
Definition: Event.h:618
Aws::GameLift::Model::Event::SetResourceId
void SetResourceId(const Aws::String &value)
Definition: Event.h:100
Aws::GameLift::Model::Event::Event
Event(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::GameLift::Model::Event::SetMessage
void SetMessage(const Aws::String &value)
Definition: Event.h:568
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::GameLift::Model::Event::GetPreSignedLogUrl
const Aws::String & GetPreSignedLogUrl() const
Definition: Event.h:638
Aws::GameLift::Model::Event::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::GameLift::Model::Event::SetEventTime
void SetEventTime(const Aws::Utils::DateTime &value)
Definition: Event.h:612
Aws::GameLift::Model::Event
Definition: Event.h:38
Aws::GameLift::Model::Event::WithMessage
Event & WithMessage(const char *value)
Definition: Event.h:593
Aws
Definition: AccessManagementClient.h:15
Aws::GameLift::Model::Event::WithEventId
Event & WithEventId(const char *value)
Definition: Event.h:84
Aws::GameLift::Model::EventCode
EventCode
Definition: EventCode.h:17
Aws::GameLift::Model::Event::SetEventCode
void SetEventCode(const EventCode &value)
Definition: Event.h:339
Aws::GameLift::Model::Event::WithResourceId
Event & WithResourceId(const Aws::String &value)
Definition: Event.h:115
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GameLift::Model::Event::SetMessage
void SetMessage(Aws::String &&value)
Definition: Event.h:573
Aws::GameLift::Model::Event::WithMessage
Event & WithMessage(const Aws::String &value)
Definition: Event.h:583
Aws::GameLift::Model::Event::WithEventCode
Event & WithEventCode(const EventCode &value)
Definition: Event.h:481
Aws::GameLift::Model::Event::Event
Event()
Aws::GameLift::Model::Event::EventTimeHasBeenSet
bool EventTimeHasBeenSet() const
Definition: Event.h:606
Aws::GameLift::Model::Event::WithEventId
Event & WithEventId(Aws::String &&value)
Definition: Event.h:79
Aws::GameLift::Model::Event::GetMessage
const Aws::String & GetMessage() const
Definition: Event.h:558
Aws::GameLift::Model::Event::WithMessage
Event & WithMessage(Aws::String &&value)
Definition: Event.h:588
Aws::GameLift::Model::Event::ResourceIdHasBeenSet
bool ResourceIdHasBeenSet() const
Definition: Event.h:95
Aws::GameLift::Model::Event::GetEventCode
const EventCode & GetEventCode() const
Definition: Event.h:197
Aws::GameLift::Model::Event::WithEventTime
Event & WithEventTime(Aws::Utils::DateTime &&value)
Definition: Event.h:630
Aws::GameLift::Model::Event::SetResourceId
void SetResourceId(const char *value)
Definition: Event.h:110
Aws::GameLift::Model::Event::SetResourceId
void SetResourceId(Aws::String &&value)
Definition: Event.h:105