AWS SDK for C++

AWS SDK for C++ Version 1.11.930

Loading...
Searching...
No Matches
SystemMetadata.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/opensearchmemory/OpenSearchMemory_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace OpenSearchMemory {
21namespace Model {
22
42 public:
43 AWS_OPENSEARCHMEMORY_API SystemMetadata() = default;
44 AWS_OPENSEARCHMEMORY_API SystemMetadata(Aws::Utils::Json::JsonView jsonValue);
45 AWS_OPENSEARCHMEMORY_API SystemMetadata& operator=(Aws::Utils::Json::JsonView jsonValue);
46 AWS_OPENSEARCHMEMORY_API Aws::Utils::Json::JsonValue Jsonize() const;
47
49
52 inline const Aws::String& GetActorId() const { return m_actorId; }
53 inline bool ActorIdHasBeenSet() const { return m_actorIdHasBeenSet; }
54 template <typename ActorIdT = Aws::String>
55 void SetActorId(ActorIdT&& value) {
56 m_actorIdHasBeenSet = true;
57 m_actorId = std::forward<ActorIdT>(value);
58 }
59 template <typename ActorIdT = Aws::String>
60 SystemMetadata& WithActorId(ActorIdT&& value) {
61 SetActorId(std::forward<ActorIdT>(value));
62 return *this;
63 }
65
67
70 inline const Aws::String& GetSessionId() const { return m_sessionId; }
71 inline bool SessionIdHasBeenSet() const { return m_sessionIdHasBeenSet; }
72 template <typename SessionIdT = Aws::String>
73 void SetSessionId(SessionIdT&& value) {
74 m_sessionIdHasBeenSet = true;
75 m_sessionId = std::forward<SessionIdT>(value);
76 }
77 template <typename SessionIdT = Aws::String>
78 SystemMetadata& WithSessionId(SessionIdT&& value) {
79 SetSessionId(std::forward<SessionIdT>(value));
80 return *this;
81 }
83
85
89 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
90 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
91 template <typename CreatedAtT = Aws::Utils::DateTime>
92 void SetCreatedAt(CreatedAtT&& value) {
93 m_createdAtHasBeenSet = true;
94 m_createdAt = std::forward<CreatedAtT>(value);
95 }
96 template <typename CreatedAtT = Aws::Utils::DateTime>
97 SystemMetadata& WithCreatedAt(CreatedAtT&& value) {
98 SetCreatedAt(std::forward<CreatedAtT>(value));
99 return *this;
100 }
102
104
109 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
110 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
111 template <typename UpdatedAtT = Aws::Utils::DateTime>
112 void SetUpdatedAt(UpdatedAtT&& value) {
113 m_updatedAtHasBeenSet = true;
114 m_updatedAt = std::forward<UpdatedAtT>(value);
115 }
116 template <typename UpdatedAtT = Aws::Utils::DateTime>
117 SystemMetadata& WithUpdatedAt(UpdatedAtT&& value) {
118 SetUpdatedAt(std::forward<UpdatedAtT>(value));
119 return *this;
120 }
122 private:
123 Aws::String m_actorId;
124
125 Aws::String m_sessionId;
126
127 Aws::Utils::DateTime m_createdAt{};
128
129 Aws::Utils::DateTime m_updatedAt{};
130 bool m_actorIdHasBeenSet = false;
131 bool m_sessionIdHasBeenSet = false;
132 bool m_createdAtHasBeenSet = false;
133 bool m_updatedAtHasBeenSet = false;
134};
135
136} // namespace Model
137} // namespace OpenSearchMemory
138} // namespace Aws
const Aws::Utils::DateTime & GetCreatedAt() const
AWS_OPENSEARCHMEMORY_API SystemMetadata(Aws::Utils::Json::JsonView jsonValue)
SystemMetadata & WithSessionId(SessionIdT &&value)
AWS_OPENSEARCHMEMORY_API SystemMetadata()=default
SystemMetadata & WithCreatedAt(CreatedAtT &&value)
SystemMetadata & WithActorId(ActorIdT &&value)
AWS_OPENSEARCHMEMORY_API Aws::Utils::Json::JsonValue Jsonize() const
SystemMetadata & WithUpdatedAt(UpdatedAtT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
AWS_OPENSEARCHMEMORY_API SystemMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue