AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
Memory.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/bedrock-agent-runtime/model/MemorySessionSummary.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace BedrockAgentRuntime {
20namespace Model {
21
27class Memory {
28 public:
29 AWS_BEDROCKAGENTRUNTIME_API Memory() = default;
30 AWS_BEDROCKAGENTRUNTIME_API Memory(Aws::Utils::Json::JsonView jsonValue);
32 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const MemorySessionSummary& GetSessionSummary() const { return m_sessionSummary; }
39 inline bool SessionSummaryHasBeenSet() const { return m_sessionSummaryHasBeenSet; }
40 template <typename SessionSummaryT = MemorySessionSummary>
42 m_sessionSummaryHasBeenSet = true;
43 m_sessionSummary = std::forward<SessionSummaryT>(value);
44 }
45 template <typename SessionSummaryT = MemorySessionSummary>
47 SetSessionSummary(std::forward<SessionSummaryT>(value));
48 return *this;
49 }
51 private:
52 MemorySessionSummary m_sessionSummary;
53 bool m_sessionSummaryHasBeenSet = false;
54};
55
56} // namespace Model
57} // namespace BedrockAgentRuntime
58} // namespace Aws
Memory & WithSessionSummary(SessionSummaryT &&value)
Definition Memory.h:46
void SetSessionSummary(SessionSummaryT &&value)
Definition Memory.h:41
AWS_BEDROCKAGENTRUNTIME_API Memory & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENTRUNTIME_API Memory(Aws::Utils::Json::JsonView jsonValue)
const MemorySessionSummary & GetSessionSummary() const
Definition Memory.h:38
AWS_BEDROCKAGENTRUNTIME_API Memory()=default
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::Utils::Json::JsonValue JsonValue