AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
MemorySessionSummary.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace BedrockAgentRuntime {
21namespace Model {
22
29 public:
30 AWS_BEDROCKAGENTRUNTIME_API MemorySessionSummary() = default;
33 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetMemoryId() const { return m_memoryId; }
40 inline bool MemoryIdHasBeenSet() const { return m_memoryIdHasBeenSet; }
41 template <typename MemoryIdT = Aws::String>
42 void SetMemoryId(MemoryIdT&& value) {
43 m_memoryIdHasBeenSet = true;
44 m_memoryId = std::forward<MemoryIdT>(value);
45 }
46 template <typename MemoryIdT = Aws::String>
48 SetMemoryId(std::forward<MemoryIdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::Utils::DateTime& GetSessionExpiryTime() const { return m_sessionExpiryTime; }
58 inline bool SessionExpiryTimeHasBeenSet() const { return m_sessionExpiryTimeHasBeenSet; }
59 template <typename SessionExpiryTimeT = Aws::Utils::DateTime>
61 m_sessionExpiryTimeHasBeenSet = true;
62 m_sessionExpiryTime = std::forward<SessionExpiryTimeT>(value);
63 }
64 template <typename SessionExpiryTimeT = Aws::Utils::DateTime>
66 SetSessionExpiryTime(std::forward<SessionExpiryTimeT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetSessionId() const { return m_sessionId; }
76 inline bool SessionIdHasBeenSet() const { return m_sessionIdHasBeenSet; }
77 template <typename SessionIdT = Aws::String>
78 void SetSessionId(SessionIdT&& value) {
79 m_sessionIdHasBeenSet = true;
80 m_sessionId = std::forward<SessionIdT>(value);
81 }
82 template <typename SessionIdT = Aws::String>
84 SetSessionId(std::forward<SessionIdT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::Utils::DateTime& GetSessionStartTime() const { return m_sessionStartTime; }
94 inline bool SessionStartTimeHasBeenSet() const { return m_sessionStartTimeHasBeenSet; }
95 template <typename SessionStartTimeT = Aws::Utils::DateTime>
97 m_sessionStartTimeHasBeenSet = true;
98 m_sessionStartTime = std::forward<SessionStartTimeT>(value);
99 }
100 template <typename SessionStartTimeT = Aws::Utils::DateTime>
102 SetSessionStartTime(std::forward<SessionStartTimeT>(value));
103 return *this;
104 }
106
108
111 inline const Aws::String& GetSummaryText() const { return m_summaryText; }
112 inline bool SummaryTextHasBeenSet() const { return m_summaryTextHasBeenSet; }
113 template <typename SummaryTextT = Aws::String>
115 m_summaryTextHasBeenSet = true;
116 m_summaryText = std::forward<SummaryTextT>(value);
117 }
118 template <typename SummaryTextT = Aws::String>
120 SetSummaryText(std::forward<SummaryTextT>(value));
121 return *this;
122 }
124 private:
125 Aws::String m_memoryId;
126
127 Aws::Utils::DateTime m_sessionExpiryTime{};
128
129 Aws::String m_sessionId;
130
131 Aws::Utils::DateTime m_sessionStartTime{};
132
133 Aws::String m_summaryText;
134 bool m_memoryIdHasBeenSet = false;
135 bool m_sessionExpiryTimeHasBeenSet = false;
136 bool m_sessionIdHasBeenSet = false;
137 bool m_sessionStartTimeHasBeenSet = false;
138 bool m_summaryTextHasBeenSet = false;
139};
140
141} // namespace Model
142} // namespace BedrockAgentRuntime
143} // namespace Aws
MemorySessionSummary & WithSummaryText(SummaryTextT &&value)
MemorySessionSummary & WithMemoryId(MemoryIdT &&value)
MemorySessionSummary & WithSessionId(SessionIdT &&value)
const Aws::Utils::DateTime & GetSessionExpiryTime() const
MemorySessionSummary & WithSessionStartTime(SessionStartTimeT &&value)
AWS_BEDROCKAGENTRUNTIME_API MemorySessionSummary(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENTRUNTIME_API MemorySessionSummary()=default
MemorySessionSummary & WithSessionExpiryTime(SessionExpiryTimeT &&value)
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetSessionStartTime() const
AWS_BEDROCKAGENTRUNTIME_API MemorySessionSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue