AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ParticipantToken.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ivs-realtime/Ivsrealtime_EXPORTS.h>
12#include <aws/ivs-realtime/model/ParticipantTokenCapability.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
35 public:
36 AWS_IVSREALTIME_API ParticipantToken() = default;
37 AWS_IVSREALTIME_API ParticipantToken(Aws::Utils::Json::JsonView jsonValue);
38 AWS_IVSREALTIME_API ParticipantToken& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_IVSREALTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
45 inline const Aws::String& GetParticipantId() const { return m_participantId; }
46 inline bool ParticipantIdHasBeenSet() const { return m_participantIdHasBeenSet; }
47 template <typename ParticipantIdT = Aws::String>
48 void SetParticipantId(ParticipantIdT&& value) {
49 m_participantIdHasBeenSet = true;
50 m_participantId = std::forward<ParticipantIdT>(value);
51 }
52 template <typename ParticipantIdT = Aws::String>
53 ParticipantToken& WithParticipantId(ParticipantIdT&& value) {
54 SetParticipantId(std::forward<ParticipantIdT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetToken() const { return m_token; }
64 inline bool TokenHasBeenSet() const { return m_tokenHasBeenSet; }
65 template <typename TokenT = Aws::String>
66 void SetToken(TokenT&& value) {
67 m_tokenHasBeenSet = true;
68 m_token = std::forward<TokenT>(value);
69 }
70 template <typename TokenT = Aws::String>
71 ParticipantToken& WithToken(TokenT&& value) {
72 SetToken(std::forward<TokenT>(value));
73 return *this;
74 }
76
78
85 inline const Aws::String& GetUserId() const { return m_userId; }
86 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
87 template <typename UserIdT = Aws::String>
88 void SetUserId(UserIdT&& value) {
89 m_userIdHasBeenSet = true;
90 m_userId = std::forward<UserIdT>(value);
91 }
92 template <typename UserIdT = Aws::String>
93 ParticipantToken& WithUserId(UserIdT&& value) {
94 SetUserId(std::forward<UserIdT>(value));
95 return *this;
96 }
98
100
107 inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const { return m_attributes; }
108 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
109 template <typename AttributesT = Aws::Map<Aws::String, Aws::String>>
110 void SetAttributes(AttributesT&& value) {
111 m_attributesHasBeenSet = true;
112 m_attributes = std::forward<AttributesT>(value);
113 }
114 template <typename AttributesT = Aws::Map<Aws::String, Aws::String>>
115 ParticipantToken& WithAttributes(AttributesT&& value) {
116 SetAttributes(std::forward<AttributesT>(value));
117 return *this;
118 }
119 template <typename AttributesKeyT = Aws::String, typename AttributesValueT = Aws::String>
120 ParticipantToken& AddAttributes(AttributesKeyT&& key, AttributesValueT&& value) {
121 m_attributesHasBeenSet = true;
122 m_attributes.emplace(std::forward<AttributesKeyT>(key), std::forward<AttributesValueT>(value));
123 return *this;
124 }
126
128
132 inline int GetDuration() const { return m_duration; }
133 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
134 inline void SetDuration(int value) {
135 m_durationHasBeenSet = true;
136 m_duration = value;
137 }
138 inline ParticipantToken& WithDuration(int value) {
139 SetDuration(value);
140 return *this;
141 }
143
145
148 inline const Aws::Vector<ParticipantTokenCapability>& GetCapabilities() const { return m_capabilities; }
149 inline bool CapabilitiesHasBeenSet() const { return m_capabilitiesHasBeenSet; }
150 template <typename CapabilitiesT = Aws::Vector<ParticipantTokenCapability>>
151 void SetCapabilities(CapabilitiesT&& value) {
152 m_capabilitiesHasBeenSet = true;
153 m_capabilities = std::forward<CapabilitiesT>(value);
154 }
155 template <typename CapabilitiesT = Aws::Vector<ParticipantTokenCapability>>
156 ParticipantToken& WithCapabilities(CapabilitiesT&& value) {
157 SetCapabilities(std::forward<CapabilitiesT>(value));
158 return *this;
159 }
161 m_capabilitiesHasBeenSet = true;
162 m_capabilities.push_back(value);
163 return *this;
164 }
166
168
171 inline const Aws::Utils::DateTime& GetExpirationTime() const { return m_expirationTime; }
172 inline bool ExpirationTimeHasBeenSet() const { return m_expirationTimeHasBeenSet; }
173 template <typename ExpirationTimeT = Aws::Utils::DateTime>
174 void SetExpirationTime(ExpirationTimeT&& value) {
175 m_expirationTimeHasBeenSet = true;
176 m_expirationTime = std::forward<ExpirationTimeT>(value);
177 }
178 template <typename ExpirationTimeT = Aws::Utils::DateTime>
179 ParticipantToken& WithExpirationTime(ExpirationTimeT&& value) {
180 SetExpirationTime(std::forward<ExpirationTimeT>(value));
181 return *this;
182 }
184 private:
185 Aws::String m_participantId;
186
187 Aws::String m_token;
188
189 Aws::String m_userId;
190
192
193 int m_duration{0};
194
196
197 Aws::Utils::DateTime m_expirationTime{};
198 bool m_participantIdHasBeenSet = false;
199 bool m_tokenHasBeenSet = false;
200 bool m_userIdHasBeenSet = false;
201 bool m_attributesHasBeenSet = false;
202 bool m_durationHasBeenSet = false;
203 bool m_capabilitiesHasBeenSet = false;
204 bool m_expirationTimeHasBeenSet = false;
205};
206
207} // namespace Model
208} // namespace ivsrealtime
209} // namespace Aws
AWS_IVSREALTIME_API ParticipantToken(Aws::Utils::Json::JsonView jsonValue)
ParticipantToken & WithParticipantId(ParticipantIdT &&value)
const Aws::Vector< ParticipantTokenCapability > & GetCapabilities() const
ParticipantToken & WithCapabilities(CapabilitiesT &&value)
ParticipantToken & WithAttributes(AttributesT &&value)
ParticipantToken & WithToken(TokenT &&value)
const Aws::String & GetParticipantId() const
void SetCapabilities(CapabilitiesT &&value)
void SetParticipantId(ParticipantIdT &&value)
ParticipantToken & WithDuration(int 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
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)
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