7#include <aws/ivs-realtime/Ivsrealtime_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/ivs-realtime/model/ParticipantTokenCapability.h>
53 template<
typename ParticipantIdT = Aws::String>
54 void SetParticipantId(ParticipantIdT&& value) { m_participantIdHasBeenSet =
true; m_participantId = std::forward<ParticipantIdT>(value); }
55 template<
typename ParticipantIdT = Aws::String>
65 template<
typename TokenT = Aws::String>
66 void SetToken(TokenT&& value) { m_tokenHasBeenSet =
true; m_token = std::forward<TokenT>(value); }
67 template<
typename TokenT = Aws::String>
81 template<
typename UserIdT = Aws::String>
82 void SetUserId(UserIdT&& value) { m_userIdHasBeenSet =
true; m_userId = std::forward<UserIdT>(value); }
83 template<
typename UserIdT = Aws::String>
95 template<
typename AttributesT = Aws::Map<Aws::String, Aws::String>>
96 void SetAttributes(AttributesT&& value) { m_attributesHasBeenSet =
true; m_attributes = std::forward<AttributesT>(value); }
97 template<
typename AttributesT = Aws::Map<Aws::String, Aws::String>>
99 template<
typename AttributesKeyT = Aws::String,
typename AttributesValueT = Aws::String>
101 m_attributesHasBeenSet =
true; m_attributes.emplace(std::forward<AttributesKeyT>(key), std::forward<AttributesValueT>(value));
return *
this;
112 inline void SetDuration(
int value) { m_durationHasBeenSet =
true; m_duration = value; }
122 template<
typename CapabilitiesT = Aws::Vector<ParticipantTokenCapability>>
123 void SetCapabilities(CapabilitiesT&& value) { m_capabilitiesHasBeenSet =
true; m_capabilities = std::forward<CapabilitiesT>(value); }
124 template<
typename CapabilitiesT = Aws::Vector<ParticipantTokenCapability>>
135 template<
typename ExpirationTimeT = Aws::Utils::DateTime>
136 void SetExpirationTime(ExpirationTimeT&& value) { m_expirationTimeHasBeenSet =
true; m_expirationTime = std::forward<ExpirationTimeT>(value); }
137 template<
typename ExpirationTimeT = Aws::Utils::DateTime>
143 bool m_participantIdHasBeenSet =
false;
146 bool m_tokenHasBeenSet =
false;
149 bool m_userIdHasBeenSet =
false;
152 bool m_attributesHasBeenSet =
false;
155 bool m_durationHasBeenSet =
false;
158 bool m_capabilitiesHasBeenSet =
false;
161 bool m_expirationTimeHasBeenSet =
false;
bool ParticipantIdHasBeenSet() const
AWS_IVSREALTIME_API ParticipantToken(Aws::Utils::Json::JsonView jsonValue)
ParticipantToken & WithParticipantId(ParticipantIdT &&value)
const Aws::Vector< ParticipantTokenCapability > & GetCapabilities() const
const Aws::String & GetUserId() const
bool TokenHasBeenSet() const
bool UserIdHasBeenSet() const
bool ExpirationTimeHasBeenSet() const
ParticipantToken & WithCapabilities(CapabilitiesT &&value)
bool DurationHasBeenSet() const
ParticipantToken & WithAttributes(AttributesT &&value)
void SetDuration(int value)
const Aws::String & GetToken() const
ParticipantToken & WithToken(TokenT &&value)
const Aws::String & GetParticipantId() const
bool CapabilitiesHasBeenSet() const
void SetUserId(UserIdT &&value)
void SetCapabilities(CapabilitiesT &&value)
void SetParticipantId(ParticipantIdT &&value)
void SetToken(TokenT &&value)
ParticipantToken & WithDuration(int value)
void SetAttributes(AttributesT &&value)
ParticipantToken & WithUserId(UserIdT &&value)
const Aws::Utils::DateTime & GetExpirationTime() const
AWS_IVSREALTIME_API ParticipantToken & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetExpirationTime(ExpirationTimeT &&value)
AWS_IVSREALTIME_API Aws::Utils::Json::JsonValue Jsonize() const
bool AttributesHasBeenSet() const
ParticipantToken & AddCapabilities(ParticipantTokenCapability value)
ParticipantToken & AddAttributes(AttributesKeyT &&key, AttributesValueT &&value)
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
AWS_IVSREALTIME_API ParticipantToken()=default
ParticipantToken & WithExpirationTime(ExpirationTimeT &&value)
ParticipantTokenCapability
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue