AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetMemoryId(const Aws::String& value) { m_memoryIdHasBeenSet = true; m_memoryId = value; }
48 inline void SetMemoryId(Aws::String&& value) { m_memoryIdHasBeenSet = true; m_memoryId = std::move(value); }
49 inline void SetMemoryId(const char* value) { m_memoryIdHasBeenSet = true; m_memoryId.assign(value); }
50 inline MemorySessionSummary& WithMemoryId(const Aws::String& value) { SetMemoryId(value); return *this;}
51 inline MemorySessionSummary& WithMemoryId(Aws::String&& value) { SetMemoryId(std::move(value)); return *this;}
52 inline MemorySessionSummary& WithMemoryId(const char* value) { SetMemoryId(value); return *this;}
54
56
59 inline const Aws::Utils::DateTime& GetSessionExpiryTime() const{ return m_sessionExpiryTime; }
60 inline bool SessionExpiryTimeHasBeenSet() const { return m_sessionExpiryTimeHasBeenSet; }
61 inline void SetSessionExpiryTime(const Aws::Utils::DateTime& value) { m_sessionExpiryTimeHasBeenSet = true; m_sessionExpiryTime = value; }
62 inline void SetSessionExpiryTime(Aws::Utils::DateTime&& value) { m_sessionExpiryTimeHasBeenSet = true; m_sessionExpiryTime = std::move(value); }
64 inline MemorySessionSummary& WithSessionExpiryTime(Aws::Utils::DateTime&& value) { SetSessionExpiryTime(std::move(value)); return *this;}
66
68
71 inline const Aws::String& GetSessionId() const{ return m_sessionId; }
72 inline bool SessionIdHasBeenSet() const { return m_sessionIdHasBeenSet; }
73 inline void SetSessionId(const Aws::String& value) { m_sessionIdHasBeenSet = true; m_sessionId = value; }
74 inline void SetSessionId(Aws::String&& value) { m_sessionIdHasBeenSet = true; m_sessionId = std::move(value); }
75 inline void SetSessionId(const char* value) { m_sessionIdHasBeenSet = true; m_sessionId.assign(value); }
76 inline MemorySessionSummary& WithSessionId(const Aws::String& value) { SetSessionId(value); return *this;}
77 inline MemorySessionSummary& WithSessionId(Aws::String&& value) { SetSessionId(std::move(value)); return *this;}
78 inline MemorySessionSummary& WithSessionId(const char* value) { SetSessionId(value); return *this;}
80
82
85 inline const Aws::Utils::DateTime& GetSessionStartTime() const{ return m_sessionStartTime; }
86 inline bool SessionStartTimeHasBeenSet() const { return m_sessionStartTimeHasBeenSet; }
87 inline void SetSessionStartTime(const Aws::Utils::DateTime& value) { m_sessionStartTimeHasBeenSet = true; m_sessionStartTime = value; }
88 inline void SetSessionStartTime(Aws::Utils::DateTime&& value) { m_sessionStartTimeHasBeenSet = true; m_sessionStartTime = std::move(value); }
90 inline MemorySessionSummary& WithSessionStartTime(Aws::Utils::DateTime&& value) { SetSessionStartTime(std::move(value)); return *this;}
92
94
97 inline const Aws::String& GetSummaryText() const{ return m_summaryText; }
98 inline bool SummaryTextHasBeenSet() const { return m_summaryTextHasBeenSet; }
99 inline void SetSummaryText(const Aws::String& value) { m_summaryTextHasBeenSet = true; m_summaryText = value; }
100 inline void SetSummaryText(Aws::String&& value) { m_summaryTextHasBeenSet = true; m_summaryText = std::move(value); }
101 inline void SetSummaryText(const char* value) { m_summaryTextHasBeenSet = true; m_summaryText.assign(value); }
102 inline MemorySessionSummary& WithSummaryText(const Aws::String& value) { SetSummaryText(value); return *this;}
103 inline MemorySessionSummary& WithSummaryText(Aws::String&& value) { SetSummaryText(std::move(value)); return *this;}
104 inline MemorySessionSummary& WithSummaryText(const char* value) { SetSummaryText(value); return *this;}
106 private:
107
108 Aws::String m_memoryId;
109 bool m_memoryIdHasBeenSet = false;
110
111 Aws::Utils::DateTime m_sessionExpiryTime;
112 bool m_sessionExpiryTimeHasBeenSet = false;
113
114 Aws::String m_sessionId;
115 bool m_sessionIdHasBeenSet = false;
116
117 Aws::Utils::DateTime m_sessionStartTime;
118 bool m_sessionStartTimeHasBeenSet = false;
119
120 Aws::String m_summaryText;
121 bool m_summaryTextHasBeenSet = false;
122 };
123
124} // namespace Model
125} // namespace BedrockAgentRuntime
126} // namespace Aws
MemorySessionSummary & WithSummaryText(const char *value)
MemorySessionSummary & WithSessionId(const Aws::String &value)
MemorySessionSummary & WithMemoryId(const char *value)
MemorySessionSummary & WithSessionExpiryTime(const Aws::Utils::DateTime &value)
void SetSessionExpiryTime(const Aws::Utils::DateTime &value)
MemorySessionSummary & WithSessionId(Aws::String &&value)
const Aws::Utils::DateTime & GetSessionExpiryTime() const
MemorySessionSummary & WithSummaryText(const Aws::String &value)
MemorySessionSummary & WithSessionStartTime(Aws::Utils::DateTime &&value)
AWS_BEDROCKAGENTRUNTIME_API MemorySessionSummary(Aws::Utils::Json::JsonView jsonValue)
MemorySessionSummary & WithSessionId(const char *value)
void SetSessionStartTime(const Aws::Utils::DateTime &value)
MemorySessionSummary & WithSessionExpiryTime(Aws::Utils::DateTime &&value)
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
MemorySessionSummary & WithSessionStartTime(const Aws::Utils::DateTime &value)
AWS_BEDROCKAGENTRUNTIME_API MemorySessionSummary()
MemorySessionSummary & WithSummaryText(Aws::String &&value)
const Aws::Utils::DateTime & GetSessionStartTime() const
AWS_BEDROCKAGENTRUNTIME_API MemorySessionSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
MemorySessionSummary & WithMemoryId(const Aws::String &value)
MemorySessionSummary & WithMemoryId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue