AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.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() = default;
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
48 inline const Aws::String& GetClientToken() const { return m_clientToken; }
49 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
50 template<typename ClientTokenT = Aws::String>
51 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
52 template<typename ClientTokenT = Aws::String>
53 CreateSessionRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
55
57
61 inline const Aws::String& GetAssistantId() const { return m_assistantId; }
62 inline bool AssistantIdHasBeenSet() const { return m_assistantIdHasBeenSet; }
63 template<typename AssistantIdT = Aws::String>
64 void SetAssistantId(AssistantIdT&& value) { m_assistantIdHasBeenSet = true; m_assistantId = std::forward<AssistantIdT>(value); }
65 template<typename AssistantIdT = Aws::String>
66 CreateSessionRequest& WithAssistantId(AssistantIdT&& value) { SetAssistantId(std::forward<AssistantIdT>(value)); return *this;}
68
70
73 inline const Aws::String& GetName() const { return m_name; }
74 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
75 template<typename NameT = Aws::String>
76 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
77 template<typename NameT = Aws::String>
78 CreateSessionRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
80
82
85 inline const Aws::String& GetDescription() const { return m_description; }
86 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
87 template<typename DescriptionT = Aws::String>
88 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
89 template<typename DescriptionT = Aws::String>
90 CreateSessionRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
92
94
97 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
98 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
99 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
100 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
101 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
102 CreateSessionRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
103 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
104 CreateSessionRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
105 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
106 }
108
110
113 inline const TagFilter& GetTagFilter() const { return m_tagFilter; }
114 inline bool TagFilterHasBeenSet() const { return m_tagFilterHasBeenSet; }
115 template<typename TagFilterT = TagFilter>
116 void SetTagFilter(TagFilterT&& value) { m_tagFilterHasBeenSet = true; m_tagFilter = std::forward<TagFilterT>(value); }
117 template<typename TagFilterT = TagFilter>
118 CreateSessionRequest& WithTagFilter(TagFilterT&& value) { SetTagFilter(std::forward<TagFilterT>(value)); return *this;}
120
122
126 inline const Aws::Map<AIAgentType, AIAgentConfigurationData>& GetAiAgentConfiguration() const { return m_aiAgentConfiguration; }
127 inline bool AiAgentConfigurationHasBeenSet() const { return m_aiAgentConfigurationHasBeenSet; }
128 template<typename AiAgentConfigurationT = Aws::Map<AIAgentType, AIAgentConfigurationData>>
129 void SetAiAgentConfiguration(AiAgentConfigurationT&& value) { m_aiAgentConfigurationHasBeenSet = true; m_aiAgentConfiguration = std::forward<AiAgentConfigurationT>(value); }
130 template<typename AiAgentConfigurationT = Aws::Map<AIAgentType, AIAgentConfigurationData>>
131 CreateSessionRequest& WithAiAgentConfiguration(AiAgentConfigurationT&& value) { SetAiAgentConfiguration(std::forward<AiAgentConfigurationT>(value)); return *this;}
133 m_aiAgentConfigurationHasBeenSet = true; m_aiAgentConfiguration.emplace(key, value); return *this;
134 }
136 private:
137
139 bool m_clientTokenHasBeenSet = true;
140
141 Aws::String m_assistantId;
142 bool m_assistantIdHasBeenSet = false;
143
144 Aws::String m_name;
145 bool m_nameHasBeenSet = false;
146
147 Aws::String m_description;
148 bool m_descriptionHasBeenSet = false;
149
151 bool m_tagsHasBeenSet = false;
152
153 TagFilter m_tagFilter;
154 bool m_tagFilterHasBeenSet = false;
155
157 bool m_aiAgentConfigurationHasBeenSet = false;
158 };
159
160} // namespace Model
161} // namespace QConnect
162} // namespace Aws
CreateSessionRequest & WithAssistantId(AssistantIdT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::Map< AIAgentType, AIAgentConfigurationData > & GetAiAgentConfiguration() const
CreateSessionRequest & WithClientToken(ClientTokenT &&value)
AWS_QCONNECT_API Aws::String SerializePayload() const override
CreateSessionRequest & WithDescription(DescriptionT &&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)
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