AWS SDK for C++

AWS SDK for C++ Version 1.11.934

Loading...
Searching...
No Matches
SessionSummary.h
1
6#pragma once
7#include <aws/bedrock-agentcore/BedrockAgentCore_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 BedrockAgentCore {
21namespace Model {
22
30 public:
31 AWS_BEDROCKAGENTCORE_API SessionSummary() = default;
32 AWS_BEDROCKAGENTCORE_API SessionSummary(Aws::Utils::Json::JsonView jsonValue);
33 AWS_BEDROCKAGENTCORE_API SessionSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_BEDROCKAGENTCORE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetSessionId() const { return m_sessionId; }
41 inline bool SessionIdHasBeenSet() const { return m_sessionIdHasBeenSet; }
42 template <typename SessionIdT = Aws::String>
43 void SetSessionId(SessionIdT&& value) {
44 m_sessionIdHasBeenSet = true;
45 m_sessionId = std::forward<SessionIdT>(value);
46 }
47 template <typename SessionIdT = Aws::String>
48 SessionSummary& WithSessionId(SessionIdT&& value) {
49 SetSessionId(std::forward<SessionIdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetActorId() const { return m_actorId; }
59 inline bool ActorIdHasBeenSet() const { return m_actorIdHasBeenSet; }
60 template <typename ActorIdT = Aws::String>
61 void SetActorId(ActorIdT&& value) {
62 m_actorIdHasBeenSet = true;
63 m_actorId = std::forward<ActorIdT>(value);
64 }
65 template <typename ActorIdT = Aws::String>
66 SessionSummary& WithActorId(ActorIdT&& value) {
67 SetActorId(std::forward<ActorIdT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
77 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
78 template <typename CreatedAtT = Aws::Utils::DateTime>
79 void SetCreatedAt(CreatedAtT&& value) {
80 m_createdAtHasBeenSet = true;
81 m_createdAt = std::forward<CreatedAtT>(value);
82 }
83 template <typename CreatedAtT = Aws::Utils::DateTime>
84 SessionSummary& WithCreatedAt(CreatedAtT&& value) {
85 SetCreatedAt(std::forward<CreatedAtT>(value));
86 return *this;
87 }
89 private:
90 Aws::String m_sessionId;
91
92 Aws::String m_actorId;
93
94 Aws::Utils::DateTime m_createdAt{};
95 bool m_sessionIdHasBeenSet = false;
96 bool m_actorIdHasBeenSet = false;
97 bool m_createdAtHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace BedrockAgentCore
102} // namespace Aws
SessionSummary & WithActorId(ActorIdT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
SessionSummary & WithCreatedAt(CreatedAtT &&value)
SessionSummary & WithSessionId(SessionIdT &&value)
AWS_BEDROCKAGENTCORE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BEDROCKAGENTCORE_API SessionSummary()=default
AWS_BEDROCKAGENTCORE_API SessionSummary(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENTCORE_API SessionSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue