AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 EventName GetName() const { return m_name; }
48 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
49 inline void SetName(EventName value) { m_nameHasBeenSet = true; m_name = value; }
50 inline Event& WithName(EventName value) { SetName(value); return *this;}
52
54
58 inline const Aws::String& GetParticipantId() const { return m_participantId; }
59 inline bool ParticipantIdHasBeenSet() const { return m_participantIdHasBeenSet; }
60 template<typename ParticipantIdT = Aws::String>
61 void SetParticipantId(ParticipantIdT&& value) { m_participantIdHasBeenSet = true; m_participantId = std::forward<ParticipantIdT>(value); }
62 template<typename ParticipantIdT = Aws::String>
63 Event& WithParticipantId(ParticipantIdT&& value) { SetParticipantId(std::forward<ParticipantIdT>(value)); return *this;}
65
67
70 inline const Aws::Utils::DateTime& GetEventTime() const { return m_eventTime; }
71 inline bool EventTimeHasBeenSet() const { return m_eventTimeHasBeenSet; }
72 template<typename EventTimeT = Aws::Utils::DateTime>
73 void SetEventTime(EventTimeT&& value) { m_eventTimeHasBeenSet = true; m_eventTime = std::forward<EventTimeT>(value); }
74 template<typename EventTimeT = Aws::Utils::DateTime>
75 Event& WithEventTime(EventTimeT&& value) { SetEventTime(std::forward<EventTimeT>(value)); return *this;}
77
79
84 inline const Aws::String& GetRemoteParticipantId() const { return m_remoteParticipantId; }
85 inline bool RemoteParticipantIdHasBeenSet() const { return m_remoteParticipantIdHasBeenSet; }
86 template<typename RemoteParticipantIdT = Aws::String>
87 void SetRemoteParticipantId(RemoteParticipantIdT&& value) { m_remoteParticipantIdHasBeenSet = true; m_remoteParticipantId = std::forward<RemoteParticipantIdT>(value); }
88 template<typename RemoteParticipantIdT = Aws::String>
89 Event& WithRemoteParticipantId(RemoteParticipantIdT&& value) { SetRemoteParticipantId(std::forward<RemoteParticipantIdT>(value)); return *this;}
91
93
137 inline EventErrorCode GetErrorCode() const { return m_errorCode; }
138 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
139 inline void SetErrorCode(EventErrorCode value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
140 inline Event& WithErrorCode(EventErrorCode value) { SetErrorCode(value); return *this;}
142
144
149 inline const Aws::String& GetDestinationStageArn() const { return m_destinationStageArn; }
150 inline bool DestinationStageArnHasBeenSet() const { return m_destinationStageArnHasBeenSet; }
151 template<typename DestinationStageArnT = Aws::String>
152 void SetDestinationStageArn(DestinationStageArnT&& value) { m_destinationStageArnHasBeenSet = true; m_destinationStageArn = std::forward<DestinationStageArnT>(value); }
153 template<typename DestinationStageArnT = Aws::String>
154 Event& WithDestinationStageArn(DestinationStageArnT&& value) { SetDestinationStageArn(std::forward<DestinationStageArnT>(value)); return *this;}
156
158
163 inline const Aws::String& GetDestinationSessionId() const { return m_destinationSessionId; }
164 inline bool DestinationSessionIdHasBeenSet() const { return m_destinationSessionIdHasBeenSet; }
165 template<typename DestinationSessionIdT = Aws::String>
166 void SetDestinationSessionId(DestinationSessionIdT&& value) { m_destinationSessionIdHasBeenSet = true; m_destinationSessionId = std::forward<DestinationSessionIdT>(value); }
167 template<typename DestinationSessionIdT = Aws::String>
168 Event& WithDestinationSessionId(DestinationSessionIdT&& value) { SetDestinationSessionId(std::forward<DestinationSessionIdT>(value)); return *this;}
170
172
177 inline bool GetReplica() const { return m_replica; }
178 inline bool ReplicaHasBeenSet() const { return m_replicaHasBeenSet; }
179 inline void SetReplica(bool value) { m_replicaHasBeenSet = true; m_replica = value; }
180 inline Event& WithReplica(bool value) { SetReplica(value); return *this;}
182 private:
183
185 bool m_nameHasBeenSet = false;
186
187 Aws::String m_participantId;
188 bool m_participantIdHasBeenSet = false;
189
190 Aws::Utils::DateTime m_eventTime{};
191 bool m_eventTimeHasBeenSet = false;
192
193 Aws::String m_remoteParticipantId;
194 bool m_remoteParticipantIdHasBeenSet = false;
195
197 bool m_errorCodeHasBeenSet = false;
198
199 Aws::String m_destinationStageArn;
200 bool m_destinationStageArnHasBeenSet = false;
201
202 Aws::String m_destinationSessionId;
203 bool m_destinationSessionIdHasBeenSet = false;
204
205 bool m_replica{false};
206 bool m_replicaHasBeenSet = false;
207 };
208
209} // namespace Model
210} // namespace ivsrealtime
211} // namespace Aws
EventName GetName() const
Definition Event.h:47
AWS_IVSREALTIME_API Event(Aws::Utils::Json::JsonView jsonValue)
bool DestinationSessionIdHasBeenSet() const
Definition Event.h:164
bool ReplicaHasBeenSet() const
Definition Event.h:178
Event & WithRemoteParticipantId(RemoteParticipantIdT &&value)
Definition Event.h:89
const Aws::String & GetDestinationStageArn() const
Definition Event.h:149
Event & WithReplica(bool value)
Definition Event.h:180
void SetDestinationStageArn(DestinationStageArnT &&value)
Definition Event.h:152
void SetName(EventName value)
Definition Event.h:49
AWS_IVSREALTIME_API Aws::Utils::Json::JsonValue Jsonize() const
void SetRemoteParticipantId(RemoteParticipantIdT &&value)
Definition Event.h:87
void SetErrorCode(EventErrorCode value)
Definition Event.h:139
const Aws::String & GetDestinationSessionId() const
Definition Event.h:163
EventErrorCode GetErrorCode() const
Definition Event.h:137
void SetEventTime(EventTimeT &&value)
Definition Event.h:73
AWS_IVSREALTIME_API Event & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_IVSREALTIME_API Event()=default
bool NameHasBeenSet() const
Definition Event.h:48
Event & WithParticipantId(ParticipantIdT &&value)
Definition Event.h:63
bool ParticipantIdHasBeenSet() const
Definition Event.h:59
Event & WithErrorCode(EventErrorCode value)
Definition Event.h:140
void SetDestinationSessionId(DestinationSessionIdT &&value)
Definition Event.h:166
bool EventTimeHasBeenSet() const
Definition Event.h:71
void SetParticipantId(ParticipantIdT &&value)
Definition Event.h:61
Event & WithDestinationStageArn(DestinationStageArnT &&value)
Definition Event.h:154
const Aws::String & GetRemoteParticipantId() const
Definition Event.h:84
Event & WithName(EventName value)
Definition Event.h:50
bool ErrorCodeHasBeenSet() const
Definition Event.h:138
Event & WithEventTime(EventTimeT &&value)
Definition Event.h:75
const Aws::String & GetParticipantId() const
Definition Event.h:58
const Aws::Utils::DateTime & GetEventTime() const
Definition Event.h:70
Event & WithDestinationSessionId(DestinationSessionIdT &&value)
Definition Event.h:168
bool DestinationStageArnHasBeenSet() const
Definition Event.h:150
bool RemoteParticipantIdHasBeenSet() const
Definition Event.h:85
void SetReplica(bool value)
Definition Event.h:179
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue