AWS SDK for C++

AWS SDK for C++ Version 1.11.717

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/ivs-realtime/Ivsrealtime_EXPORTS.h>
10#include <aws/ivs-realtime/model/EventErrorCode.h>
11#include <aws/ivs-realtime/model/EventName.h>
12#include <aws/ivs-realtime/model/ExchangedParticipantToken.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace ivsrealtime {
24namespace Model {
25
31class Event {
32 public:
33 AWS_IVSREALTIME_API Event() = default;
34 AWS_IVSREALTIME_API Event(Aws::Utils::Json::JsonView jsonValue);
35 AWS_IVSREALTIME_API Event& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_IVSREALTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline EventName GetName() const { return m_name; }
43 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
44 inline void SetName(EventName value) {
45 m_nameHasBeenSet = true;
46 m_name = value;
47 }
48 inline Event& WithName(EventName value) {
49 SetName(value);
50 return *this;
51 }
53
55
59 inline const Aws::String& GetParticipantId() const { return m_participantId; }
60 inline bool ParticipantIdHasBeenSet() const { return m_participantIdHasBeenSet; }
61 template <typename ParticipantIdT = Aws::String>
62 void SetParticipantId(ParticipantIdT&& value) {
63 m_participantIdHasBeenSet = true;
64 m_participantId = std::forward<ParticipantIdT>(value);
65 }
66 template <typename ParticipantIdT = Aws::String>
67 Event& WithParticipantId(ParticipantIdT&& value) {
68 SetParticipantId(std::forward<ParticipantIdT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::Utils::DateTime& GetEventTime() const { return m_eventTime; }
78 inline bool EventTimeHasBeenSet() const { return m_eventTimeHasBeenSet; }
79 template <typename EventTimeT = Aws::Utils::DateTime>
80 void SetEventTime(EventTimeT&& value) {
81 m_eventTimeHasBeenSet = true;
82 m_eventTime = std::forward<EventTimeT>(value);
83 }
84 template <typename EventTimeT = Aws::Utils::DateTime>
85 Event& WithEventTime(EventTimeT&& value) {
86 SetEventTime(std::forward<EventTimeT>(value));
87 return *this;
88 }
90
92
97 inline const Aws::String& GetRemoteParticipantId() const { return m_remoteParticipantId; }
98 inline bool RemoteParticipantIdHasBeenSet() const { return m_remoteParticipantIdHasBeenSet; }
99 template <typename RemoteParticipantIdT = Aws::String>
100 void SetRemoteParticipantId(RemoteParticipantIdT&& value) {
101 m_remoteParticipantIdHasBeenSet = true;
102 m_remoteParticipantId = std::forward<RemoteParticipantIdT>(value);
103 }
104 template <typename RemoteParticipantIdT = Aws::String>
105 Event& WithRemoteParticipantId(RemoteParticipantIdT&& value) {
106 SetRemoteParticipantId(std::forward<RemoteParticipantIdT>(value));
107 return *this;
108 }
110
112
156 inline EventErrorCode GetErrorCode() const { return m_errorCode; }
157 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
158 inline void SetErrorCode(EventErrorCode value) {
159 m_errorCodeHasBeenSet = true;
160 m_errorCode = value;
161 }
163 SetErrorCode(value);
164 return *this;
165 }
167
169
174 inline const Aws::String& GetDestinationStageArn() const { return m_destinationStageArn; }
175 inline bool DestinationStageArnHasBeenSet() const { return m_destinationStageArnHasBeenSet; }
176 template <typename DestinationStageArnT = Aws::String>
177 void SetDestinationStageArn(DestinationStageArnT&& value) {
178 m_destinationStageArnHasBeenSet = true;
179 m_destinationStageArn = std::forward<DestinationStageArnT>(value);
180 }
181 template <typename DestinationStageArnT = Aws::String>
182 Event& WithDestinationStageArn(DestinationStageArnT&& value) {
183 SetDestinationStageArn(std::forward<DestinationStageArnT>(value));
184 return *this;
185 }
187
189
194 inline const Aws::String& GetDestinationSessionId() const { return m_destinationSessionId; }
195 inline bool DestinationSessionIdHasBeenSet() const { return m_destinationSessionIdHasBeenSet; }
196 template <typename DestinationSessionIdT = Aws::String>
197 void SetDestinationSessionId(DestinationSessionIdT&& value) {
198 m_destinationSessionIdHasBeenSet = true;
199 m_destinationSessionId = std::forward<DestinationSessionIdT>(value);
200 }
201 template <typename DestinationSessionIdT = Aws::String>
202 Event& WithDestinationSessionId(DestinationSessionIdT&& value) {
203 SetDestinationSessionId(std::forward<DestinationSessionIdT>(value));
204 return *this;
205 }
207
209
214 inline bool GetReplica() const { return m_replica; }
215 inline bool ReplicaHasBeenSet() const { return m_replicaHasBeenSet; }
216 inline void SetReplica(bool value) {
217 m_replicaHasBeenSet = true;
218 m_replica = value;
219 }
220 inline Event& WithReplica(bool value) {
221 SetReplica(value);
222 return *this;
223 }
225
227
230 inline const ExchangedParticipantToken& GetPreviousToken() const { return m_previousToken; }
231 inline bool PreviousTokenHasBeenSet() const { return m_previousTokenHasBeenSet; }
232 template <typename PreviousTokenT = ExchangedParticipantToken>
233 void SetPreviousToken(PreviousTokenT&& value) {
234 m_previousTokenHasBeenSet = true;
235 m_previousToken = std::forward<PreviousTokenT>(value);
236 }
237 template <typename PreviousTokenT = ExchangedParticipantToken>
238 Event& WithPreviousToken(PreviousTokenT&& value) {
239 SetPreviousToken(std::forward<PreviousTokenT>(value));
240 return *this;
241 }
243
245
248 inline const ExchangedParticipantToken& GetNewToken() const { return m_newToken; }
249 inline bool NewTokenHasBeenSet() const { return m_newTokenHasBeenSet; }
250 template <typename NewTokenT = ExchangedParticipantToken>
251 void SetNewToken(NewTokenT&& value) {
252 m_newTokenHasBeenSet = true;
253 m_newToken = std::forward<NewTokenT>(value);
254 }
255 template <typename NewTokenT = ExchangedParticipantToken>
256 Event& WithNewToken(NewTokenT&& value) {
257 SetNewToken(std::forward<NewTokenT>(value));
258 return *this;
259 }
261 private:
263
264 Aws::String m_participantId;
265
266 Aws::Utils::DateTime m_eventTime{};
267
268 Aws::String m_remoteParticipantId;
269
271
272 Aws::String m_destinationStageArn;
273
274 Aws::String m_destinationSessionId;
275
276 bool m_replica{false};
277
278 ExchangedParticipantToken m_previousToken;
279
280 ExchangedParticipantToken m_newToken;
281 bool m_nameHasBeenSet = false;
282 bool m_participantIdHasBeenSet = false;
283 bool m_eventTimeHasBeenSet = false;
284 bool m_remoteParticipantIdHasBeenSet = false;
285 bool m_errorCodeHasBeenSet = false;
286 bool m_destinationStageArnHasBeenSet = false;
287 bool m_destinationSessionIdHasBeenSet = false;
288 bool m_replicaHasBeenSet = false;
289 bool m_previousTokenHasBeenSet = false;
290 bool m_newTokenHasBeenSet = false;
291};
292
293} // namespace Model
294} // namespace ivsrealtime
295} // namespace Aws
EventName GetName() const
Definition Event.h:42
AWS_IVSREALTIME_API Event(Aws::Utils::Json::JsonView jsonValue)
bool DestinationSessionIdHasBeenSet() const
Definition Event.h:195
bool ReplicaHasBeenSet() const
Definition Event.h:215
Event & WithNewToken(NewTokenT &&value)
Definition Event.h:256
Event & WithRemoteParticipantId(RemoteParticipantIdT &&value)
Definition Event.h:105
const Aws::String & GetDestinationStageArn() const
Definition Event.h:174
Event & WithPreviousToken(PreviousTokenT &&value)
Definition Event.h:238
Event & WithReplica(bool value)
Definition Event.h:220
void SetDestinationStageArn(DestinationStageArnT &&value)
Definition Event.h:177
void SetName(EventName value)
Definition Event.h:44
AWS_IVSREALTIME_API Aws::Utils::Json::JsonValue Jsonize() const
void SetRemoteParticipantId(RemoteParticipantIdT &&value)
Definition Event.h:100
void SetErrorCode(EventErrorCode value)
Definition Event.h:158
const Aws::String & GetDestinationSessionId() const
Definition Event.h:194
EventErrorCode GetErrorCode() const
Definition Event.h:156
void SetEventTime(EventTimeT &&value)
Definition Event.h:80
AWS_IVSREALTIME_API Event & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_IVSREALTIME_API Event()=default
bool NameHasBeenSet() const
Definition Event.h:43
Event & WithParticipantId(ParticipantIdT &&value)
Definition Event.h:67
bool ParticipantIdHasBeenSet() const
Definition Event.h:60
Event & WithErrorCode(EventErrorCode value)
Definition Event.h:162
void SetNewToken(NewTokenT &&value)
Definition Event.h:251
bool NewTokenHasBeenSet() const
Definition Event.h:249
const ExchangedParticipantToken & GetPreviousToken() const
Definition Event.h:230
void SetDestinationSessionId(DestinationSessionIdT &&value)
Definition Event.h:197
void SetPreviousToken(PreviousTokenT &&value)
Definition Event.h:233
bool EventTimeHasBeenSet() const
Definition Event.h:78
void SetParticipantId(ParticipantIdT &&value)
Definition Event.h:62
Event & WithDestinationStageArn(DestinationStageArnT &&value)
Definition Event.h:182
const Aws::String & GetRemoteParticipantId() const
Definition Event.h:97
Event & WithName(EventName value)
Definition Event.h:48
bool ErrorCodeHasBeenSet() const
Definition Event.h:157
Event & WithEventTime(EventTimeT &&value)
Definition Event.h:85
const Aws::String & GetParticipantId() const
Definition Event.h:59
const ExchangedParticipantToken & GetNewToken() const
Definition Event.h:248
bool PreviousTokenHasBeenSet() const
Definition Event.h:231
const Aws::Utils::DateTime & GetEventTime() const
Definition Event.h:77
Event & WithDestinationSessionId(DestinationSessionIdT &&value)
Definition Event.h:202
bool DestinationStageArnHasBeenSet() const
Definition Event.h:175
bool RemoteParticipantIdHasBeenSet() const
Definition Event.h:98
void SetReplica(bool value)
Definition Event.h:216
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue