AWS SDK for C++

AWS SDK for C++ Version 1.11.682

Loading...
Searching...
No Matches
CreateParticipantTokenRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ivs-realtime/IvsrealtimeRequest.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 ivsrealtime {
18namespace Model {
19
23 public:
24 AWS_IVSREALTIME_API CreateParticipantTokenRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateParticipantToken"; }
31
32 AWS_IVSREALTIME_API Aws::String SerializePayload() const override;
33
35
38 inline const Aws::String& GetStageArn() const { return m_stageArn; }
39 inline bool StageArnHasBeenSet() const { return m_stageArnHasBeenSet; }
40 template <typename StageArnT = Aws::String>
41 void SetStageArn(StageArnT&& value) {
42 m_stageArnHasBeenSet = true;
43 m_stageArn = std::forward<StageArnT>(value);
44 }
45 template <typename StageArnT = Aws::String>
47 SetStageArn(std::forward<StageArnT>(value));
48 return *this;
49 }
51
53
57 inline int GetDuration() const { return m_duration; }
58 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
59 inline void SetDuration(int value) {
60 m_durationHasBeenSet = true;
61 m_duration = value;
62 }
64 SetDuration(value);
65 return *this;
66 }
68
70
76 inline const Aws::String& GetUserId() const { return m_userId; }
77 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
78 template <typename UserIdT = Aws::String>
79 void SetUserId(UserIdT&& value) {
80 m_userIdHasBeenSet = true;
81 m_userId = std::forward<UserIdT>(value);
82 }
83 template <typename UserIdT = Aws::String>
85 SetUserId(std::forward<UserIdT>(value));
86 return *this;
87 }
89
91
98 inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const { return m_attributes; }
99 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
100 template <typename AttributesT = Aws::Map<Aws::String, Aws::String>>
101 void SetAttributes(AttributesT&& value) {
102 m_attributesHasBeenSet = true;
103 m_attributes = std::forward<AttributesT>(value);
104 }
105 template <typename AttributesT = Aws::Map<Aws::String, Aws::String>>
107 SetAttributes(std::forward<AttributesT>(value));
108 return *this;
109 }
110 template <typename AttributesKeyT = Aws::String, typename AttributesValueT = Aws::String>
111 CreateParticipantTokenRequest& AddAttributes(AttributesKeyT&& key, AttributesValueT&& value) {
112 m_attributesHasBeenSet = true;
113 m_attributes.emplace(std::forward<AttributesKeyT>(key), std::forward<AttributesValueT>(value));
114 return *this;
115 }
117
119
123 inline const Aws::Vector<ParticipantTokenCapability>& GetCapabilities() const { return m_capabilities; }
124 inline bool CapabilitiesHasBeenSet() const { return m_capabilitiesHasBeenSet; }
125 template <typename CapabilitiesT = Aws::Vector<ParticipantTokenCapability>>
126 void SetCapabilities(CapabilitiesT&& value) {
127 m_capabilitiesHasBeenSet = true;
128 m_capabilities = std::forward<CapabilitiesT>(value);
129 }
130 template <typename CapabilitiesT = Aws::Vector<ParticipantTokenCapability>>
132 SetCapabilities(std::forward<CapabilitiesT>(value));
133 return *this;
134 }
136 m_capabilitiesHasBeenSet = true;
137 m_capabilities.push_back(value);
138 return *this;
139 }
141 private:
142 Aws::String m_stageArn;
143 bool m_stageArnHasBeenSet = false;
144
145 int m_duration{0};
146 bool m_durationHasBeenSet = false;
147
148 Aws::String m_userId;
149 bool m_userIdHasBeenSet = false;
150
152 bool m_attributesHasBeenSet = false;
153
155 bool m_capabilitiesHasBeenSet = false;
156};
157
158} // namespace Model
159} // namespace ivsrealtime
160} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
const Aws::Vector< ParticipantTokenCapability > & GetCapabilities() const
CreateParticipantTokenRequest & WithUserId(UserIdT &&value)
CreateParticipantTokenRequest & WithAttributes(AttributesT &&value)
CreateParticipantTokenRequest & WithCapabilities(CapabilitiesT &&value)
CreateParticipantTokenRequest & AddAttributes(AttributesKeyT &&key, AttributesValueT &&value)
AWS_IVSREALTIME_API Aws::String SerializePayload() const override
AWS_IVSREALTIME_API CreateParticipantTokenRequest()=default
CreateParticipantTokenRequest & WithStageArn(StageArnT &&value)
CreateParticipantTokenRequest & AddCapabilities(ParticipantTokenCapability 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