AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
EventLogEntry.h
1
6#pragma once
7#include <aws/codecatalyst/CodeCatalyst_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/codecatalyst/model/OperationType.h>
11#include <aws/codecatalyst/model/UserIdentity.h>
12#include <aws/codecatalyst/model/ProjectInformation.h>
13#include <aws/codecatalyst/model/EventPayload.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace CodeCatalyst
27{
28namespace Model
29{
30
38 {
39 public:
40 AWS_CODECATALYST_API EventLogEntry() = default;
41 AWS_CODECATALYST_API EventLogEntry(Aws::Utils::Json::JsonView jsonValue);
42 AWS_CODECATALYST_API EventLogEntry& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_CODECATALYST_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetId() const { return m_id; }
51 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
52 template<typename IdT = Aws::String>
53 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
54 template<typename IdT = Aws::String>
55 EventLogEntry& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
57
59
62 inline const Aws::String& GetEventName() const { return m_eventName; }
63 inline bool EventNameHasBeenSet() const { return m_eventNameHasBeenSet; }
64 template<typename EventNameT = Aws::String>
65 void SetEventName(EventNameT&& value) { m_eventNameHasBeenSet = true; m_eventName = std::forward<EventNameT>(value); }
66 template<typename EventNameT = Aws::String>
67 EventLogEntry& WithEventName(EventNameT&& value) { SetEventName(std::forward<EventNameT>(value)); return *this;}
69
71
74 inline const Aws::String& GetEventType() const { return m_eventType; }
75 inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; }
76 template<typename EventTypeT = Aws::String>
77 void SetEventType(EventTypeT&& value) { m_eventTypeHasBeenSet = true; m_eventType = std::forward<EventTypeT>(value); }
78 template<typename EventTypeT = Aws::String>
79 EventLogEntry& WithEventType(EventTypeT&& value) { SetEventType(std::forward<EventTypeT>(value)); return *this;}
81
83
86 inline const Aws::String& GetEventCategory() const { return m_eventCategory; }
87 inline bool EventCategoryHasBeenSet() const { return m_eventCategoryHasBeenSet; }
88 template<typename EventCategoryT = Aws::String>
89 void SetEventCategory(EventCategoryT&& value) { m_eventCategoryHasBeenSet = true; m_eventCategory = std::forward<EventCategoryT>(value); }
90 template<typename EventCategoryT = Aws::String>
91 EventLogEntry& WithEventCategory(EventCategoryT&& value) { SetEventCategory(std::forward<EventCategoryT>(value)); return *this;}
93
95
98 inline const Aws::String& GetEventSource() const { return m_eventSource; }
99 inline bool EventSourceHasBeenSet() const { return m_eventSourceHasBeenSet; }
100 template<typename EventSourceT = Aws::String>
101 void SetEventSource(EventSourceT&& value) { m_eventSourceHasBeenSet = true; m_eventSource = std::forward<EventSourceT>(value); }
102 template<typename EventSourceT = Aws::String>
103 EventLogEntry& WithEventSource(EventSourceT&& value) { SetEventSource(std::forward<EventSourceT>(value)); return *this;}
105
107
112 inline const Aws::Utils::DateTime& GetEventTime() const { return m_eventTime; }
113 inline bool EventTimeHasBeenSet() const { return m_eventTimeHasBeenSet; }
114 template<typename EventTimeT = Aws::Utils::DateTime>
115 void SetEventTime(EventTimeT&& value) { m_eventTimeHasBeenSet = true; m_eventTime = std::forward<EventTimeT>(value); }
116 template<typename EventTimeT = Aws::Utils::DateTime>
117 EventLogEntry& WithEventTime(EventTimeT&& value) { SetEventTime(std::forward<EventTimeT>(value)); return *this;}
119
121
124 inline OperationType GetOperationType() const { return m_operationType; }
125 inline bool OperationTypeHasBeenSet() const { return m_operationTypeHasBeenSet; }
126 inline void SetOperationType(OperationType value) { m_operationTypeHasBeenSet = true; m_operationType = value; }
127 inline EventLogEntry& WithOperationType(OperationType value) { SetOperationType(value); return *this;}
129
131
135 inline const UserIdentity& GetUserIdentity() const { return m_userIdentity; }
136 inline bool UserIdentityHasBeenSet() const { return m_userIdentityHasBeenSet; }
137 template<typename UserIdentityT = UserIdentity>
138 void SetUserIdentity(UserIdentityT&& value) { m_userIdentityHasBeenSet = true; m_userIdentity = std::forward<UserIdentityT>(value); }
139 template<typename UserIdentityT = UserIdentity>
140 EventLogEntry& WithUserIdentity(UserIdentityT&& value) { SetUserIdentity(std::forward<UserIdentityT>(value)); return *this;}
142
144
147 inline const ProjectInformation& GetProjectInformation() const { return m_projectInformation; }
148 inline bool ProjectInformationHasBeenSet() const { return m_projectInformationHasBeenSet; }
149 template<typename ProjectInformationT = ProjectInformation>
150 void SetProjectInformation(ProjectInformationT&& value) { m_projectInformationHasBeenSet = true; m_projectInformation = std::forward<ProjectInformationT>(value); }
151 template<typename ProjectInformationT = ProjectInformation>
152 EventLogEntry& WithProjectInformation(ProjectInformationT&& value) { SetProjectInformation(std::forward<ProjectInformationT>(value)); return *this;}
154
156
159 inline const Aws::String& GetRequestId() const { return m_requestId; }
160 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
161 template<typename RequestIdT = Aws::String>
162 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
163 template<typename RequestIdT = Aws::String>
164 EventLogEntry& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
166
168
171 inline const EventPayload& GetRequestPayload() const { return m_requestPayload; }
172 inline bool RequestPayloadHasBeenSet() const { return m_requestPayloadHasBeenSet; }
173 template<typename RequestPayloadT = EventPayload>
174 void SetRequestPayload(RequestPayloadT&& value) { m_requestPayloadHasBeenSet = true; m_requestPayload = std::forward<RequestPayloadT>(value); }
175 template<typename RequestPayloadT = EventPayload>
176 EventLogEntry& WithRequestPayload(RequestPayloadT&& value) { SetRequestPayload(std::forward<RequestPayloadT>(value)); return *this;}
178
180
183 inline const EventPayload& GetResponsePayload() const { return m_responsePayload; }
184 inline bool ResponsePayloadHasBeenSet() const { return m_responsePayloadHasBeenSet; }
185 template<typename ResponsePayloadT = EventPayload>
186 void SetResponsePayload(ResponsePayloadT&& value) { m_responsePayloadHasBeenSet = true; m_responsePayload = std::forward<ResponsePayloadT>(value); }
187 template<typename ResponsePayloadT = EventPayload>
188 EventLogEntry& WithResponsePayload(ResponsePayloadT&& value) { SetResponsePayload(std::forward<ResponsePayloadT>(value)); return *this;}
190
192
195 inline const Aws::String& GetErrorCode() const { return m_errorCode; }
196 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
197 template<typename ErrorCodeT = Aws::String>
198 void SetErrorCode(ErrorCodeT&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::forward<ErrorCodeT>(value); }
199 template<typename ErrorCodeT = Aws::String>
200 EventLogEntry& WithErrorCode(ErrorCodeT&& value) { SetErrorCode(std::forward<ErrorCodeT>(value)); return *this;}
202
204
207 inline const Aws::String& GetSourceIpAddress() const { return m_sourceIpAddress; }
208 inline bool SourceIpAddressHasBeenSet() const { return m_sourceIpAddressHasBeenSet; }
209 template<typename SourceIpAddressT = Aws::String>
210 void SetSourceIpAddress(SourceIpAddressT&& value) { m_sourceIpAddressHasBeenSet = true; m_sourceIpAddress = std::forward<SourceIpAddressT>(value); }
211 template<typename SourceIpAddressT = Aws::String>
212 EventLogEntry& WithSourceIpAddress(SourceIpAddressT&& value) { SetSourceIpAddress(std::forward<SourceIpAddressT>(value)); return *this;}
214
216
219 inline const Aws::String& GetUserAgent() const { return m_userAgent; }
220 inline bool UserAgentHasBeenSet() const { return m_userAgentHasBeenSet; }
221 template<typename UserAgentT = Aws::String>
222 void SetUserAgent(UserAgentT&& value) { m_userAgentHasBeenSet = true; m_userAgent = std::forward<UserAgentT>(value); }
223 template<typename UserAgentT = Aws::String>
224 EventLogEntry& WithUserAgent(UserAgentT&& value) { SetUserAgent(std::forward<UserAgentT>(value)); return *this;}
226 private:
227
228 Aws::String m_id;
229 bool m_idHasBeenSet = false;
230
231 Aws::String m_eventName;
232 bool m_eventNameHasBeenSet = false;
233
234 Aws::String m_eventType;
235 bool m_eventTypeHasBeenSet = false;
236
237 Aws::String m_eventCategory;
238 bool m_eventCategoryHasBeenSet = false;
239
240 Aws::String m_eventSource;
241 bool m_eventSourceHasBeenSet = false;
242
243 Aws::Utils::DateTime m_eventTime{};
244 bool m_eventTimeHasBeenSet = false;
245
246 OperationType m_operationType{OperationType::NOT_SET};
247 bool m_operationTypeHasBeenSet = false;
248
249 UserIdentity m_userIdentity;
250 bool m_userIdentityHasBeenSet = false;
251
252 ProjectInformation m_projectInformation;
253 bool m_projectInformationHasBeenSet = false;
254
255 Aws::String m_requestId;
256 bool m_requestIdHasBeenSet = false;
257
258 EventPayload m_requestPayload;
259 bool m_requestPayloadHasBeenSet = false;
260
261 EventPayload m_responsePayload;
262 bool m_responsePayloadHasBeenSet = false;
263
264 Aws::String m_errorCode;
265 bool m_errorCodeHasBeenSet = false;
266
267 Aws::String m_sourceIpAddress;
268 bool m_sourceIpAddressHasBeenSet = false;
269
270 Aws::String m_userAgent;
271 bool m_userAgentHasBeenSet = false;
272 };
273
274} // namespace Model
275} // namespace CodeCatalyst
276} // namespace Aws
void SetEventSource(EventSourceT &&value)
void SetResponsePayload(ResponsePayloadT &&value)
EventLogEntry & WithOperationType(OperationType value)
bool ProjectInformationHasBeenSet() const
void SetId(IdT &&value)
bool RequestPayloadHasBeenSet() const
bool ErrorCodeHasBeenSet() const
void SetEventType(EventTypeT &&value)
EventLogEntry & WithErrorCode(ErrorCodeT &&value)
EventLogEntry & WithProjectInformation(ProjectInformationT &&value)
void SetEventTime(EventTimeT &&value)
void SetProjectInformation(ProjectInformationT &&value)
EventLogEntry & WithRequestPayload(RequestPayloadT &&value)
const ProjectInformation & GetProjectInformation() const
void SetRequestPayload(RequestPayloadT &&value)
EventLogEntry & WithRequestId(RequestIdT &&value)
bool EventNameHasBeenSet() const
bool EventTypeHasBeenSet() const
const Aws::Utils::DateTime & GetEventTime() const
const Aws::String & GetErrorCode() const
AWS_CODECATALYST_API EventLogEntry(Aws::Utils::Json::JsonView jsonValue)
void SetOperationType(OperationType value)
void SetUserAgent(UserAgentT &&value)
const Aws::String & GetRequestId() const
void SetEventCategory(EventCategoryT &&value)
EventLogEntry & WithEventName(EventNameT &&value)
EventLogEntry & WithEventSource(EventSourceT &&value)
const Aws::String & GetId() const
const Aws::String & GetEventSource() const
AWS_CODECATALYST_API EventLogEntry()=default
bool IdHasBeenSet() const
const UserIdentity & GetUserIdentity() const
OperationType GetOperationType() const
void SetUserIdentity(UserIdentityT &&value)
EventLogEntry & WithEventCategory(EventCategoryT &&value)
bool ResponsePayloadHasBeenSet() const
EventLogEntry & WithUserIdentity(UserIdentityT &&value)
EventLogEntry & WithEventTime(EventTimeT &&value)
EventLogEntry & WithUserAgent(UserAgentT &&value)
AWS_CODECATALYST_API EventLogEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
const EventPayload & GetRequestPayload() const
const Aws::String & GetEventType() const
bool EventCategoryHasBeenSet() const
void SetSourceIpAddress(SourceIpAddressT &&value)
EventLogEntry & WithSourceIpAddress(SourceIpAddressT &&value)
AWS_CODECATALYST_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetEventCategory() const
bool UserIdentityHasBeenSet() const
EventLogEntry & WithEventType(EventTypeT &&value)
void SetErrorCode(ErrorCodeT &&value)
bool RequestIdHasBeenSet() const
const Aws::String & GetUserAgent() const
void SetEventName(EventNameT &&value)
bool OperationTypeHasBeenSet() const
bool UserAgentHasBeenSet() const
void SetRequestId(RequestIdT &&value)
EventLogEntry & WithResponsePayload(ResponsePayloadT &&value)
bool EventSourceHasBeenSet() const
bool SourceIpAddressHasBeenSet() const
const EventPayload & GetResponsePayload() const
const Aws::String & GetSourceIpAddress() const
const Aws::String & GetEventName() const
bool EventTimeHasBeenSet() const
EventLogEntry & WithId(IdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue