AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ParticipantToken.h
1
6#pragma once
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>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace ivsrealtime
26{
27namespace Model
28{
29
39 {
40 public:
41 AWS_IVSREALTIME_API ParticipantToken();
42 AWS_IVSREALTIME_API ParticipantToken(Aws::Utils::Json::JsonView jsonValue);
43 AWS_IVSREALTIME_API ParticipantToken& operator=(Aws::Utils::Json::JsonView jsonValue);
44 AWS_IVSREALTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
51 inline const Aws::String& GetParticipantId() const{ return m_participantId; }
52 inline bool ParticipantIdHasBeenSet() const { return m_participantIdHasBeenSet; }
53 inline void SetParticipantId(const Aws::String& value) { m_participantIdHasBeenSet = true; m_participantId = value; }
54 inline void SetParticipantId(Aws::String&& value) { m_participantIdHasBeenSet = true; m_participantId = std::move(value); }
55 inline void SetParticipantId(const char* value) { m_participantIdHasBeenSet = true; m_participantId.assign(value); }
56 inline ParticipantToken& WithParticipantId(const Aws::String& value) { SetParticipantId(value); return *this;}
57 inline ParticipantToken& WithParticipantId(Aws::String&& value) { SetParticipantId(std::move(value)); return *this;}
58 inline ParticipantToken& WithParticipantId(const char* value) { SetParticipantId(value); return *this;}
60
62
65 inline const Aws::String& GetToken() const{ return m_token; }
66 inline bool TokenHasBeenSet() const { return m_tokenHasBeenSet; }
67 inline void SetToken(const Aws::String& value) { m_tokenHasBeenSet = true; m_token = value; }
68 inline void SetToken(Aws::String&& value) { m_tokenHasBeenSet = true; m_token = std::move(value); }
69 inline void SetToken(const char* value) { m_tokenHasBeenSet = true; m_token.assign(value); }
70 inline ParticipantToken& WithToken(const Aws::String& value) { SetToken(value); return *this;}
71 inline ParticipantToken& WithToken(Aws::String&& value) { SetToken(std::move(value)); return *this;}
72 inline ParticipantToken& WithToken(const char* value) { SetToken(value); return *this;}
74
76
83 inline const Aws::String& GetUserId() const{ return m_userId; }
84 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
85 inline void SetUserId(const Aws::String& value) { m_userIdHasBeenSet = true; m_userId = value; }
86 inline void SetUserId(Aws::String&& value) { m_userIdHasBeenSet = true; m_userId = std::move(value); }
87 inline void SetUserId(const char* value) { m_userIdHasBeenSet = true; m_userId.assign(value); }
88 inline ParticipantToken& WithUserId(const Aws::String& value) { SetUserId(value); return *this;}
89 inline ParticipantToken& WithUserId(Aws::String&& value) { SetUserId(std::move(value)); return *this;}
90 inline ParticipantToken& WithUserId(const char* value) { SetUserId(value); return *this;}
92
94
99 inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const{ return m_attributes; }
100 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
101 inline void SetAttributes(const Aws::Map<Aws::String, Aws::String>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
102 inline void SetAttributes(Aws::Map<Aws::String, Aws::String>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
104 inline ParticipantToken& WithAttributes(Aws::Map<Aws::String, Aws::String>&& value) { SetAttributes(std::move(value)); return *this;}
105 inline ParticipantToken& AddAttributes(const Aws::String& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
106 inline ParticipantToken& AddAttributes(Aws::String&& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
107 inline ParticipantToken& AddAttributes(const Aws::String& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
108 inline ParticipantToken& AddAttributes(Aws::String&& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), std::move(value)); return *this; }
109 inline ParticipantToken& AddAttributes(const char* key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
110 inline ParticipantToken& AddAttributes(Aws::String&& key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
111 inline ParticipantToken& AddAttributes(const char* key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
113
115
119 inline int GetDuration() const{ return m_duration; }
120 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
121 inline void SetDuration(int value) { m_durationHasBeenSet = true; m_duration = value; }
122 inline ParticipantToken& WithDuration(int value) { SetDuration(value); return *this;}
124
126
129 inline const Aws::Vector<ParticipantTokenCapability>& GetCapabilities() const{ return m_capabilities; }
130 inline bool CapabilitiesHasBeenSet() const { return m_capabilitiesHasBeenSet; }
131 inline void SetCapabilities(const Aws::Vector<ParticipantTokenCapability>& value) { m_capabilitiesHasBeenSet = true; m_capabilities = value; }
132 inline void SetCapabilities(Aws::Vector<ParticipantTokenCapability>&& value) { m_capabilitiesHasBeenSet = true; m_capabilities = std::move(value); }
135 inline ParticipantToken& AddCapabilities(const ParticipantTokenCapability& value) { m_capabilitiesHasBeenSet = true; m_capabilities.push_back(value); return *this; }
136 inline ParticipantToken& AddCapabilities(ParticipantTokenCapability&& value) { m_capabilitiesHasBeenSet = true; m_capabilities.push_back(std::move(value)); return *this; }
138
140
143 inline const Aws::Utils::DateTime& GetExpirationTime() const{ return m_expirationTime; }
144 inline bool ExpirationTimeHasBeenSet() const { return m_expirationTimeHasBeenSet; }
145 inline void SetExpirationTime(const Aws::Utils::DateTime& value) { m_expirationTimeHasBeenSet = true; m_expirationTime = value; }
146 inline void SetExpirationTime(Aws::Utils::DateTime&& value) { m_expirationTimeHasBeenSet = true; m_expirationTime = std::move(value); }
147 inline ParticipantToken& WithExpirationTime(const Aws::Utils::DateTime& value) { SetExpirationTime(value); return *this;}
148 inline ParticipantToken& WithExpirationTime(Aws::Utils::DateTime&& value) { SetExpirationTime(std::move(value)); return *this;}
150 private:
151
152 Aws::String m_participantId;
153 bool m_participantIdHasBeenSet = false;
154
155 Aws::String m_token;
156 bool m_tokenHasBeenSet = false;
157
158 Aws::String m_userId;
159 bool m_userIdHasBeenSet = false;
160
162 bool m_attributesHasBeenSet = false;
163
164 int m_duration;
165 bool m_durationHasBeenSet = false;
166
168 bool m_capabilitiesHasBeenSet = false;
169
170 Aws::Utils::DateTime m_expirationTime;
171 bool m_expirationTimeHasBeenSet = false;
172 };
173
174} // namespace Model
175} // namespace ivsrealtime
176} // namespace Aws
AWS_IVSREALTIME_API ParticipantToken(Aws::Utils::Json::JsonView jsonValue)
void SetCapabilities(const Aws::Vector< ParticipantTokenCapability > &value)
const Aws::Vector< ParticipantTokenCapability > & GetCapabilities() const
ParticipantToken & WithCapabilities(Aws::Vector< ParticipantTokenCapability > &&value)
ParticipantToken & AddAttributes(Aws::String &&key, Aws::String &&value)
ParticipantToken & AddAttributes(const char *key, Aws::String &&value)
void SetExpirationTime(const Aws::Utils::DateTime &value)
ParticipantToken & WithParticipantId(const char *value)
ParticipantToken & WithParticipantId(Aws::String &&value)
ParticipantToken & AddAttributes(const Aws::String &key, const Aws::String &value)
void SetUserId(const Aws::String &value)
void SetCapabilities(Aws::Vector< ParticipantTokenCapability > &&value)
ParticipantToken & WithToken(Aws::String &&value)
ParticipantToken & WithToken(const char *value)
void SetToken(const Aws::String &value)
void SetAttributes(const Aws::Map< Aws::String, Aws::String > &value)
ParticipantToken & AddCapabilities(ParticipantTokenCapability &&value)
ParticipantToken & WithExpirationTime(const Aws::Utils::DateTime &value)
ParticipantToken & AddAttributes(const Aws::String &key, Aws::String &&value)
ParticipantToken & WithToken(const Aws::String &value)
ParticipantToken & WithParticipantId(const Aws::String &value)
const Aws::String & GetParticipantId() const
ParticipantToken & WithUserId(const char *value)
void SetExpirationTime(Aws::Utils::DateTime &&value)
void SetParticipantId(const Aws::String &value)
ParticipantToken & AddAttributes(Aws::String &&key, const Aws::String &value)
ParticipantToken & WithDuration(int value)
ParticipantToken & WithAttributes(Aws::Map< Aws::String, Aws::String > &&value)
ParticipantToken & WithExpirationTime(Aws::Utils::DateTime &&value)
ParticipantToken & AddAttributes(const char *key, const char *value)
void SetAttributes(Aws::Map< Aws::String, Aws::String > &&value)
const Aws::Utils::DateTime & GetExpirationTime() const
ParticipantToken & AddAttributes(Aws::String &&key, const char *value)
AWS_IVSREALTIME_API ParticipantToken & operator=(Aws::Utils::Json::JsonView jsonValue)
ParticipantToken & WithUserId(const Aws::String &value)
AWS_IVSREALTIME_API Aws::Utils::Json::JsonValue Jsonize() const
ParticipantToken & WithAttributes(const Aws::Map< Aws::String, Aws::String > &value)
ParticipantToken & AddCapabilities(const ParticipantTokenCapability &value)
ParticipantToken & WithCapabilities(const Aws::Vector< ParticipantTokenCapability > &value)
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
ParticipantToken & WithUserId(Aws::String &&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