AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CreateSessionRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/qconnect/QConnectRequest.h>
12#include <aws/qconnect/QConnect_EXPORTS.h>
13#include <aws/qconnect/model/AIAgentConfigurationData.h>
14#include <aws/qconnect/model/AIAgentType.h>
15#include <aws/qconnect/model/OrchestratorConfigurationEntry.h>
16#include <aws/qconnect/model/TagFilter.h>
17
18#include <utility>
19
20namespace Aws {
21namespace QConnect {
22namespace Model {
23
27 public:
28 AWS_QCONNECT_API CreateSessionRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateSession"; }
35
36 AWS_QCONNECT_API Aws::String SerializePayload() const override;
37
39
46 inline const Aws::String& GetClientToken() const { return m_clientToken; }
47 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
48 template <typename ClientTokenT = Aws::String>
49 void SetClientToken(ClientTokenT&& value) {
50 m_clientTokenHasBeenSet = true;
51 m_clientToken = std::forward<ClientTokenT>(value);
52 }
53 template <typename ClientTokenT = Aws::String>
54 CreateSessionRequest& WithClientToken(ClientTokenT&& value) {
55 SetClientToken(std::forward<ClientTokenT>(value));
56 return *this;
57 }
59
61
65 inline const Aws::String& GetAssistantId() const { return m_assistantId; }
66 inline bool AssistantIdHasBeenSet() const { return m_assistantIdHasBeenSet; }
67 template <typename AssistantIdT = Aws::String>
68 void SetAssistantId(AssistantIdT&& value) {
69 m_assistantIdHasBeenSet = true;
70 m_assistantId = std::forward<AssistantIdT>(value);
71 }
72 template <typename AssistantIdT = Aws::String>
73 CreateSessionRequest& WithAssistantId(AssistantIdT&& value) {
74 SetAssistantId(std::forward<AssistantIdT>(value));
75 return *this;
76 }
78
80
83 inline const Aws::String& GetName() const { return m_name; }
84 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
85 template <typename NameT = Aws::String>
86 void SetName(NameT&& value) {
87 m_nameHasBeenSet = true;
88 m_name = std::forward<NameT>(value);
89 }
90 template <typename NameT = Aws::String>
92 SetName(std::forward<NameT>(value));
93 return *this;
94 }
96
98
101 inline const Aws::String& GetDescription() const { return m_description; }
102 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
103 template <typename DescriptionT = Aws::String>
104 void SetDescription(DescriptionT&& value) {
105 m_descriptionHasBeenSet = true;
106 m_description = std::forward<DescriptionT>(value);
107 }
108 template <typename DescriptionT = Aws::String>
109 CreateSessionRequest& WithDescription(DescriptionT&& value) {
110 SetDescription(std::forward<DescriptionT>(value));
111 return *this;
112 }
114
116
119 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
120 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
121 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
122 void SetTags(TagsT&& value) {
123 m_tagsHasBeenSet = true;
124 m_tags = std::forward<TagsT>(value);
125 }
126 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
128 SetTags(std::forward<TagsT>(value));
129 return *this;
130 }
131 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
132 CreateSessionRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
133 m_tagsHasBeenSet = true;
134 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
135 return *this;
136 }
138
140
143 inline const TagFilter& GetTagFilter() const { return m_tagFilter; }
144 inline bool TagFilterHasBeenSet() const { return m_tagFilterHasBeenSet; }
145 template <typename TagFilterT = TagFilter>
146 void SetTagFilter(TagFilterT&& value) {
147 m_tagFilterHasBeenSet = true;
148 m_tagFilter = std::forward<TagFilterT>(value);
149 }
150 template <typename TagFilterT = TagFilter>
151 CreateSessionRequest& WithTagFilter(TagFilterT&& value) {
152 SetTagFilter(std::forward<TagFilterT>(value));
153 return *this;
154 }
156
158
162 inline const Aws::Map<AIAgentType, AIAgentConfigurationData>& GetAiAgentConfiguration() const { return m_aiAgentConfiguration; }
163 inline bool AiAgentConfigurationHasBeenSet() const { return m_aiAgentConfigurationHasBeenSet; }
164 template <typename AiAgentConfigurationT = Aws::Map<AIAgentType, AIAgentConfigurationData>>
165 void SetAiAgentConfiguration(AiAgentConfigurationT&& value) {
166 m_aiAgentConfigurationHasBeenSet = true;
167 m_aiAgentConfiguration = std::forward<AiAgentConfigurationT>(value);
168 }
169 template <typename AiAgentConfigurationT = Aws::Map<AIAgentType, AIAgentConfigurationData>>
170 CreateSessionRequest& WithAiAgentConfiguration(AiAgentConfigurationT&& value) {
171 SetAiAgentConfiguration(std::forward<AiAgentConfigurationT>(value));
172 return *this;
173 }
175 m_aiAgentConfigurationHasBeenSet = true;
176 m_aiAgentConfiguration.emplace(key, value);
177 return *this;
178 }
180
182
187 inline const Aws::String& GetContactArn() const { return m_contactArn; }
188 inline bool ContactArnHasBeenSet() const { return m_contactArnHasBeenSet; }
189 template <typename ContactArnT = Aws::String>
190 void SetContactArn(ContactArnT&& value) {
191 m_contactArnHasBeenSet = true;
192 m_contactArn = std::forward<ContactArnT>(value);
193 }
194 template <typename ContactArnT = Aws::String>
195 CreateSessionRequest& WithContactArn(ContactArnT&& value) {
196 SetContactArn(std::forward<ContactArnT>(value));
197 return *this;
198 }
200
202
206 return m_orchestratorConfigurationList;
207 }
208 inline bool OrchestratorConfigurationListHasBeenSet() const { return m_orchestratorConfigurationListHasBeenSet; }
209 template <typename OrchestratorConfigurationListT = Aws::Vector<OrchestratorConfigurationEntry>>
210 void SetOrchestratorConfigurationList(OrchestratorConfigurationListT&& value) {
211 m_orchestratorConfigurationListHasBeenSet = true;
212 m_orchestratorConfigurationList = std::forward<OrchestratorConfigurationListT>(value);
213 }
214 template <typename OrchestratorConfigurationListT = Aws::Vector<OrchestratorConfigurationEntry>>
215 CreateSessionRequest& WithOrchestratorConfigurationList(OrchestratorConfigurationListT&& value) {
216 SetOrchestratorConfigurationList(std::forward<OrchestratorConfigurationListT>(value));
217 return *this;
218 }
219 template <typename OrchestratorConfigurationListT = OrchestratorConfigurationEntry>
220 CreateSessionRequest& AddOrchestratorConfigurationList(OrchestratorConfigurationListT&& value) {
221 m_orchestratorConfigurationListHasBeenSet = true;
222 m_orchestratorConfigurationList.emplace_back(std::forward<OrchestratorConfigurationListT>(value));
223 return *this;
224 }
226
228
231 inline bool GetRemoveOrchestratorConfigurationList() const { return m_removeOrchestratorConfigurationList; }
232 inline bool RemoveOrchestratorConfigurationListHasBeenSet() const { return m_removeOrchestratorConfigurationListHasBeenSet; }
234 m_removeOrchestratorConfigurationListHasBeenSet = true;
235 m_removeOrchestratorConfigurationList = value;
236 }
239 return *this;
240 }
242 private:
244
245 Aws::String m_assistantId;
246
247 Aws::String m_name;
248
249 Aws::String m_description;
250
252
253 TagFilter m_tagFilter;
254
256
257 Aws::String m_contactArn;
258
259 Aws::Vector<OrchestratorConfigurationEntry> m_orchestratorConfigurationList;
260
261 bool m_removeOrchestratorConfigurationList{false};
262 bool m_clientTokenHasBeenSet = true;
263 bool m_assistantIdHasBeenSet = false;
264 bool m_nameHasBeenSet = false;
265 bool m_descriptionHasBeenSet = false;
266 bool m_tagsHasBeenSet = false;
267 bool m_tagFilterHasBeenSet = false;
268 bool m_aiAgentConfigurationHasBeenSet = false;
269 bool m_contactArnHasBeenSet = false;
270 bool m_orchestratorConfigurationListHasBeenSet = false;
271 bool m_removeOrchestratorConfigurationListHasBeenSet = false;
272};
273
274} // namespace Model
275} // namespace QConnect
276} // namespace Aws
CreateSessionRequest & WithAssistantId(AssistantIdT &&value)
CreateSessionRequest & WithContactArn(ContactArnT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::Map< AIAgentType, AIAgentConfigurationData > & GetAiAgentConfiguration() const
CreateSessionRequest & WithClientToken(ClientTokenT &&value)
void SetOrchestratorConfigurationList(OrchestratorConfigurationListT &&value)
AWS_QCONNECT_API Aws::String SerializePayload() const override
CreateSessionRequest & WithDescription(DescriptionT &&value)
const Aws::Vector< OrchestratorConfigurationEntry > & GetOrchestratorConfigurationList() const
CreateSessionRequest & WithRemoveOrchestratorConfigurationList(bool value)
CreateSessionRequest & AddAiAgentConfiguration(AIAgentType key, AIAgentConfigurationData value)
CreateSessionRequest & WithTagFilter(TagFilterT &&value)
CreateSessionRequest & WithAiAgentConfiguration(AiAgentConfigurationT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_QCONNECT_API CreateSessionRequest()=default
CreateSessionRequest & WithName(NameT &&value)
CreateSessionRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
void SetAiAgentConfiguration(AiAgentConfigurationT &&value)
CreateSessionRequest & WithTags(TagsT &&value)
CreateSessionRequest & AddOrchestratorConfigurationList(OrchestratorConfigurationListT &&value)
CreateSessionRequest & WithOrchestratorConfigurationList(OrchestratorConfigurationListT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
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