AWS SDK for C++

AWS SDK for C++ Version 1.11.930

Loading...
Searching...
No Matches
EventDetail.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
30 public:
31 AWS_OPENSEARCHMEMORY_API EventDetail() = default;
32 AWS_OPENSEARCHMEMORY_API EventDetail(Aws::Utils::Json::JsonView jsonValue);
33 AWS_OPENSEARCHMEMORY_API EventDetail& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_OPENSEARCHMEMORY_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::String& GetEventId() const { return m_eventId; }
42 inline bool EventIdHasBeenSet() const { return m_eventIdHasBeenSet; }
43 template <typename EventIdT = Aws::String>
44 void SetEventId(EventIdT&& value) {
45 m_eventIdHasBeenSet = true;
46 m_eventId = std::forward<EventIdT>(value);
47 }
48 template <typename EventIdT = Aws::String>
49 EventDetail& WithEventId(EventIdT&& value) {
50 SetEventId(std::forward<EventIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetSpaceId() const { return m_spaceId; }
60 inline bool SpaceIdHasBeenSet() const { return m_spaceIdHasBeenSet; }
61 template <typename SpaceIdT = Aws::String>
62 void SetSpaceId(SpaceIdT&& value) {
63 m_spaceIdHasBeenSet = true;
64 m_spaceId = std::forward<SpaceIdT>(value);
65 }
66 template <typename SpaceIdT = Aws::String>
67 EventDetail& WithSpaceId(SpaceIdT&& value) {
68 SetSpaceId(std::forward<SpaceIdT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetActorId() const { return m_actorId; }
78 inline bool ActorIdHasBeenSet() const { return m_actorIdHasBeenSet; }
79 template <typename ActorIdT = Aws::String>
80 void SetActorId(ActorIdT&& value) {
81 m_actorIdHasBeenSet = true;
82 m_actorId = std::forward<ActorIdT>(value);
83 }
84 template <typename ActorIdT = Aws::String>
85 EventDetail& WithActorId(ActorIdT&& value) {
86 SetActorId(std::forward<ActorIdT>(value));
87 return *this;
88 }
90
92
96 inline const Aws::String& GetSessionId() const { return m_sessionId; }
97 inline bool SessionIdHasBeenSet() const { return m_sessionIdHasBeenSet; }
98 template <typename SessionIdT = Aws::String>
99 void SetSessionId(SessionIdT&& value) {
100 m_sessionIdHasBeenSet = true;
101 m_sessionId = std::forward<SessionIdT>(value);
102 }
103 template <typename SessionIdT = Aws::String>
104 EventDetail& WithSessionId(SessionIdT&& value) {
105 SetSessionId(std::forward<SessionIdT>(value));
106 return *this;
107 }
109
111
115 inline const Aws::Utils::DateTime& GetEventTimestamp() const { return m_eventTimestamp; }
116 inline bool EventTimestampHasBeenSet() const { return m_eventTimestampHasBeenSet; }
117 template <typename EventTimestampT = Aws::Utils::DateTime>
118 void SetEventTimestamp(EventTimestampT&& value) {
119 m_eventTimestampHasBeenSet = true;
120 m_eventTimestamp = std::forward<EventTimestampT>(value);
121 }
122 template <typename EventTimestampT = Aws::Utils::DateTime>
123 EventDetail& WithEventTimestamp(EventTimestampT&& value) {
124 SetEventTimestamp(std::forward<EventTimestampT>(value));
125 return *this;
126 }
128 private:
129 Aws::String m_eventId;
130
131 Aws::String m_spaceId;
132
133 Aws::String m_actorId;
134
135 Aws::String m_sessionId;
136
137 Aws::Utils::DateTime m_eventTimestamp{};
138 bool m_eventIdHasBeenSet = false;
139 bool m_spaceIdHasBeenSet = false;
140 bool m_actorIdHasBeenSet = false;
141 bool m_sessionIdHasBeenSet = false;
142 bool m_eventTimestampHasBeenSet = false;
143};
144
145} // namespace Model
146} // namespace OpenSearchMemory
147} // namespace Aws
AWS_OPENSEARCHMEMORY_API EventDetail()=default
EventDetail & WithActorId(ActorIdT &&value)
Definition EventDetail.h:85
const Aws::String & GetSpaceId() const
Definition EventDetail.h:59
void SetEventTimestamp(EventTimestampT &&value)
EventDetail & WithEventTimestamp(EventTimestampT &&value)
AWS_OPENSEARCHMEMORY_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_OPENSEARCHMEMORY_API EventDetail(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetActorId() const
Definition EventDetail.h:77
AWS_OPENSEARCHMEMORY_API EventDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
EventDetail & WithSpaceId(SpaceIdT &&value)
Definition EventDetail.h:67
const Aws::Utils::DateTime & GetEventTimestamp() const
const Aws::String & GetSessionId() const
Definition EventDetail.h:96
EventDetail & WithSessionId(SessionIdT &&value)
const Aws::String & GetEventId() const
Definition EventDetail.h:41
void SetSessionId(SessionIdT &&value)
Definition EventDetail.h:99
EventDetail & WithEventId(EventIdT &&value)
Definition EventDetail.h:49
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue