AWS SDK for C++

AWS SDK for C++ Version 1.11.875

Loading...
Searching...
No Matches
AgenticRetrieveMemoryConfiguration.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/bedrock-agent-runtime/model/AgenticRetrieveMemoryPersistenceMode.h>
9#include <aws/bedrock-agent-runtime/model/AgenticRetrieveMemoryRetrievalConfig.h>
10#include <aws/bedrock-agent-runtime/model/AgenticRetrieveMemorySessionBinding.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace BedrockAgentRuntime {
24namespace Model {
25
35 public:
36 AWS_BEDROCKAGENTRUNTIME_API AgenticRetrieveMemoryConfiguration() = default;
39 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
46 inline const Aws::String& GetMemoryId() const { return m_memoryId; }
47 inline bool MemoryIdHasBeenSet() const { return m_memoryIdHasBeenSet; }
48 template <typename MemoryIdT = Aws::String>
49 void SetMemoryId(MemoryIdT&& value) {
50 m_memoryIdHasBeenSet = true;
51 m_memoryId = std::forward<MemoryIdT>(value);
52 }
53 template <typename MemoryIdT = Aws::String>
55 SetMemoryId(std::forward<MemoryIdT>(value));
56 return *this;
57 }
59
61
70 inline AgenticRetrieveMemoryPersistenceMode GetPersistenceMode() const { return m_persistenceMode; }
71 inline bool PersistenceModeHasBeenSet() const { return m_persistenceModeHasBeenSet; }
73 m_persistenceModeHasBeenSet = true;
74 m_persistenceMode = value;
75 }
77 SetPersistenceMode(value);
78 return *this;
79 }
81
83
88 inline const Aws::Vector<AgenticRetrieveMemoryRetrievalConfig>& GetRetrievalConfigs() const { return m_retrievalConfigs; }
89 inline bool RetrievalConfigsHasBeenSet() const { return m_retrievalConfigsHasBeenSet; }
90 template <typename RetrievalConfigsT = Aws::Vector<AgenticRetrieveMemoryRetrievalConfig>>
92 m_retrievalConfigsHasBeenSet = true;
93 m_retrievalConfigs = std::forward<RetrievalConfigsT>(value);
94 }
95 template <typename RetrievalConfigsT = Aws::Vector<AgenticRetrieveMemoryRetrievalConfig>>
97 SetRetrievalConfigs(std::forward<RetrievalConfigsT>(value));
98 return *this;
99 }
100 template <typename RetrievalConfigsT = AgenticRetrieveMemoryRetrievalConfig>
102 m_retrievalConfigsHasBeenSet = true;
103 m_retrievalConfigs.emplace_back(std::forward<RetrievalConfigsT>(value));
104 return *this;
105 }
107
109
116 inline const AgenticRetrieveMemorySessionBinding& GetSessionBinding() const { return m_sessionBinding; }
117 inline bool SessionBindingHasBeenSet() const { return m_sessionBindingHasBeenSet; }
118 template <typename SessionBindingT = AgenticRetrieveMemorySessionBinding>
120 m_sessionBindingHasBeenSet = true;
121 m_sessionBinding = std::forward<SessionBindingT>(value);
122 }
123 template <typename SessionBindingT = AgenticRetrieveMemorySessionBinding>
125 SetSessionBinding(std::forward<SessionBindingT>(value));
126 return *this;
127 }
129 private:
130 Aws::String m_memoryId;
131
133
135
136 AgenticRetrieveMemorySessionBinding m_sessionBinding;
137 bool m_memoryIdHasBeenSet = false;
138 bool m_persistenceModeHasBeenSet = false;
139 bool m_retrievalConfigsHasBeenSet = false;
140 bool m_sessionBindingHasBeenSet = false;
141};
142
143} // namespace Model
144} // namespace BedrockAgentRuntime
145} // namespace Aws
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BEDROCKAGENTRUNTIME_API AgenticRetrieveMemoryConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENTRUNTIME_API AgenticRetrieveMemoryConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< AgenticRetrieveMemoryRetrievalConfig > & GetRetrievalConfigs() const
AgenticRetrieveMemoryConfiguration & WithPersistenceMode(AgenticRetrieveMemoryPersistenceMode value)
AgenticRetrieveMemoryConfiguration & AddRetrievalConfigs(RetrievalConfigsT &&value)
AgenticRetrieveMemoryConfiguration & WithRetrievalConfigs(RetrievalConfigsT &&value)
AWS_BEDROCKAGENTRUNTIME_API AgenticRetrieveMemoryConfiguration()=default
AgenticRetrieveMemoryConfiguration & WithSessionBinding(SessionBindingT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue