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/ivs-realtime/Ivsrealtime_EXPORTS.h>
8#include <aws/ivs-realtime/model/EventName.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/ivs-realtime/model/EventErrorCode.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace ivsrealtime
25{
26namespace Model
27{
28
34 class Event
35 {
36 public:
37 AWS_IVSREALTIME_API Event();
38 AWS_IVSREALTIME_API Event(Aws::Utils::Json::JsonView jsonValue);
39 AWS_IVSREALTIME_API Event& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_IVSREALTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const EventName& GetName() const{ return m_name; }
48 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
49 inline void SetName(const EventName& value) { m_nameHasBeenSet = true; m_name = value; }
50 inline void SetName(EventName&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
51 inline Event& WithName(const EventName& value) { SetName(value); return *this;}
52 inline Event& WithName(EventName&& value) { SetName(std::move(value)); return *this;}
54
56
60 inline const Aws::String& GetParticipantId() const{ return m_participantId; }
61 inline bool ParticipantIdHasBeenSet() const { return m_participantIdHasBeenSet; }
62 inline void SetParticipantId(const Aws::String& value) { m_participantIdHasBeenSet = true; m_participantId = value; }
63 inline void SetParticipantId(Aws::String&& value) { m_participantIdHasBeenSet = true; m_participantId = std::move(value); }
64 inline void SetParticipantId(const char* value) { m_participantIdHasBeenSet = true; m_participantId.assign(value); }
65 inline Event& WithParticipantId(const Aws::String& value) { SetParticipantId(value); return *this;}
66 inline Event& WithParticipantId(Aws::String&& value) { SetParticipantId(std::move(value)); return *this;}
67 inline Event& WithParticipantId(const char* value) { SetParticipantId(value); return *this;}
69
71
74 inline const Aws::Utils::DateTime& GetEventTime() const{ return m_eventTime; }
75 inline bool EventTimeHasBeenSet() const { return m_eventTimeHasBeenSet; }
76 inline void SetEventTime(const Aws::Utils::DateTime& value) { m_eventTimeHasBeenSet = true; m_eventTime = value; }
77 inline void SetEventTime(Aws::Utils::DateTime&& value) { m_eventTimeHasBeenSet = true; m_eventTime = std::move(value); }
78 inline Event& WithEventTime(const Aws::Utils::DateTime& value) { SetEventTime(value); return *this;}
79 inline Event& WithEventTime(Aws::Utils::DateTime&& value) { SetEventTime(std::move(value)); return *this;}
81
83
88 inline const Aws::String& GetRemoteParticipantId() const{ return m_remoteParticipantId; }
89 inline bool RemoteParticipantIdHasBeenSet() const { return m_remoteParticipantIdHasBeenSet; }
90 inline void SetRemoteParticipantId(const Aws::String& value) { m_remoteParticipantIdHasBeenSet = true; m_remoteParticipantId = value; }
91 inline void SetRemoteParticipantId(Aws::String&& value) { m_remoteParticipantIdHasBeenSet = true; m_remoteParticipantId = std::move(value); }
92 inline void SetRemoteParticipantId(const char* value) { m_remoteParticipantIdHasBeenSet = true; m_remoteParticipantId.assign(value); }
93 inline Event& WithRemoteParticipantId(const Aws::String& value) { SetRemoteParticipantId(value); return *this;}
94 inline Event& WithRemoteParticipantId(Aws::String&& value) { SetRemoteParticipantId(std::move(value)); return *this;}
95 inline Event& WithRemoteParticipantId(const char* value) { SetRemoteParticipantId(value); return *this;}
97
99
143 inline const EventErrorCode& GetErrorCode() const{ return m_errorCode; }
144 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
145 inline void SetErrorCode(const EventErrorCode& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
146 inline void SetErrorCode(EventErrorCode&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); }
147 inline Event& WithErrorCode(const EventErrorCode& value) { SetErrorCode(value); return *this;}
148 inline Event& WithErrorCode(EventErrorCode&& value) { SetErrorCode(std::move(value)); return *this;}
150 private:
151
152 EventName m_name;
153 bool m_nameHasBeenSet = false;
154
155 Aws::String m_participantId;
156 bool m_participantIdHasBeenSet = false;
157
158 Aws::Utils::DateTime m_eventTime;
159 bool m_eventTimeHasBeenSet = false;
160
161 Aws::String m_remoteParticipantId;
162 bool m_remoteParticipantIdHasBeenSet = false;
163
164 EventErrorCode m_errorCode;
165 bool m_errorCodeHasBeenSet = false;
166 };
167
168} // namespace Model
169} // namespace ivsrealtime
170} // namespace Aws
Event & WithParticipantId(const char *value)
Definition Event.h:67
void SetRemoteParticipantId(const Aws::String &value)
Definition Event.h:90
AWS_IVSREALTIME_API Event(Aws::Utils::Json::JsonView jsonValue)
void SetRemoteParticipantId(const char *value)
Definition Event.h:92
const EventName & GetName() const
Definition Event.h:47
void SetErrorCode(EventErrorCode &&value)
Definition Event.h:146
void SetEventTime(const Aws::Utils::DateTime &value)
Definition Event.h:76
AWS_IVSREALTIME_API Aws::Utils::Json::JsonValue Jsonize() const
Event & WithName(EventName &&value)
Definition Event.h:52
AWS_IVSREALTIME_API Event()
void SetRemoteParticipantId(Aws::String &&value)
Definition Event.h:91
AWS_IVSREALTIME_API Event & operator=(Aws::Utils::Json::JsonView jsonValue)
Event & WithEventTime(Aws::Utils::DateTime &&value)
Definition Event.h:79
bool NameHasBeenSet() const
Definition Event.h:48
Event & WithErrorCode(const EventErrorCode &value)
Definition Event.h:147
Event & WithErrorCode(EventErrorCode &&value)
Definition Event.h:148
Event & WithParticipantId(const Aws::String &value)
Definition Event.h:65
bool ParticipantIdHasBeenSet() const
Definition Event.h:61
void SetName(EventName &&value)
Definition Event.h:50
Event & WithRemoteParticipantId(const char *value)
Definition Event.h:95
void SetParticipantId(const char *value)
Definition Event.h:64
void SetParticipantId(const Aws::String &value)
Definition Event.h:62
Event & WithRemoteParticipantId(Aws::String &&value)
Definition Event.h:94
bool EventTimeHasBeenSet() const
Definition Event.h:75
void SetName(const EventName &value)
Definition Event.h:49
void SetErrorCode(const EventErrorCode &value)
Definition Event.h:145
void SetParticipantId(Aws::String &&value)
Definition Event.h:63
const Aws::String & GetRemoteParticipantId() const
Definition Event.h:88
bool ErrorCodeHasBeenSet() const
Definition Event.h:144
const EventErrorCode & GetErrorCode() const
Definition Event.h:143
void SetEventTime(Aws::Utils::DateTime &&value)
Definition Event.h:77
Event & WithRemoteParticipantId(const Aws::String &value)
Definition Event.h:93
const Aws::String & GetParticipantId() const
Definition Event.h:60
Event & WithEventTime(const Aws::Utils::DateTime &value)
Definition Event.h:78
const Aws::Utils::DateTime & GetEventTime() const
Definition Event.h:74
Event & WithParticipantId(Aws::String &&value)
Definition Event.h:66
Event & WithName(const EventName &value)
Definition Event.h:51
bool RemoteParticipantIdHasBeenSet() const
Definition Event.h:89
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue