AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateSessionRequest.h
1
6#pragma once
7#include <aws/qconnect/QConnect_EXPORTS.h>
8#include <aws/qconnect/QConnectRequest.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/qconnect/model/TagFilter.h>
12#include <aws/qconnect/model/AIAgentType.h>
13#include <aws/qconnect/model/AIAgentConfigurationData.h>
14#include <utility>
15#include <aws/core/utils/UUID.h>
16
17namespace Aws
18{
19namespace QConnect
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_QCONNECT_API CreateSessionRequest();
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateSession"; }
36
37 AWS_QCONNECT_API Aws::String SerializePayload() const override;
38
39
41
45 inline const Aws::Map<AIAgentType, AIAgentConfigurationData>& GetAiAgentConfiguration() const{ return m_aiAgentConfiguration; }
46 inline bool AiAgentConfigurationHasBeenSet() const { return m_aiAgentConfigurationHasBeenSet; }
47 inline void SetAiAgentConfiguration(const Aws::Map<AIAgentType, AIAgentConfigurationData>& value) { m_aiAgentConfigurationHasBeenSet = true; m_aiAgentConfiguration = value; }
48 inline void SetAiAgentConfiguration(Aws::Map<AIAgentType, AIAgentConfigurationData>&& value) { m_aiAgentConfigurationHasBeenSet = true; m_aiAgentConfiguration = std::move(value); }
51 inline CreateSessionRequest& AddAiAgentConfiguration(const AIAgentType& key, const AIAgentConfigurationData& value) { m_aiAgentConfigurationHasBeenSet = true; m_aiAgentConfiguration.emplace(key, value); return *this; }
52 inline CreateSessionRequest& AddAiAgentConfiguration(AIAgentType&& key, const AIAgentConfigurationData& value) { m_aiAgentConfigurationHasBeenSet = true; m_aiAgentConfiguration.emplace(std::move(key), value); return *this; }
53 inline CreateSessionRequest& AddAiAgentConfiguration(const AIAgentType& key, AIAgentConfigurationData&& value) { m_aiAgentConfigurationHasBeenSet = true; m_aiAgentConfiguration.emplace(key, std::move(value)); return *this; }
54 inline CreateSessionRequest& AddAiAgentConfiguration(AIAgentType&& key, AIAgentConfigurationData&& value) { m_aiAgentConfigurationHasBeenSet = true; m_aiAgentConfiguration.emplace(std::move(key), std::move(value)); return *this; }
56
58
62 inline const Aws::String& GetAssistantId() const{ return m_assistantId; }
63 inline bool AssistantIdHasBeenSet() const { return m_assistantIdHasBeenSet; }
64 inline void SetAssistantId(const Aws::String& value) { m_assistantIdHasBeenSet = true; m_assistantId = value; }
65 inline void SetAssistantId(Aws::String&& value) { m_assistantIdHasBeenSet = true; m_assistantId = std::move(value); }
66 inline void SetAssistantId(const char* value) { m_assistantIdHasBeenSet = true; m_assistantId.assign(value); }
67 inline CreateSessionRequest& WithAssistantId(const Aws::String& value) { SetAssistantId(value); return *this;}
68 inline CreateSessionRequest& WithAssistantId(Aws::String&& value) { SetAssistantId(std::move(value)); return *this;}
69 inline CreateSessionRequest& WithAssistantId(const char* value) { SetAssistantId(value); return *this;}
71
73
80 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
81 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
82 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
83 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
84 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
85 inline CreateSessionRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
86 inline CreateSessionRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
87 inline CreateSessionRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
89
91
94 inline const Aws::String& GetDescription() const{ return m_description; }
95 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
96 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
97 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
98 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
99 inline CreateSessionRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
100 inline CreateSessionRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
101 inline CreateSessionRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
103
105
108 inline const Aws::String& GetName() const{ return m_name; }
109 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
110 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
111 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
112 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
113 inline CreateSessionRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
114 inline CreateSessionRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
115 inline CreateSessionRequest& WithName(const char* value) { SetName(value); return *this;}
117
119
122 inline const TagFilter& GetTagFilter() const{ return m_tagFilter; }
123 inline bool TagFilterHasBeenSet() const { return m_tagFilterHasBeenSet; }
124 inline void SetTagFilter(const TagFilter& value) { m_tagFilterHasBeenSet = true; m_tagFilter = value; }
125 inline void SetTagFilter(TagFilter&& value) { m_tagFilterHasBeenSet = true; m_tagFilter = std::move(value); }
126 inline CreateSessionRequest& WithTagFilter(const TagFilter& value) { SetTagFilter(value); return *this;}
127 inline CreateSessionRequest& WithTagFilter(TagFilter&& value) { SetTagFilter(std::move(value)); return *this;}
129
131
134 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
135 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
136 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
137 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
138 inline CreateSessionRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
139 inline CreateSessionRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
140 inline CreateSessionRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
141 inline CreateSessionRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
142 inline CreateSessionRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
143 inline CreateSessionRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
144 inline CreateSessionRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
145 inline CreateSessionRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
146 inline CreateSessionRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
148 private:
149
151 bool m_aiAgentConfigurationHasBeenSet = false;
152
153 Aws::String m_assistantId;
154 bool m_assistantIdHasBeenSet = false;
155
156 Aws::String m_clientToken;
157 bool m_clientTokenHasBeenSet = false;
158
159 Aws::String m_description;
160 bool m_descriptionHasBeenSet = false;
161
162 Aws::String m_name;
163 bool m_nameHasBeenSet = false;
164
165 TagFilter m_tagFilter;
166 bool m_tagFilterHasBeenSet = false;
167
169 bool m_tagsHasBeenSet = false;
170 };
171
172} // namespace Model
173} // namespace QConnect
174} // namespace Aws
CreateSessionRequest & WithTagFilter(TagFilter &&value)
CreateSessionRequest & WithDescription(const char *value)
virtual const char * GetServiceRequestName() const override
CreateSessionRequest & AddTags(Aws::String &&key, const char *value)
void SetAiAgentConfiguration(const Aws::Map< AIAgentType, AIAgentConfigurationData > &value)
CreateSessionRequest & WithAssistantId(const char *value)
CreateSessionRequest & AddTags(const Aws::String &key, Aws::String &&value)
const Aws::Map< AIAgentType, AIAgentConfigurationData > & GetAiAgentConfiguration() const
CreateSessionRequest & WithClientToken(const char *value)
void SetClientToken(const Aws::String &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateSessionRequest & AddTags(const char *key, const char *value)
AWS_QCONNECT_API Aws::String SerializePayload() const override
CreateSessionRequest & WithAssistantId(Aws::String &&value)
CreateSessionRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateSessionRequest & WithAiAgentConfiguration(const Aws::Map< AIAgentType, AIAgentConfigurationData > &value)
CreateSessionRequest & WithClientToken(const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateSessionRequest & AddAiAgentConfiguration(const AIAgentType &key, AIAgentConfigurationData &&value)
CreateSessionRequest & WithDescription(const Aws::String &value)
CreateSessionRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateSessionRequest & WithName(const Aws::String &value)
CreateSessionRequest & AddAiAgentConfiguration(AIAgentType &&key, const AIAgentConfigurationData &value)
CreateSessionRequest & WithClientToken(Aws::String &&value)
CreateSessionRequest & WithAssistantId(const Aws::String &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateSessionRequest & WithAiAgentConfiguration(Aws::Map< AIAgentType, AIAgentConfigurationData > &&value)
CreateSessionRequest & AddAiAgentConfiguration(AIAgentType &&key, AIAgentConfigurationData &&value)
CreateSessionRequest & WithName(Aws::String &&value)
void SetDescription(const Aws::String &value)
CreateSessionRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
void SetAssistantId(const Aws::String &value)
CreateSessionRequest & WithTagFilter(const TagFilter &value)
CreateSessionRequest & WithName(const char *value)
CreateSessionRequest & AddTags(const char *key, Aws::String &&value)
CreateSessionRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateSessionRequest & WithDescription(Aws::String &&value)
CreateSessionRequest & AddTags(Aws::String &&key, Aws::String &&value)
void SetAiAgentConfiguration(Aws::Map< AIAgentType, AIAgentConfigurationData > &&value)
CreateSessionRequest & AddAiAgentConfiguration(const AIAgentType &key, const AIAgentConfigurationData &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