AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateParticipantTokenRequest.h
1
6#pragma once
7#include <aws/ivs-realtime/Ivsrealtime_EXPORTS.h>
8#include <aws/ivs-realtime/IvsrealtimeRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/ivs-realtime/model/ParticipantTokenCapability.h>
13#include <utility>
14
15namespace Aws
16{
17namespace ivsrealtime
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_IVSREALTIME_API CreateParticipantTokenRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateParticipantToken"; }
34
35 AWS_IVSREALTIME_API Aws::String SerializePayload() const override;
36
37
39
42 inline const Aws::String& GetStageArn() const { return m_stageArn; }
43 inline bool StageArnHasBeenSet() const { return m_stageArnHasBeenSet; }
44 template<typename StageArnT = Aws::String>
45 void SetStageArn(StageArnT&& value) { m_stageArnHasBeenSet = true; m_stageArn = std::forward<StageArnT>(value); }
46 template<typename StageArnT = Aws::String>
47 CreateParticipantTokenRequest& WithStageArn(StageArnT&& value) { SetStageArn(std::forward<StageArnT>(value)); return *this;}
49
51
55 inline int GetDuration() const { return m_duration; }
56 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
57 inline void SetDuration(int value) { m_durationHasBeenSet = true; m_duration = value; }
58 inline CreateParticipantTokenRequest& WithDuration(int value) { SetDuration(value); return *this;}
60
62
68 inline const Aws::String& GetUserId() const { return m_userId; }
69 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
70 template<typename UserIdT = Aws::String>
71 void SetUserId(UserIdT&& value) { m_userIdHasBeenSet = true; m_userId = std::forward<UserIdT>(value); }
72 template<typename UserIdT = Aws::String>
73 CreateParticipantTokenRequest& WithUserId(UserIdT&& value) { SetUserId(std::forward<UserIdT>(value)); return *this;}
75
77
84 inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const { return m_attributes; }
85 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
86 template<typename AttributesT = Aws::Map<Aws::String, Aws::String>>
87 void SetAttributes(AttributesT&& value) { m_attributesHasBeenSet = true; m_attributes = std::forward<AttributesT>(value); }
88 template<typename AttributesT = Aws::Map<Aws::String, Aws::String>>
89 CreateParticipantTokenRequest& WithAttributes(AttributesT&& value) { SetAttributes(std::forward<AttributesT>(value)); return *this;}
90 template<typename AttributesKeyT = Aws::String, typename AttributesValueT = Aws::String>
91 CreateParticipantTokenRequest& AddAttributes(AttributesKeyT&& key, AttributesValueT&& value) {
92 m_attributesHasBeenSet = true; m_attributes.emplace(std::forward<AttributesKeyT>(key), std::forward<AttributesValueT>(value)); return *this;
93 }
95
97
101 inline const Aws::Vector<ParticipantTokenCapability>& GetCapabilities() const { return m_capabilities; }
102 inline bool CapabilitiesHasBeenSet() const { return m_capabilitiesHasBeenSet; }
103 template<typename CapabilitiesT = Aws::Vector<ParticipantTokenCapability>>
104 void SetCapabilities(CapabilitiesT&& value) { m_capabilitiesHasBeenSet = true; m_capabilities = std::forward<CapabilitiesT>(value); }
105 template<typename CapabilitiesT = Aws::Vector<ParticipantTokenCapability>>
106 CreateParticipantTokenRequest& WithCapabilities(CapabilitiesT&& value) { SetCapabilities(std::forward<CapabilitiesT>(value)); return *this;}
107 inline CreateParticipantTokenRequest& AddCapabilities(ParticipantTokenCapability value) { m_capabilitiesHasBeenSet = true; m_capabilities.push_back(value); return *this; }
109 private:
110
111 Aws::String m_stageArn;
112 bool m_stageArnHasBeenSet = false;
113
114 int m_duration{0};
115 bool m_durationHasBeenSet = false;
116
117 Aws::String m_userId;
118 bool m_userIdHasBeenSet = false;
119
121 bool m_attributesHasBeenSet = false;
122
124 bool m_capabilitiesHasBeenSet = false;
125 };
126
127} // namespace Model
128} // namespace ivsrealtime
129} // 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