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>
23namespace ivsrealtime {
33 AWS_IVSREALTIME_API
Event() =
default;
45 m_nameHasBeenSet =
true;
61 template <
typename ParticipantIdT = Aws::String>
63 m_participantIdHasBeenSet =
true;
64 m_participantId = std::forward<ParticipantIdT>(value);
66 template <
typename ParticipantIdT = Aws::String>
79 template <
typename EventTimeT = Aws::Utils::DateTime>
81 m_eventTimeHasBeenSet =
true;
82 m_eventTime = std::forward<EventTimeT>(value);
84 template <
typename EventTimeT = Aws::Utils::DateTime>
99 template <
typename RemoteParticipantIdT = Aws::String>
101 m_remoteParticipantIdHasBeenSet =
true;
102 m_remoteParticipantId = std::forward<RemoteParticipantIdT>(value);
104 template <
typename RemoteParticipantIdT = Aws::String>
159 m_errorCodeHasBeenSet =
true;
176 template <
typename DestinationStageArnT = Aws::String>
178 m_destinationStageArnHasBeenSet =
true;
179 m_destinationStageArn = std::forward<DestinationStageArnT>(value);
181 template <
typename DestinationStageArnT = Aws::String>
196 template <
typename DestinationSessionIdT = Aws::String>
198 m_destinationSessionIdHasBeenSet =
true;
199 m_destinationSessionId = std::forward<DestinationSessionIdT>(value);
201 template <
typename DestinationSessionIdT = Aws::String>
217 m_replicaHasBeenSet =
true;
232 template <
typename PreviousTokenT = ExchangedParticipantToken>
234 m_previousTokenHasBeenSet =
true;
235 m_previousToken = std::forward<PreviousTokenT>(value);
237 template <
typename PreviousTokenT = ExchangedParticipantToken>
250 template <
typename NewTokenT = ExchangedParticipantToken>
252 m_newTokenHasBeenSet =
true;
253 m_newToken = std::forward<NewTokenT>(value);
255 template <
typename NewTokenT = ExchangedParticipantToken>
276 bool m_replica{
false};
278 ExchangedParticipantToken m_previousToken;
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;
EventName GetName() const
AWS_IVSREALTIME_API Event(Aws::Utils::Json::JsonView jsonValue)
bool DestinationSessionIdHasBeenSet() const
bool ReplicaHasBeenSet() const
Event & WithNewToken(NewTokenT &&value)
Event & WithRemoteParticipantId(RemoteParticipantIdT &&value)
const Aws::String & GetDestinationStageArn() const
Event & WithPreviousToken(PreviousTokenT &&value)
Event & WithReplica(bool value)
void SetDestinationStageArn(DestinationStageArnT &&value)
void SetName(EventName value)
AWS_IVSREALTIME_API Aws::Utils::Json::JsonValue Jsonize() const
void SetRemoteParticipantId(RemoteParticipantIdT &&value)
void SetErrorCode(EventErrorCode value)
const Aws::String & GetDestinationSessionId() const
EventErrorCode GetErrorCode() const
void SetEventTime(EventTimeT &&value)
AWS_IVSREALTIME_API Event & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_IVSREALTIME_API Event()=default
bool NameHasBeenSet() const
Event & WithParticipantId(ParticipantIdT &&value)
bool ParticipantIdHasBeenSet() const
Event & WithErrorCode(EventErrorCode value)
void SetNewToken(NewTokenT &&value)
bool NewTokenHasBeenSet() const
const ExchangedParticipantToken & GetPreviousToken() const
void SetDestinationSessionId(DestinationSessionIdT &&value)
void SetPreviousToken(PreviousTokenT &&value)
bool EventTimeHasBeenSet() const
void SetParticipantId(ParticipantIdT &&value)
Event & WithDestinationStageArn(DestinationStageArnT &&value)
const Aws::String & GetRemoteParticipantId() const
Event & WithName(EventName value)
bool ErrorCodeHasBeenSet() const
Event & WithEventTime(EventTimeT &&value)
const Aws::String & GetParticipantId() const
const ExchangedParticipantToken & GetNewToken() const
bool PreviousTokenHasBeenSet() const
const Aws::Utils::DateTime & GetEventTime() const
Event & WithDestinationSessionId(DestinationSessionIdT &&value)
bool DestinationStageArnHasBeenSet() const
bool RemoteParticipantIdHasBeenSet() const
void SetReplica(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue