AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ParticipantTokenConfiguration.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/ivs-realtime/model/ParticipantTokenCapability.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace ivsrealtime
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_IVSREALTIME_API ParticipantTokenConfiguration();
41 AWS_IVSREALTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline int GetDuration() const{ return m_duration; }
50 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
51 inline void SetDuration(int value) { m_durationHasBeenSet = true; m_duration = value; }
52 inline ParticipantTokenConfiguration& WithDuration(int value) { SetDuration(value); return *this;}
54
56
63 inline const Aws::String& GetUserId() const{ return m_userId; }
64 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
65 inline void SetUserId(const Aws::String& value) { m_userIdHasBeenSet = true; m_userId = value; }
66 inline void SetUserId(Aws::String&& value) { m_userIdHasBeenSet = true; m_userId = std::move(value); }
67 inline void SetUserId(const char* value) { m_userIdHasBeenSet = true; m_userId.assign(value); }
68 inline ParticipantTokenConfiguration& WithUserId(const Aws::String& value) { SetUserId(value); return *this;}
69 inline ParticipantTokenConfiguration& WithUserId(Aws::String&& value) { SetUserId(std::move(value)); return *this;}
70 inline ParticipantTokenConfiguration& WithUserId(const char* value) { SetUserId(value); return *this;}
72
74
81 inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const{ return m_attributes; }
82 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
83 inline void SetAttributes(const Aws::Map<Aws::String, Aws::String>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
84 inline void SetAttributes(Aws::Map<Aws::String, Aws::String>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
87 inline ParticipantTokenConfiguration& AddAttributes(const Aws::String& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
88 inline ParticipantTokenConfiguration& AddAttributes(Aws::String&& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
89 inline ParticipantTokenConfiguration& AddAttributes(const Aws::String& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
90 inline ParticipantTokenConfiguration& AddAttributes(Aws::String&& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), std::move(value)); return *this; }
91 inline ParticipantTokenConfiguration& AddAttributes(const char* key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
92 inline ParticipantTokenConfiguration& AddAttributes(Aws::String&& key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
93 inline ParticipantTokenConfiguration& AddAttributes(const char* key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
95
97
100 inline const Aws::Vector<ParticipantTokenCapability>& GetCapabilities() const{ return m_capabilities; }
101 inline bool CapabilitiesHasBeenSet() const { return m_capabilitiesHasBeenSet; }
102 inline void SetCapabilities(const Aws::Vector<ParticipantTokenCapability>& value) { m_capabilitiesHasBeenSet = true; m_capabilities = value; }
103 inline void SetCapabilities(Aws::Vector<ParticipantTokenCapability>&& value) { m_capabilitiesHasBeenSet = true; m_capabilities = std::move(value); }
106 inline ParticipantTokenConfiguration& AddCapabilities(const ParticipantTokenCapability& value) { m_capabilitiesHasBeenSet = true; m_capabilities.push_back(value); return *this; }
107 inline ParticipantTokenConfiguration& AddCapabilities(ParticipantTokenCapability&& value) { m_capabilitiesHasBeenSet = true; m_capabilities.push_back(std::move(value)); return *this; }
109 private:
110
111 int m_duration;
112 bool m_durationHasBeenSet = false;
113
114 Aws::String m_userId;
115 bool m_userIdHasBeenSet = false;
116
118 bool m_attributesHasBeenSet = false;
119
121 bool m_capabilitiesHasBeenSet = false;
122 };
123
124} // namespace Model
125} // namespace ivsrealtime
126} // namespace Aws
ParticipantTokenConfiguration & AddAttributes(const Aws::String &key, const Aws::String &value)
ParticipantTokenConfiguration & AddAttributes(Aws::String &&key, const Aws::String &value)
ParticipantTokenConfiguration & AddAttributes(const char *key, Aws::String &&value)
ParticipantTokenConfiguration & AddCapabilities(const ParticipantTokenCapability &value)
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
ParticipantTokenConfiguration & WithCapabilities(Aws::Vector< ParticipantTokenCapability > &&value)
ParticipantTokenConfiguration & WithAttributes(const Aws::Map< Aws::String, Aws::String > &value)
ParticipantTokenConfiguration & WithUserId(Aws::String &&value)
AWS_IVSREALTIME_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< ParticipantTokenCapability > & GetCapabilities() const
ParticipantTokenConfiguration & WithUserId(const Aws::String &value)
void SetCapabilities(const Aws::Vector< ParticipantTokenCapability > &value)
ParticipantTokenConfiguration & AddAttributes(const Aws::String &key, Aws::String &&value)
AWS_IVSREALTIME_API ParticipantTokenConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
ParticipantTokenConfiguration & AddAttributes(Aws::String &&key, const char *value)
ParticipantTokenConfiguration & AddAttributes(Aws::String &&key, Aws::String &&value)
ParticipantTokenConfiguration & AddAttributes(const char *key, const char *value)
ParticipantTokenConfiguration & WithCapabilities(const Aws::Vector< ParticipantTokenCapability > &value)
ParticipantTokenConfiguration & AddCapabilities(ParticipantTokenCapability &&value)
void SetAttributes(Aws::Map< Aws::String, Aws::String > &&value)
AWS_IVSREALTIME_API ParticipantTokenConfiguration(Aws::Utils::Json::JsonView jsonValue)
void SetCapabilities(Aws::Vector< ParticipantTokenCapability > &&value)
ParticipantTokenConfiguration & WithUserId(const char *value)
void SetAttributes(const Aws::Map< Aws::String, Aws::String > &value)
ParticipantTokenConfiguration & WithAttributes(Aws::Map< Aws::String, 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