AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
SessionState.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/bedrock-agent-runtime/model/ConversationHistory.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/bedrock-agent-runtime/model/InputFile.h>
13#include <aws/bedrock-agent-runtime/model/KnowledgeBaseConfiguration.h>
14#include <aws/bedrock-agent-runtime/model/InvocationResultMember.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace BedrockAgentRuntime
28{
29namespace Model
30{
31
48 {
49 public:
50 AWS_BEDROCKAGENTRUNTIME_API SessionState() = default;
51 AWS_BEDROCKAGENTRUNTIME_API SessionState(Aws::Utils::Json::JsonView jsonValue);
52 AWS_BEDROCKAGENTRUNTIME_API SessionState& operator=(Aws::Utils::Json::JsonView jsonValue);
53 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
54
55
57
60 inline const ConversationHistory& GetConversationHistory() const { return m_conversationHistory; }
61 inline bool ConversationHistoryHasBeenSet() const { return m_conversationHistoryHasBeenSet; }
62 template<typename ConversationHistoryT = ConversationHistory>
63 void SetConversationHistory(ConversationHistoryT&& value) { m_conversationHistoryHasBeenSet = true; m_conversationHistory = std::forward<ConversationHistoryT>(value); }
64 template<typename ConversationHistoryT = ConversationHistory>
65 SessionState& WithConversationHistory(ConversationHistoryT&& value) { SetConversationHistory(std::forward<ConversationHistoryT>(value)); return *this;}
67
69
72 inline const Aws::Vector<InputFile>& GetFiles() const { return m_files; }
73 inline bool FilesHasBeenSet() const { return m_filesHasBeenSet; }
74 template<typename FilesT = Aws::Vector<InputFile>>
75 void SetFiles(FilesT&& value) { m_filesHasBeenSet = true; m_files = std::forward<FilesT>(value); }
76 template<typename FilesT = Aws::Vector<InputFile>>
77 SessionState& WithFiles(FilesT&& value) { SetFiles(std::forward<FilesT>(value)); return *this;}
78 template<typename FilesT = InputFile>
79 SessionState& AddFiles(FilesT&& value) { m_filesHasBeenSet = true; m_files.emplace_back(std::forward<FilesT>(value)); return *this; }
81
83
93 inline const Aws::String& GetInvocationId() const { return m_invocationId; }
94 inline bool InvocationIdHasBeenSet() const { return m_invocationIdHasBeenSet; }
95 template<typename InvocationIdT = Aws::String>
96 void SetInvocationId(InvocationIdT&& value) { m_invocationIdHasBeenSet = true; m_invocationId = std::forward<InvocationIdT>(value); }
97 template<typename InvocationIdT = Aws::String>
98 SessionState& WithInvocationId(InvocationIdT&& value) { SetInvocationId(std::forward<InvocationIdT>(value)); return *this;}
100
102
106 inline const Aws::Vector<KnowledgeBaseConfiguration>& GetKnowledgeBaseConfigurations() const { return m_knowledgeBaseConfigurations; }
107 inline bool KnowledgeBaseConfigurationsHasBeenSet() const { return m_knowledgeBaseConfigurationsHasBeenSet; }
108 template<typename KnowledgeBaseConfigurationsT = Aws::Vector<KnowledgeBaseConfiguration>>
109 void SetKnowledgeBaseConfigurations(KnowledgeBaseConfigurationsT&& value) { m_knowledgeBaseConfigurationsHasBeenSet = true; m_knowledgeBaseConfigurations = std::forward<KnowledgeBaseConfigurationsT>(value); }
110 template<typename KnowledgeBaseConfigurationsT = Aws::Vector<KnowledgeBaseConfiguration>>
111 SessionState& WithKnowledgeBaseConfigurations(KnowledgeBaseConfigurationsT&& value) { SetKnowledgeBaseConfigurations(std::forward<KnowledgeBaseConfigurationsT>(value)); return *this;}
112 template<typename KnowledgeBaseConfigurationsT = KnowledgeBaseConfiguration>
113 SessionState& AddKnowledgeBaseConfigurations(KnowledgeBaseConfigurationsT&& value) { m_knowledgeBaseConfigurationsHasBeenSet = true; m_knowledgeBaseConfigurations.emplace_back(std::forward<KnowledgeBaseConfigurationsT>(value)); return *this; }
115
117
129 inline const Aws::Map<Aws::String, Aws::String>& GetPromptSessionAttributes() const { return m_promptSessionAttributes; }
130 inline bool PromptSessionAttributesHasBeenSet() const { return m_promptSessionAttributesHasBeenSet; }
131 template<typename PromptSessionAttributesT = Aws::Map<Aws::String, Aws::String>>
132 void SetPromptSessionAttributes(PromptSessionAttributesT&& value) { m_promptSessionAttributesHasBeenSet = true; m_promptSessionAttributes = std::forward<PromptSessionAttributesT>(value); }
133 template<typename PromptSessionAttributesT = Aws::Map<Aws::String, Aws::String>>
134 SessionState& WithPromptSessionAttributes(PromptSessionAttributesT&& value) { SetPromptSessionAttributes(std::forward<PromptSessionAttributesT>(value)); return *this;}
135 template<typename PromptSessionAttributesKeyT = Aws::String, typename PromptSessionAttributesValueT = Aws::String>
136 SessionState& AddPromptSessionAttributes(PromptSessionAttributesKeyT&& key, PromptSessionAttributesValueT&& value) {
137 m_promptSessionAttributesHasBeenSet = true; m_promptSessionAttributes.emplace(std::forward<PromptSessionAttributesKeyT>(key), std::forward<PromptSessionAttributesValueT>(value)); return *this;
138 }
140
142
151 inline const Aws::Vector<InvocationResultMember>& GetReturnControlInvocationResults() const { return m_returnControlInvocationResults; }
152 inline bool ReturnControlInvocationResultsHasBeenSet() const { return m_returnControlInvocationResultsHasBeenSet; }
153 template<typename ReturnControlInvocationResultsT = Aws::Vector<InvocationResultMember>>
154 void SetReturnControlInvocationResults(ReturnControlInvocationResultsT&& value) { m_returnControlInvocationResultsHasBeenSet = true; m_returnControlInvocationResults = std::forward<ReturnControlInvocationResultsT>(value); }
155 template<typename ReturnControlInvocationResultsT = Aws::Vector<InvocationResultMember>>
156 SessionState& WithReturnControlInvocationResults(ReturnControlInvocationResultsT&& value) { SetReturnControlInvocationResults(std::forward<ReturnControlInvocationResultsT>(value)); return *this;}
157 template<typename ReturnControlInvocationResultsT = InvocationResultMember>
158 SessionState& AddReturnControlInvocationResults(ReturnControlInvocationResultsT&& value) { m_returnControlInvocationResultsHasBeenSet = true; m_returnControlInvocationResults.emplace_back(std::forward<ReturnControlInvocationResultsT>(value)); return *this; }
160
162
169 inline const Aws::Map<Aws::String, Aws::String>& GetSessionAttributes() const { return m_sessionAttributes; }
170 inline bool SessionAttributesHasBeenSet() const { return m_sessionAttributesHasBeenSet; }
171 template<typename SessionAttributesT = Aws::Map<Aws::String, Aws::String>>
172 void SetSessionAttributes(SessionAttributesT&& value) { m_sessionAttributesHasBeenSet = true; m_sessionAttributes = std::forward<SessionAttributesT>(value); }
173 template<typename SessionAttributesT = Aws::Map<Aws::String, Aws::String>>
174 SessionState& WithSessionAttributes(SessionAttributesT&& value) { SetSessionAttributes(std::forward<SessionAttributesT>(value)); return *this;}
175 template<typename SessionAttributesKeyT = Aws::String, typename SessionAttributesValueT = Aws::String>
176 SessionState& AddSessionAttributes(SessionAttributesKeyT&& key, SessionAttributesValueT&& value) {
177 m_sessionAttributesHasBeenSet = true; m_sessionAttributes.emplace(std::forward<SessionAttributesKeyT>(key), std::forward<SessionAttributesValueT>(value)); return *this;
178 }
180 private:
181
182 ConversationHistory m_conversationHistory;
183 bool m_conversationHistoryHasBeenSet = false;
184
186 bool m_filesHasBeenSet = false;
187
188 Aws::String m_invocationId;
189 bool m_invocationIdHasBeenSet = false;
190
191 Aws::Vector<KnowledgeBaseConfiguration> m_knowledgeBaseConfigurations;
192 bool m_knowledgeBaseConfigurationsHasBeenSet = false;
193
194 Aws::Map<Aws::String, Aws::String> m_promptSessionAttributes;
195 bool m_promptSessionAttributesHasBeenSet = false;
196
197 Aws::Vector<InvocationResultMember> m_returnControlInvocationResults;
198 bool m_returnControlInvocationResultsHasBeenSet = false;
199
200 Aws::Map<Aws::String, Aws::String> m_sessionAttributes;
201 bool m_sessionAttributesHasBeenSet = false;
202 };
203
204} // namespace Model
205} // namespace BedrockAgentRuntime
206} // namespace Aws
void SetPromptSessionAttributes(PromptSessionAttributesT &&value)
const Aws::Map< Aws::String, Aws::String > & GetSessionAttributes() const
const Aws::Vector< KnowledgeBaseConfiguration > & GetKnowledgeBaseConfigurations() const
SessionState & AddPromptSessionAttributes(PromptSessionAttributesKeyT &&key, PromptSessionAttributesValueT &&value)
AWS_BEDROCKAGENTRUNTIME_API SessionState()=default
AWS_BEDROCKAGENTRUNTIME_API SessionState & operator=(Aws::Utils::Json::JsonView jsonValue)
SessionState & WithInvocationId(InvocationIdT &&value)
const Aws::Vector< InvocationResultMember > & GetReturnControlInvocationResults() const
SessionState & WithFiles(FilesT &&value)
const Aws::Vector< InputFile > & GetFiles() const
SessionState & AddSessionAttributes(SessionAttributesKeyT &&key, SessionAttributesValueT &&value)
const Aws::String & GetInvocationId() const
AWS_BEDROCKAGENTRUNTIME_API SessionState(Aws::Utils::Json::JsonView jsonValue)
SessionState & WithConversationHistory(ConversationHistoryT &&value)
SessionState & WithSessionAttributes(SessionAttributesT &&value)
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
void SetSessionAttributes(SessionAttributesT &&value)
SessionState & AddReturnControlInvocationResults(ReturnControlInvocationResultsT &&value)
void SetKnowledgeBaseConfigurations(KnowledgeBaseConfigurationsT &&value)
void SetConversationHistory(ConversationHistoryT &&value)
SessionState & AddFiles(FilesT &&value)
const Aws::Map< Aws::String, Aws::String > & GetPromptSessionAttributes() const
SessionState & WithPromptSessionAttributes(PromptSessionAttributesT &&value)
const ConversationHistory & GetConversationHistory() const
void SetInvocationId(InvocationIdT &&value)
SessionState & WithKnowledgeBaseConfigurations(KnowledgeBaseConfigurationsT &&value)
SessionState & AddKnowledgeBaseConfigurations(KnowledgeBaseConfigurationsT &&value)
SessionState & WithReturnControlInvocationResults(ReturnControlInvocationResultsT &&value)
void SetReturnControlInvocationResults(ReturnControlInvocationResultsT &&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
Aws::Utils::Json::JsonValue JsonValue