AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SessionState.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/bedrock-agent-runtime/model/InputFile.h>
12#include <aws/bedrock-agent-runtime/model/KnowledgeBaseConfiguration.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
47 {
48 public:
49 AWS_BEDROCKAGENTRUNTIME_API SessionState();
50 AWS_BEDROCKAGENTRUNTIME_API SessionState(Aws::Utils::Json::JsonView jsonValue);
51 AWS_BEDROCKAGENTRUNTIME_API SessionState& operator=(Aws::Utils::Json::JsonView jsonValue);
52 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
53
54
56
59 inline const Aws::Vector<InputFile>& GetFiles() const{ return m_files; }
60 inline bool FilesHasBeenSet() const { return m_filesHasBeenSet; }
61 inline void SetFiles(const Aws::Vector<InputFile>& value) { m_filesHasBeenSet = true; m_files = value; }
62 inline void SetFiles(Aws::Vector<InputFile>&& value) { m_filesHasBeenSet = true; m_files = std::move(value); }
63 inline SessionState& WithFiles(const Aws::Vector<InputFile>& value) { SetFiles(value); return *this;}
64 inline SessionState& WithFiles(Aws::Vector<InputFile>&& value) { SetFiles(std::move(value)); return *this;}
65 inline SessionState& AddFiles(const InputFile& value) { m_filesHasBeenSet = true; m_files.push_back(value); return *this; }
66 inline SessionState& AddFiles(InputFile&& value) { m_filesHasBeenSet = true; m_files.push_back(std::move(value)); return *this; }
68
70
80 inline const Aws::String& GetInvocationId() const{ return m_invocationId; }
81 inline bool InvocationIdHasBeenSet() const { return m_invocationIdHasBeenSet; }
82 inline void SetInvocationId(const Aws::String& value) { m_invocationIdHasBeenSet = true; m_invocationId = value; }
83 inline void SetInvocationId(Aws::String&& value) { m_invocationIdHasBeenSet = true; m_invocationId = std::move(value); }
84 inline void SetInvocationId(const char* value) { m_invocationIdHasBeenSet = true; m_invocationId.assign(value); }
85 inline SessionState& WithInvocationId(const Aws::String& value) { SetInvocationId(value); return *this;}
86 inline SessionState& WithInvocationId(Aws::String&& value) { SetInvocationId(std::move(value)); return *this;}
87 inline SessionState& WithInvocationId(const char* value) { SetInvocationId(value); return *this;}
89
91
95 inline const Aws::Vector<KnowledgeBaseConfiguration>& GetKnowledgeBaseConfigurations() const{ return m_knowledgeBaseConfigurations; }
96 inline bool KnowledgeBaseConfigurationsHasBeenSet() const { return m_knowledgeBaseConfigurationsHasBeenSet; }
97 inline void SetKnowledgeBaseConfigurations(const Aws::Vector<KnowledgeBaseConfiguration>& value) { m_knowledgeBaseConfigurationsHasBeenSet = true; m_knowledgeBaseConfigurations = value; }
98 inline void SetKnowledgeBaseConfigurations(Aws::Vector<KnowledgeBaseConfiguration>&& value) { m_knowledgeBaseConfigurationsHasBeenSet = true; m_knowledgeBaseConfigurations = std::move(value); }
101 inline SessionState& AddKnowledgeBaseConfigurations(const KnowledgeBaseConfiguration& value) { m_knowledgeBaseConfigurationsHasBeenSet = true; m_knowledgeBaseConfigurations.push_back(value); return *this; }
102 inline SessionState& AddKnowledgeBaseConfigurations(KnowledgeBaseConfiguration&& value) { m_knowledgeBaseConfigurationsHasBeenSet = true; m_knowledgeBaseConfigurations.push_back(std::move(value)); return *this; }
104
106
113 inline const Aws::Map<Aws::String, Aws::String>& GetPromptSessionAttributes() const{ return m_promptSessionAttributes; }
114 inline bool PromptSessionAttributesHasBeenSet() const { return m_promptSessionAttributesHasBeenSet; }
115 inline void SetPromptSessionAttributes(const Aws::Map<Aws::String, Aws::String>& value) { m_promptSessionAttributesHasBeenSet = true; m_promptSessionAttributes = value; }
116 inline void SetPromptSessionAttributes(Aws::Map<Aws::String, Aws::String>&& value) { m_promptSessionAttributesHasBeenSet = true; m_promptSessionAttributes = std::move(value); }
119 inline SessionState& AddPromptSessionAttributes(const Aws::String& key, const Aws::String& value) { m_promptSessionAttributesHasBeenSet = true; m_promptSessionAttributes.emplace(key, value); return *this; }
120 inline SessionState& AddPromptSessionAttributes(Aws::String&& key, const Aws::String& value) { m_promptSessionAttributesHasBeenSet = true; m_promptSessionAttributes.emplace(std::move(key), value); return *this; }
121 inline SessionState& AddPromptSessionAttributes(const Aws::String& key, Aws::String&& value) { m_promptSessionAttributesHasBeenSet = true; m_promptSessionAttributes.emplace(key, std::move(value)); return *this; }
122 inline SessionState& AddPromptSessionAttributes(Aws::String&& key, Aws::String&& value) { m_promptSessionAttributesHasBeenSet = true; m_promptSessionAttributes.emplace(std::move(key), std::move(value)); return *this; }
123 inline SessionState& AddPromptSessionAttributes(const char* key, Aws::String&& value) { m_promptSessionAttributesHasBeenSet = true; m_promptSessionAttributes.emplace(key, std::move(value)); return *this; }
124 inline SessionState& AddPromptSessionAttributes(Aws::String&& key, const char* value) { m_promptSessionAttributesHasBeenSet = true; m_promptSessionAttributes.emplace(std::move(key), value); return *this; }
125 inline SessionState& AddPromptSessionAttributes(const char* key, const char* value) { m_promptSessionAttributesHasBeenSet = true; m_promptSessionAttributes.emplace(key, value); return *this; }
127
129
138 inline const Aws::Vector<InvocationResultMember>& GetReturnControlInvocationResults() const{ return m_returnControlInvocationResults; }
139 inline bool ReturnControlInvocationResultsHasBeenSet() const { return m_returnControlInvocationResultsHasBeenSet; }
140 inline void SetReturnControlInvocationResults(const Aws::Vector<InvocationResultMember>& value) { m_returnControlInvocationResultsHasBeenSet = true; m_returnControlInvocationResults = value; }
141 inline void SetReturnControlInvocationResults(Aws::Vector<InvocationResultMember>&& value) { m_returnControlInvocationResultsHasBeenSet = true; m_returnControlInvocationResults = std::move(value); }
144 inline SessionState& AddReturnControlInvocationResults(const InvocationResultMember& value) { m_returnControlInvocationResultsHasBeenSet = true; m_returnControlInvocationResults.push_back(value); return *this; }
145 inline SessionState& AddReturnControlInvocationResults(InvocationResultMember&& value) { m_returnControlInvocationResultsHasBeenSet = true; m_returnControlInvocationResults.push_back(std::move(value)); return *this; }
147
149
153 inline const Aws::Map<Aws::String, Aws::String>& GetSessionAttributes() const{ return m_sessionAttributes; }
154 inline bool SessionAttributesHasBeenSet() const { return m_sessionAttributesHasBeenSet; }
155 inline void SetSessionAttributes(const Aws::Map<Aws::String, Aws::String>& value) { m_sessionAttributesHasBeenSet = true; m_sessionAttributes = value; }
156 inline void SetSessionAttributes(Aws::Map<Aws::String, Aws::String>&& value) { m_sessionAttributesHasBeenSet = true; m_sessionAttributes = std::move(value); }
159 inline SessionState& AddSessionAttributes(const Aws::String& key, const Aws::String& value) { m_sessionAttributesHasBeenSet = true; m_sessionAttributes.emplace(key, value); return *this; }
160 inline SessionState& AddSessionAttributes(Aws::String&& key, const Aws::String& value) { m_sessionAttributesHasBeenSet = true; m_sessionAttributes.emplace(std::move(key), value); return *this; }
161 inline SessionState& AddSessionAttributes(const Aws::String& key, Aws::String&& value) { m_sessionAttributesHasBeenSet = true; m_sessionAttributes.emplace(key, std::move(value)); return *this; }
162 inline SessionState& AddSessionAttributes(Aws::String&& key, Aws::String&& value) { m_sessionAttributesHasBeenSet = true; m_sessionAttributes.emplace(std::move(key), std::move(value)); return *this; }
163 inline SessionState& AddSessionAttributes(const char* key, Aws::String&& value) { m_sessionAttributesHasBeenSet = true; m_sessionAttributes.emplace(key, std::move(value)); return *this; }
164 inline SessionState& AddSessionAttributes(Aws::String&& key, const char* value) { m_sessionAttributesHasBeenSet = true; m_sessionAttributes.emplace(std::move(key), value); return *this; }
165 inline SessionState& AddSessionAttributes(const char* key, const char* value) { m_sessionAttributesHasBeenSet = true; m_sessionAttributes.emplace(key, value); return *this; }
167 private:
168
170 bool m_filesHasBeenSet = false;
171
172 Aws::String m_invocationId;
173 bool m_invocationIdHasBeenSet = false;
174
175 Aws::Vector<KnowledgeBaseConfiguration> m_knowledgeBaseConfigurations;
176 bool m_knowledgeBaseConfigurationsHasBeenSet = false;
177
178 Aws::Map<Aws::String, Aws::String> m_promptSessionAttributes;
179 bool m_promptSessionAttributesHasBeenSet = false;
180
181 Aws::Vector<InvocationResultMember> m_returnControlInvocationResults;
182 bool m_returnControlInvocationResultsHasBeenSet = false;
183
184 Aws::Map<Aws::String, Aws::String> m_sessionAttributes;
185 bool m_sessionAttributesHasBeenSet = false;
186 };
187
188} // namespace Model
189} // namespace BedrockAgentRuntime
190} // namespace Aws
SessionState & WithKnowledgeBaseConfigurations(const Aws::Vector< KnowledgeBaseConfiguration > &value)
void SetFiles(const Aws::Vector< InputFile > &value)
SessionState & WithPromptSessionAttributes(const Aws::Map< Aws::String, Aws::String > &value)
SessionState & AddKnowledgeBaseConfigurations(KnowledgeBaseConfiguration &&value)
const Aws::Map< Aws::String, Aws::String > & GetSessionAttributes() const
const Aws::Vector< KnowledgeBaseConfiguration > & GetKnowledgeBaseConfigurations() const
SessionState & AddSessionAttributes(Aws::String &&key, const Aws::String &value)
void SetSessionAttributes(const Aws::Map< Aws::String, Aws::String > &value)
AWS_BEDROCKAGENTRUNTIME_API SessionState()
AWS_BEDROCKAGENTRUNTIME_API SessionState & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< InvocationResultMember > & GetReturnControlInvocationResults() const
SessionState & WithFiles(const Aws::Vector< InputFile > &value)
SessionState & AddReturnControlInvocationResults(const InvocationResultMember &value)
SessionState & WithInvocationId(const char *value)
const Aws::Vector< InputFile > & GetFiles() const
SessionState & WithFiles(Aws::Vector< InputFile > &&value)
SessionState & WithKnowledgeBaseConfigurations(Aws::Vector< KnowledgeBaseConfiguration > &&value)
SessionState & AddSessionAttributes(Aws::String &&key, Aws::String &&value)
SessionState & AddPromptSessionAttributes(const char *key, Aws::String &&value)
SessionState & WithSessionAttributes(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::String & GetInvocationId() const
SessionState & AddSessionAttributes(Aws::String &&key, const char *value)
SessionState & AddSessionAttributes(const char *key, Aws::String &&value)
AWS_BEDROCKAGENTRUNTIME_API SessionState(Aws::Utils::Json::JsonView jsonValue)
void SetPromptSessionAttributes(Aws::Map< Aws::String, Aws::String > &&value)
void SetSessionAttributes(Aws::Map< Aws::String, Aws::String > &&value)
SessionState & AddReturnControlInvocationResults(InvocationResultMember &&value)
SessionState & AddSessionAttributes(const Aws::String &key, Aws::String &&value)
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
SessionState & AddFiles(InputFile &&value)
SessionState & AddPromptSessionAttributes(Aws::String &&key, const char *value)
SessionState & AddPromptSessionAttributes(const char *key, const char *value)
SessionState & WithSessionAttributes(Aws::Map< Aws::String, Aws::String > &&value)
SessionState & WithPromptSessionAttributes(Aws::Map< Aws::String, Aws::String > &&value)
SessionState & WithReturnControlInvocationResults(Aws::Vector< InvocationResultMember > &&value)
void SetPromptSessionAttributes(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::Map< Aws::String, Aws::String > & GetPromptSessionAttributes() const
SessionState & AddPromptSessionAttributes(Aws::String &&key, const Aws::String &value)
SessionState & AddPromptSessionAttributes(Aws::String &&key, Aws::String &&value)
SessionState & AddKnowledgeBaseConfigurations(const KnowledgeBaseConfiguration &value)
SessionState & WithInvocationId(Aws::String &&value)
SessionState & AddSessionAttributes(const Aws::String &key, const Aws::String &value)
SessionState & WithInvocationId(const Aws::String &value)
void SetReturnControlInvocationResults(const Aws::Vector< InvocationResultMember > &value)
void SetKnowledgeBaseConfigurations(Aws::Vector< KnowledgeBaseConfiguration > &&value)
void SetReturnControlInvocationResults(Aws::Vector< InvocationResultMember > &&value)
SessionState & AddFiles(const InputFile &value)
SessionState & AddPromptSessionAttributes(const Aws::String &key, Aws::String &&value)
void SetKnowledgeBaseConfigurations(const Aws::Vector< KnowledgeBaseConfiguration > &value)
SessionState & AddPromptSessionAttributes(const Aws::String &key, const Aws::String &value)
void SetInvocationId(const Aws::String &value)
void SetFiles(Aws::Vector< InputFile > &&value)
SessionState & AddSessionAttributes(const char *key, const char *value)
SessionState & WithReturnControlInvocationResults(const Aws::Vector< InvocationResultMember > &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