AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
InlineSessionState.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/InvocationResultMember.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace BedrockAgentRuntime
27{
28namespace Model
29{
30
46 {
47 public:
48 AWS_BEDROCKAGENTRUNTIME_API InlineSessionState() = default;
49 AWS_BEDROCKAGENTRUNTIME_API InlineSessionState(Aws::Utils::Json::JsonView jsonValue);
50 AWS_BEDROCKAGENTRUNTIME_API InlineSessionState& operator=(Aws::Utils::Json::JsonView jsonValue);
51 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
52
53
55
58 inline const ConversationHistory& GetConversationHistory() const { return m_conversationHistory; }
59 inline bool ConversationHistoryHasBeenSet() const { return m_conversationHistoryHasBeenSet; }
60 template<typename ConversationHistoryT = ConversationHistory>
61 void SetConversationHistory(ConversationHistoryT&& value) { m_conversationHistoryHasBeenSet = true; m_conversationHistory = std::forward<ConversationHistoryT>(value); }
62 template<typename ConversationHistoryT = ConversationHistory>
63 InlineSessionState& WithConversationHistory(ConversationHistoryT&& value) { SetConversationHistory(std::forward<ConversationHistoryT>(value)); return *this;}
65
67
70 inline const Aws::Vector<InputFile>& GetFiles() const { return m_files; }
71 inline bool FilesHasBeenSet() const { return m_filesHasBeenSet; }
72 template<typename FilesT = Aws::Vector<InputFile>>
73 void SetFiles(FilesT&& value) { m_filesHasBeenSet = true; m_files = std::forward<FilesT>(value); }
74 template<typename FilesT = Aws::Vector<InputFile>>
75 InlineSessionState& WithFiles(FilesT&& value) { SetFiles(std::forward<FilesT>(value)); return *this;}
76 template<typename FilesT = InputFile>
77 InlineSessionState& AddFiles(FilesT&& value) { m_filesHasBeenSet = true; m_files.emplace_back(std::forward<FilesT>(value)); return *this; }
79
81
89 inline const Aws::String& GetInvocationId() const { return m_invocationId; }
90 inline bool InvocationIdHasBeenSet() const { return m_invocationIdHasBeenSet; }
91 template<typename InvocationIdT = Aws::String>
92 void SetInvocationId(InvocationIdT&& value) { m_invocationIdHasBeenSet = true; m_invocationId = std::forward<InvocationIdT>(value); }
93 template<typename InvocationIdT = Aws::String>
94 InlineSessionState& WithInvocationId(InvocationIdT&& value) { SetInvocationId(std::forward<InvocationIdT>(value)); return *this;}
96
98
102 inline const Aws::Map<Aws::String, Aws::String>& GetPromptSessionAttributes() const { return m_promptSessionAttributes; }
103 inline bool PromptSessionAttributesHasBeenSet() const { return m_promptSessionAttributesHasBeenSet; }
104 template<typename PromptSessionAttributesT = Aws::Map<Aws::String, Aws::String>>
105 void SetPromptSessionAttributes(PromptSessionAttributesT&& value) { m_promptSessionAttributesHasBeenSet = true; m_promptSessionAttributes = std::forward<PromptSessionAttributesT>(value); }
106 template<typename PromptSessionAttributesT = Aws::Map<Aws::String, Aws::String>>
107 InlineSessionState& WithPromptSessionAttributes(PromptSessionAttributesT&& value) { SetPromptSessionAttributes(std::forward<PromptSessionAttributesT>(value)); return *this;}
108 template<typename PromptSessionAttributesKeyT = Aws::String, typename PromptSessionAttributesValueT = Aws::String>
109 InlineSessionState& AddPromptSessionAttributes(PromptSessionAttributesKeyT&& key, PromptSessionAttributesValueT&& value) {
110 m_promptSessionAttributesHasBeenSet = true; m_promptSessionAttributes.emplace(std::forward<PromptSessionAttributesKeyT>(key), std::forward<PromptSessionAttributesValueT>(value)); return *this;
111 }
113
115
123 inline const Aws::Vector<InvocationResultMember>& GetReturnControlInvocationResults() const { return m_returnControlInvocationResults; }
124 inline bool ReturnControlInvocationResultsHasBeenSet() const { return m_returnControlInvocationResultsHasBeenSet; }
125 template<typename ReturnControlInvocationResultsT = Aws::Vector<InvocationResultMember>>
126 void SetReturnControlInvocationResults(ReturnControlInvocationResultsT&& value) { m_returnControlInvocationResultsHasBeenSet = true; m_returnControlInvocationResults = std::forward<ReturnControlInvocationResultsT>(value); }
127 template<typename ReturnControlInvocationResultsT = Aws::Vector<InvocationResultMember>>
128 InlineSessionState& WithReturnControlInvocationResults(ReturnControlInvocationResultsT&& value) { SetReturnControlInvocationResults(std::forward<ReturnControlInvocationResultsT>(value)); return *this;}
129 template<typename ReturnControlInvocationResultsT = InvocationResultMember>
130 InlineSessionState& AddReturnControlInvocationResults(ReturnControlInvocationResultsT&& value) { m_returnControlInvocationResultsHasBeenSet = true; m_returnControlInvocationResults.emplace_back(std::forward<ReturnControlInvocationResultsT>(value)); return *this; }
132
134
138 inline const Aws::Map<Aws::String, Aws::String>& GetSessionAttributes() const { return m_sessionAttributes; }
139 inline bool SessionAttributesHasBeenSet() const { return m_sessionAttributesHasBeenSet; }
140 template<typename SessionAttributesT = Aws::Map<Aws::String, Aws::String>>
141 void SetSessionAttributes(SessionAttributesT&& value) { m_sessionAttributesHasBeenSet = true; m_sessionAttributes = std::forward<SessionAttributesT>(value); }
142 template<typename SessionAttributesT = Aws::Map<Aws::String, Aws::String>>
143 InlineSessionState& WithSessionAttributes(SessionAttributesT&& value) { SetSessionAttributes(std::forward<SessionAttributesT>(value)); return *this;}
144 template<typename SessionAttributesKeyT = Aws::String, typename SessionAttributesValueT = Aws::String>
145 InlineSessionState& AddSessionAttributes(SessionAttributesKeyT&& key, SessionAttributesValueT&& value) {
146 m_sessionAttributesHasBeenSet = true; m_sessionAttributes.emplace(std::forward<SessionAttributesKeyT>(key), std::forward<SessionAttributesValueT>(value)); return *this;
147 }
149 private:
150
151 ConversationHistory m_conversationHistory;
152 bool m_conversationHistoryHasBeenSet = false;
153
155 bool m_filesHasBeenSet = false;
156
157 Aws::String m_invocationId;
158 bool m_invocationIdHasBeenSet = false;
159
160 Aws::Map<Aws::String, Aws::String> m_promptSessionAttributes;
161 bool m_promptSessionAttributesHasBeenSet = false;
162
163 Aws::Vector<InvocationResultMember> m_returnControlInvocationResults;
164 bool m_returnControlInvocationResultsHasBeenSet = false;
165
166 Aws::Map<Aws::String, Aws::String> m_sessionAttributes;
167 bool m_sessionAttributesHasBeenSet = false;
168 };
169
170} // namespace Model
171} // namespace BedrockAgentRuntime
172} // namespace Aws
const ConversationHistory & GetConversationHistory() const
AWS_BEDROCKAGENTRUNTIME_API InlineSessionState & operator=(Aws::Utils::Json::JsonView jsonValue)
InlineSessionState & AddSessionAttributes(SessionAttributesKeyT &&key, SessionAttributesValueT &&value)
const Aws::Map< Aws::String, Aws::String > & GetSessionAttributes() const
InlineSessionState & AddReturnControlInvocationResults(ReturnControlInvocationResultsT &&value)
void SetPromptSessionAttributes(PromptSessionAttributesT &&value)
const Aws::Vector< InputFile > & GetFiles() const
const Aws::Map< Aws::String, Aws::String > & GetPromptSessionAttributes() const
void SetConversationHistory(ConversationHistoryT &&value)
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
InlineSessionState & WithInvocationId(InvocationIdT &&value)
void SetReturnControlInvocationResults(ReturnControlInvocationResultsT &&value)
InlineSessionState & WithPromptSessionAttributes(PromptSessionAttributesT &&value)
AWS_BEDROCKAGENTRUNTIME_API InlineSessionState(Aws::Utils::Json::JsonView jsonValue)
InlineSessionState & WithReturnControlInvocationResults(ReturnControlInvocationResultsT &&value)
InlineSessionState & WithConversationHistory(ConversationHistoryT &&value)
const Aws::Vector< InvocationResultMember > & GetReturnControlInvocationResults() const
InlineSessionState & AddFiles(FilesT &&value)
InlineSessionState & WithSessionAttributes(SessionAttributesT &&value)
InlineSessionState & AddPromptSessionAttributes(PromptSessionAttributesKeyT &&key, PromptSessionAttributesValueT &&value)
InlineSessionState & WithFiles(FilesT &&value)
AWS_BEDROCKAGENTRUNTIME_API InlineSessionState()=default
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