AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
MemorySessionSummary.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace BedrockAgentRuntime
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_BEDROCKAGENTRUNTIME_API MemorySessionSummary() = default;
36 AWS_BEDROCKAGENTRUNTIME_API MemorySessionSummary(Aws::Utils::Json::JsonView jsonValue);
37 AWS_BEDROCKAGENTRUNTIME_API MemorySessionSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetMemoryId() const { return m_memoryId; }
46 inline bool MemoryIdHasBeenSet() const { return m_memoryIdHasBeenSet; }
47 template<typename MemoryIdT = Aws::String>
48 void SetMemoryId(MemoryIdT&& value) { m_memoryIdHasBeenSet = true; m_memoryId = std::forward<MemoryIdT>(value); }
49 template<typename MemoryIdT = Aws::String>
50 MemorySessionSummary& WithMemoryId(MemoryIdT&& value) { SetMemoryId(std::forward<MemoryIdT>(value)); return *this;}
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>
60 void SetSessionExpiryTime(SessionExpiryTimeT&& value) { m_sessionExpiryTimeHasBeenSet = true; m_sessionExpiryTime = std::forward<SessionExpiryTimeT>(value); }
61 template<typename SessionExpiryTimeT = Aws::Utils::DateTime>
62 MemorySessionSummary& WithSessionExpiryTime(SessionExpiryTimeT&& value) { SetSessionExpiryTime(std::forward<SessionExpiryTimeT>(value)); return *this;}
64
66
69 inline const Aws::String& GetSessionId() const { return m_sessionId; }
70 inline bool SessionIdHasBeenSet() const { return m_sessionIdHasBeenSet; }
71 template<typename SessionIdT = Aws::String>
72 void SetSessionId(SessionIdT&& value) { m_sessionIdHasBeenSet = true; m_sessionId = std::forward<SessionIdT>(value); }
73 template<typename SessionIdT = Aws::String>
74 MemorySessionSummary& WithSessionId(SessionIdT&& value) { SetSessionId(std::forward<SessionIdT>(value)); return *this;}
76
78
81 inline const Aws::Utils::DateTime& GetSessionStartTime() const { return m_sessionStartTime; }
82 inline bool SessionStartTimeHasBeenSet() const { return m_sessionStartTimeHasBeenSet; }
83 template<typename SessionStartTimeT = Aws::Utils::DateTime>
84 void SetSessionStartTime(SessionStartTimeT&& value) { m_sessionStartTimeHasBeenSet = true; m_sessionStartTime = std::forward<SessionStartTimeT>(value); }
85 template<typename SessionStartTimeT = Aws::Utils::DateTime>
86 MemorySessionSummary& WithSessionStartTime(SessionStartTimeT&& value) { SetSessionStartTime(std::forward<SessionStartTimeT>(value)); return *this;}
88
90
93 inline const Aws::String& GetSummaryText() const { return m_summaryText; }
94 inline bool SummaryTextHasBeenSet() const { return m_summaryTextHasBeenSet; }
95 template<typename SummaryTextT = Aws::String>
96 void SetSummaryText(SummaryTextT&& value) { m_summaryTextHasBeenSet = true; m_summaryText = std::forward<SummaryTextT>(value); }
97 template<typename SummaryTextT = Aws::String>
98 MemorySessionSummary& WithSummaryText(SummaryTextT&& value) { SetSummaryText(std::forward<SummaryTextT>(value)); return *this;}
100 private:
101
102 Aws::String m_memoryId;
103 bool m_memoryIdHasBeenSet = false;
104
105 Aws::Utils::DateTime m_sessionExpiryTime{};
106 bool m_sessionExpiryTimeHasBeenSet = false;
107
108 Aws::String m_sessionId;
109 bool m_sessionIdHasBeenSet = false;
110
111 Aws::Utils::DateTime m_sessionStartTime{};
112 bool m_sessionStartTimeHasBeenSet = false;
113
114 Aws::String m_summaryText;
115 bool m_summaryTextHasBeenSet = false;
116 };
117
118} // namespace Model
119} // namespace BedrockAgentRuntime
120} // 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::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue