AWS SDK for C++

AWS SDK for C++ Version 1.11.933

Loading...
Searching...
No Matches
SampleSession.h
1
6#pragma once
7#include <aws/bedrock-agentcore/BedrockAgentCore_EXPORTS.h>
8#include <aws/bedrock-agentcore/model/SessionFinding.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace BedrockAgentCore {
23namespace Model {
24
33 public:
34 AWS_BEDROCKAGENTCORE_API SampleSession() = default;
35 AWS_BEDROCKAGENTCORE_API SampleSession(Aws::Utils::Json::JsonView jsonValue);
36 AWS_BEDROCKAGENTCORE_API SampleSession& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_BEDROCKAGENTCORE_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetSessionId() const { return m_sessionId; }
44 inline bool SessionIdHasBeenSet() const { return m_sessionIdHasBeenSet; }
45 template <typename SessionIdT = Aws::String>
46 void SetSessionId(SessionIdT&& value) {
47 m_sessionIdHasBeenSet = true;
48 m_sessionId = std::forward<SessionIdT>(value);
49 }
50 template <typename SessionIdT = Aws::String>
51 SampleSession& WithSessionId(SessionIdT&& value) {
52 SetSessionId(std::forward<SessionIdT>(value));
53 return *this;
54 }
56
58
62 inline const Aws::Utils::DateTime& GetLastSeenAt() const { return m_lastSeenAt; }
63 inline bool LastSeenAtHasBeenSet() const { return m_lastSeenAtHasBeenSet; }
64 template <typename LastSeenAtT = Aws::Utils::DateTime>
65 void SetLastSeenAt(LastSeenAtT&& value) {
66 m_lastSeenAtHasBeenSet = true;
67 m_lastSeenAt = std::forward<LastSeenAtT>(value);
68 }
69 template <typename LastSeenAtT = Aws::Utils::DateTime>
70 SampleSession& WithLastSeenAt(LastSeenAtT&& value) {
71 SetLastSeenAt(std::forward<LastSeenAtT>(value));
72 return *this;
73 }
75
77
81 inline const Aws::Vector<SessionFinding>& GetFindings() const { return m_findings; }
82 inline bool FindingsHasBeenSet() const { return m_findingsHasBeenSet; }
83 template <typename FindingsT = Aws::Vector<SessionFinding>>
84 void SetFindings(FindingsT&& value) {
85 m_findingsHasBeenSet = true;
86 m_findings = std::forward<FindingsT>(value);
87 }
88 template <typename FindingsT = Aws::Vector<SessionFinding>>
89 SampleSession& WithFindings(FindingsT&& value) {
90 SetFindings(std::forward<FindingsT>(value));
91 return *this;
92 }
93 template <typename FindingsT = SessionFinding>
94 SampleSession& AddFindings(FindingsT&& value) {
95 m_findingsHasBeenSet = true;
96 m_findings.emplace_back(std::forward<FindingsT>(value));
97 return *this;
98 }
100 private:
101 Aws::String m_sessionId;
102
103 Aws::Utils::DateTime m_lastSeenAt{};
104
106 bool m_sessionIdHasBeenSet = false;
107 bool m_lastSeenAtHasBeenSet = false;
108 bool m_findingsHasBeenSet = false;
109};
110
111} // namespace Model
112} // namespace BedrockAgentCore
113} // namespace Aws
SampleSession & WithSessionId(SessionIdT &&value)
const Aws::String & GetSessionId() const
AWS_BEDROCKAGENTCORE_API SampleSession(Aws::Utils::Json::JsonView jsonValue)
SampleSession & WithLastSeenAt(LastSeenAtT &&value)
SampleSession & WithFindings(FindingsT &&value)
SampleSession & AddFindings(FindingsT &&value)
AWS_BEDROCKAGENTCORE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetLastSeenAt() const
AWS_BEDROCKAGENTCORE_API SampleSession()=default
AWS_BEDROCKAGENTCORE_API SampleSession & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< SessionFinding > & GetFindings() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue