AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
SessionSummary.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#include <aws/bedrock-agent-runtime/model/SessionStatus.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace BedrockAgentRuntime
24{
25namespace Model
26{
27
37 {
38 public:
39 AWS_BEDROCKAGENTRUNTIME_API SessionSummary() = default;
40 AWS_BEDROCKAGENTRUNTIME_API SessionSummary(Aws::Utils::Json::JsonView jsonValue);
41 AWS_BEDROCKAGENTRUNTIME_API SessionSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
50 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
51 template<typename CreatedAtT = Aws::Utils::DateTime>
52 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
53 template<typename CreatedAtT = Aws::Utils::DateTime>
54 SessionSummary& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
56
58
61 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
62 inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; }
63 template<typename LastUpdatedAtT = Aws::Utils::DateTime>
64 void SetLastUpdatedAt(LastUpdatedAtT&& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value); }
65 template<typename LastUpdatedAtT = Aws::Utils::DateTime>
66 SessionSummary& WithLastUpdatedAt(LastUpdatedAtT&& value) { SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value)); return *this;}
68
70
73 inline const Aws::String& GetSessionArn() const { return m_sessionArn; }
74 inline bool SessionArnHasBeenSet() const { return m_sessionArnHasBeenSet; }
75 template<typename SessionArnT = Aws::String>
76 void SetSessionArn(SessionArnT&& value) { m_sessionArnHasBeenSet = true; m_sessionArn = std::forward<SessionArnT>(value); }
77 template<typename SessionArnT = Aws::String>
78 SessionSummary& WithSessionArn(SessionArnT&& value) { SetSessionArn(std::forward<SessionArnT>(value)); return *this;}
80
82
85 inline const Aws::String& GetSessionId() const { return m_sessionId; }
86 inline bool SessionIdHasBeenSet() const { return m_sessionIdHasBeenSet; }
87 template<typename SessionIdT = Aws::String>
88 void SetSessionId(SessionIdT&& value) { m_sessionIdHasBeenSet = true; m_sessionId = std::forward<SessionIdT>(value); }
89 template<typename SessionIdT = Aws::String>
90 SessionSummary& WithSessionId(SessionIdT&& value) { SetSessionId(std::forward<SessionIdT>(value)); return *this;}
92
94
97 inline SessionStatus GetSessionStatus() const { return m_sessionStatus; }
98 inline bool SessionStatusHasBeenSet() const { return m_sessionStatusHasBeenSet; }
99 inline void SetSessionStatus(SessionStatus value) { m_sessionStatusHasBeenSet = true; m_sessionStatus = value; }
100 inline SessionSummary& WithSessionStatus(SessionStatus value) { SetSessionStatus(value); return *this;}
102 private:
103
104 Aws::Utils::DateTime m_createdAt{};
105 bool m_createdAtHasBeenSet = false;
106
107 Aws::Utils::DateTime m_lastUpdatedAt{};
108 bool m_lastUpdatedAtHasBeenSet = false;
109
110 Aws::String m_sessionArn;
111 bool m_sessionArnHasBeenSet = false;
112
113 Aws::String m_sessionId;
114 bool m_sessionIdHasBeenSet = false;
115
116 SessionStatus m_sessionStatus{SessionStatus::NOT_SET};
117 bool m_sessionStatusHasBeenSet = false;
118 };
119
120} // namespace Model
121} // namespace BedrockAgentRuntime
122} // namespace Aws
SessionSummary & WithSessionStatus(SessionStatus value)
const Aws::Utils::DateTime & GetCreatedAt() const
AWS_BEDROCKAGENTRUNTIME_API SessionSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
SessionSummary & WithSessionArn(SessionArnT &&value)
AWS_BEDROCKAGENTRUNTIME_API SessionSummary()=default
AWS_BEDROCKAGENTRUNTIME_API SessionSummary(Aws::Utils::Json::JsonView jsonValue)
SessionSummary & WithCreatedAt(CreatedAtT &&value)
SessionSummary & WithLastUpdatedAt(LastUpdatedAtT &&value)
void SetLastUpdatedAt(LastUpdatedAtT &&value)
const Aws::Utils::DateTime & GetLastUpdatedAt() const
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
SessionSummary & WithSessionId(SessionIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue