AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateChatTokenRequest.h
1
6#pragma once
7#include <aws/ivschat/Ivschat_EXPORTS.h>
8#include <aws/ivschat/IvschatRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/ivschat/model/ChatTokenCapability.h>
13#include <utility>
14
15namespace Aws
16{
17namespace ivschat
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_IVSCHAT_API CreateChatTokenRequest();
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 "CreateChatToken"; }
34
35 AWS_IVSCHAT_API Aws::String SerializePayload() const override;
36
37
39
43 inline const Aws::String& GetRoomIdentifier() const{ return m_roomIdentifier; }
44 inline bool RoomIdentifierHasBeenSet() const { return m_roomIdentifierHasBeenSet; }
45 inline void SetRoomIdentifier(const Aws::String& value) { m_roomIdentifierHasBeenSet = true; m_roomIdentifier = value; }
46 inline void SetRoomIdentifier(Aws::String&& value) { m_roomIdentifierHasBeenSet = true; m_roomIdentifier = std::move(value); }
47 inline void SetRoomIdentifier(const char* value) { m_roomIdentifierHasBeenSet = true; m_roomIdentifier.assign(value); }
48 inline CreateChatTokenRequest& WithRoomIdentifier(const Aws::String& value) { SetRoomIdentifier(value); return *this;}
49 inline CreateChatTokenRequest& WithRoomIdentifier(Aws::String&& value) { SetRoomIdentifier(std::move(value)); return *this;}
50 inline CreateChatTokenRequest& WithRoomIdentifier(const char* value) { SetRoomIdentifier(value); return *this;}
52
54
58 inline const Aws::String& GetUserId() const{ return m_userId; }
59 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
60 inline void SetUserId(const Aws::String& value) { m_userIdHasBeenSet = true; m_userId = value; }
61 inline void SetUserId(Aws::String&& value) { m_userIdHasBeenSet = true; m_userId = std::move(value); }
62 inline void SetUserId(const char* value) { m_userIdHasBeenSet = true; m_userId.assign(value); }
63 inline CreateChatTokenRequest& WithUserId(const Aws::String& value) { SetUserId(value); return *this;}
64 inline CreateChatTokenRequest& WithUserId(Aws::String&& value) { SetUserId(std::move(value)); return *this;}
65 inline CreateChatTokenRequest& WithUserId(const char* value) { SetUserId(value); return *this;}
67
69
74 inline const Aws::Vector<ChatTokenCapability>& GetCapabilities() const{ return m_capabilities; }
75 inline bool CapabilitiesHasBeenSet() const { return m_capabilitiesHasBeenSet; }
76 inline void SetCapabilities(const Aws::Vector<ChatTokenCapability>& value) { m_capabilitiesHasBeenSet = true; m_capabilities = value; }
77 inline void SetCapabilities(Aws::Vector<ChatTokenCapability>&& value) { m_capabilitiesHasBeenSet = true; m_capabilities = std::move(value); }
80 inline CreateChatTokenRequest& AddCapabilities(const ChatTokenCapability& value) { m_capabilitiesHasBeenSet = true; m_capabilities.push_back(value); return *this; }
81 inline CreateChatTokenRequest& AddCapabilities(ChatTokenCapability&& value) { m_capabilitiesHasBeenSet = true; m_capabilities.push_back(std::move(value)); return *this; }
83
85
89 inline int GetSessionDurationInMinutes() const{ return m_sessionDurationInMinutes; }
90 inline bool SessionDurationInMinutesHasBeenSet() const { return m_sessionDurationInMinutesHasBeenSet; }
91 inline void SetSessionDurationInMinutes(int value) { m_sessionDurationInMinutesHasBeenSet = true; m_sessionDurationInMinutes = value; }
94
96
101 inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const{ return m_attributes; }
102 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
103 inline void SetAttributes(const Aws::Map<Aws::String, Aws::String>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
104 inline void SetAttributes(Aws::Map<Aws::String, Aws::String>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
107 inline CreateChatTokenRequest& AddAttributes(const Aws::String& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
108 inline CreateChatTokenRequest& AddAttributes(Aws::String&& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
109 inline CreateChatTokenRequest& AddAttributes(const Aws::String& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
110 inline CreateChatTokenRequest& AddAttributes(Aws::String&& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), std::move(value)); return *this; }
111 inline CreateChatTokenRequest& AddAttributes(const char* key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
112 inline CreateChatTokenRequest& AddAttributes(Aws::String&& key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
113 inline CreateChatTokenRequest& AddAttributes(const char* key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
115 private:
116
117 Aws::String m_roomIdentifier;
118 bool m_roomIdentifierHasBeenSet = false;
119
120 Aws::String m_userId;
121 bool m_userIdHasBeenSet = false;
122
124 bool m_capabilitiesHasBeenSet = false;
125
126 int m_sessionDurationInMinutes;
127 bool m_sessionDurationInMinutesHasBeenSet = false;
128
130 bool m_attributesHasBeenSet = false;
131 };
132
133} // namespace Model
134} // namespace ivschat
135} // namespace Aws
CreateChatTokenRequest & AddAttributes(const Aws::String &key, const Aws::String &value)
virtual const char * GetServiceRequestName() const override
CreateChatTokenRequest & WithUserId(Aws::String &&value)
CreateChatTokenRequest & WithCapabilities(Aws::Vector< ChatTokenCapability > &&value)
CreateChatTokenRequest & WithRoomIdentifier(Aws::String &&value)
CreateChatTokenRequest & AddAttributes(const Aws::String &key, Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
CreateChatTokenRequest & AddAttributes(Aws::String &&key, Aws::String &&value)
CreateChatTokenRequest & WithUserId(const char *value)
void SetCapabilities(Aws::Vector< ChatTokenCapability > &&value)
CreateChatTokenRequest & WithAttributes(const Aws::Map< Aws::String, Aws::String > &value)
CreateChatTokenRequest & WithUserId(const Aws::String &value)
CreateChatTokenRequest & WithCapabilities(const Aws::Vector< ChatTokenCapability > &value)
CreateChatTokenRequest & AddAttributes(const char *key, Aws::String &&value)
CreateChatTokenRequest & AddAttributes(Aws::String &&key, const char *value)
void SetCapabilities(const Aws::Vector< ChatTokenCapability > &value)
const Aws::Vector< ChatTokenCapability > & GetCapabilities() const
AWS_IVSCHAT_API Aws::String SerializePayload() const override
CreateChatTokenRequest & AddAttributes(Aws::String &&key, const Aws::String &value)
CreateChatTokenRequest & AddCapabilities(const ChatTokenCapability &value)
CreateChatTokenRequest & AddCapabilities(ChatTokenCapability &&value)
CreateChatTokenRequest & AddAttributes(const char *key, const char *value)
void SetAttributes(Aws::Map< Aws::String, Aws::String > &&value)
CreateChatTokenRequest & WithSessionDurationInMinutes(int value)
CreateChatTokenRequest & WithRoomIdentifier(const char *value)
void SetAttributes(const Aws::Map< Aws::String, Aws::String > &value)
CreateChatTokenRequest & WithAttributes(Aws::Map< Aws::String, Aws::String > &&value)
CreateChatTokenRequest & WithRoomIdentifier(const 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