AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
EventLogEntry.h
1
6#pragma once
7#include <aws/codecatalyst/CodeCatalyst_EXPORTS.h>
8#include <aws/codecatalyst/model/EventPayload.h>
9#include <aws/codecatalyst/model/OperationType.h>
10#include <aws/codecatalyst/model/ProjectInformation.h>
11#include <aws/codecatalyst/model/UserIdentity.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace CodeCatalyst {
25namespace Model {
26
34 public:
35 AWS_CODECATALYST_API EventLogEntry() = default;
36 AWS_CODECATALYST_API EventLogEntry(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CODECATALYST_API EventLogEntry& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CODECATALYST_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetId() const { return m_id; }
45 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
46 template <typename IdT = Aws::String>
47 void SetId(IdT&& value) {
48 m_idHasBeenSet = true;
49 m_id = std::forward<IdT>(value);
50 }
51 template <typename IdT = Aws::String>
52 EventLogEntry& WithId(IdT&& value) {
53 SetId(std::forward<IdT>(value));
54 return *this;
55 }
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) {
66 m_eventNameHasBeenSet = true;
67 m_eventName = std::forward<EventNameT>(value);
68 }
69 template <typename EventNameT = Aws::String>
70 EventLogEntry& WithEventName(EventNameT&& value) {
71 SetEventName(std::forward<EventNameT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetEventType() const { return m_eventType; }
81 inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; }
82 template <typename EventTypeT = Aws::String>
83 void SetEventType(EventTypeT&& value) {
84 m_eventTypeHasBeenSet = true;
85 m_eventType = std::forward<EventTypeT>(value);
86 }
87 template <typename EventTypeT = Aws::String>
88 EventLogEntry& WithEventType(EventTypeT&& value) {
89 SetEventType(std::forward<EventTypeT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::String& GetEventCategory() const { return m_eventCategory; }
99 inline bool EventCategoryHasBeenSet() const { return m_eventCategoryHasBeenSet; }
100 template <typename EventCategoryT = Aws::String>
101 void SetEventCategory(EventCategoryT&& value) {
102 m_eventCategoryHasBeenSet = true;
103 m_eventCategory = std::forward<EventCategoryT>(value);
104 }
105 template <typename EventCategoryT = Aws::String>
106 EventLogEntry& WithEventCategory(EventCategoryT&& value) {
107 SetEventCategory(std::forward<EventCategoryT>(value));
108 return *this;
109 }
111
113
116 inline const Aws::String& GetEventSource() const { return m_eventSource; }
117 inline bool EventSourceHasBeenSet() const { return m_eventSourceHasBeenSet; }
118 template <typename EventSourceT = Aws::String>
119 void SetEventSource(EventSourceT&& value) {
120 m_eventSourceHasBeenSet = true;
121 m_eventSource = std::forward<EventSourceT>(value);
122 }
123 template <typename EventSourceT = Aws::String>
124 EventLogEntry& WithEventSource(EventSourceT&& value) {
125 SetEventSource(std::forward<EventSourceT>(value));
126 return *this;
127 }
129
131
136 inline const Aws::Utils::DateTime& GetEventTime() const { return m_eventTime; }
137 inline bool EventTimeHasBeenSet() const { return m_eventTimeHasBeenSet; }
138 template <typename EventTimeT = Aws::Utils::DateTime>
139 void SetEventTime(EventTimeT&& value) {
140 m_eventTimeHasBeenSet = true;
141 m_eventTime = std::forward<EventTimeT>(value);
142 }
143 template <typename EventTimeT = Aws::Utils::DateTime>
144 EventLogEntry& WithEventTime(EventTimeT&& value) {
145 SetEventTime(std::forward<EventTimeT>(value));
146 return *this;
147 }
149
151
154 inline OperationType GetOperationType() const { return m_operationType; }
155 inline bool OperationTypeHasBeenSet() const { return m_operationTypeHasBeenSet; }
156 inline void SetOperationType(OperationType value) {
157 m_operationTypeHasBeenSet = true;
158 m_operationType = value;
159 }
161 SetOperationType(value);
162 return *this;
163 }
165
167
171 inline const UserIdentity& GetUserIdentity() const { return m_userIdentity; }
172 inline bool UserIdentityHasBeenSet() const { return m_userIdentityHasBeenSet; }
173 template <typename UserIdentityT = UserIdentity>
174 void SetUserIdentity(UserIdentityT&& value) {
175 m_userIdentityHasBeenSet = true;
176 m_userIdentity = std::forward<UserIdentityT>(value);
177 }
178 template <typename UserIdentityT = UserIdentity>
179 EventLogEntry& WithUserIdentity(UserIdentityT&& value) {
180 SetUserIdentity(std::forward<UserIdentityT>(value));
181 return *this;
182 }
184
186
189 inline const ProjectInformation& GetProjectInformation() const { return m_projectInformation; }
190 inline bool ProjectInformationHasBeenSet() const { return m_projectInformationHasBeenSet; }
191 template <typename ProjectInformationT = ProjectInformation>
192 void SetProjectInformation(ProjectInformationT&& value) {
193 m_projectInformationHasBeenSet = true;
194 m_projectInformation = std::forward<ProjectInformationT>(value);
195 }
196 template <typename ProjectInformationT = ProjectInformation>
197 EventLogEntry& WithProjectInformation(ProjectInformationT&& value) {
198 SetProjectInformation(std::forward<ProjectInformationT>(value));
199 return *this;
200 }
202
204
207 inline const Aws::String& GetRequestId() const { return m_requestId; }
208 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
209 template <typename RequestIdT = Aws::String>
210 void SetRequestId(RequestIdT&& value) {
211 m_requestIdHasBeenSet = true;
212 m_requestId = std::forward<RequestIdT>(value);
213 }
214 template <typename RequestIdT = Aws::String>
215 EventLogEntry& WithRequestId(RequestIdT&& value) {
216 SetRequestId(std::forward<RequestIdT>(value));
217 return *this;
218 }
220
222
225 inline const EventPayload& GetRequestPayload() const { return m_requestPayload; }
226 inline bool RequestPayloadHasBeenSet() const { return m_requestPayloadHasBeenSet; }
227 template <typename RequestPayloadT = EventPayload>
228 void SetRequestPayload(RequestPayloadT&& value) {
229 m_requestPayloadHasBeenSet = true;
230 m_requestPayload = std::forward<RequestPayloadT>(value);
231 }
232 template <typename RequestPayloadT = EventPayload>
233 EventLogEntry& WithRequestPayload(RequestPayloadT&& value) {
234 SetRequestPayload(std::forward<RequestPayloadT>(value));
235 return *this;
236 }
238
240
243 inline const EventPayload& GetResponsePayload() const { return m_responsePayload; }
244 inline bool ResponsePayloadHasBeenSet() const { return m_responsePayloadHasBeenSet; }
245 template <typename ResponsePayloadT = EventPayload>
246 void SetResponsePayload(ResponsePayloadT&& value) {
247 m_responsePayloadHasBeenSet = true;
248 m_responsePayload = std::forward<ResponsePayloadT>(value);
249 }
250 template <typename ResponsePayloadT = EventPayload>
251 EventLogEntry& WithResponsePayload(ResponsePayloadT&& value) {
252 SetResponsePayload(std::forward<ResponsePayloadT>(value));
253 return *this;
254 }
256
258
261 inline const Aws::String& GetErrorCode() const { return m_errorCode; }
262 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
263 template <typename ErrorCodeT = Aws::String>
264 void SetErrorCode(ErrorCodeT&& value) {
265 m_errorCodeHasBeenSet = true;
266 m_errorCode = std::forward<ErrorCodeT>(value);
267 }
268 template <typename ErrorCodeT = Aws::String>
269 EventLogEntry& WithErrorCode(ErrorCodeT&& value) {
270 SetErrorCode(std::forward<ErrorCodeT>(value));
271 return *this;
272 }
274
276
279 inline const Aws::String& GetSourceIpAddress() const { return m_sourceIpAddress; }
280 inline bool SourceIpAddressHasBeenSet() const { return m_sourceIpAddressHasBeenSet; }
281 template <typename SourceIpAddressT = Aws::String>
282 void SetSourceIpAddress(SourceIpAddressT&& value) {
283 m_sourceIpAddressHasBeenSet = true;
284 m_sourceIpAddress = std::forward<SourceIpAddressT>(value);
285 }
286 template <typename SourceIpAddressT = Aws::String>
287 EventLogEntry& WithSourceIpAddress(SourceIpAddressT&& value) {
288 SetSourceIpAddress(std::forward<SourceIpAddressT>(value));
289 return *this;
290 }
292
294
297 inline const Aws::String& GetUserAgent() const { return m_userAgent; }
298 inline bool UserAgentHasBeenSet() const { return m_userAgentHasBeenSet; }
299 template <typename UserAgentT = Aws::String>
300 void SetUserAgent(UserAgentT&& value) {
301 m_userAgentHasBeenSet = true;
302 m_userAgent = std::forward<UserAgentT>(value);
303 }
304 template <typename UserAgentT = Aws::String>
305 EventLogEntry& WithUserAgent(UserAgentT&& value) {
306 SetUserAgent(std::forward<UserAgentT>(value));
307 return *this;
308 }
310 private:
311 Aws::String m_id;
312
313 Aws::String m_eventName;
314
315 Aws::String m_eventType;
316
317 Aws::String m_eventCategory;
318
319 Aws::String m_eventSource;
320
321 Aws::Utils::DateTime m_eventTime{};
322
323 OperationType m_operationType{OperationType::NOT_SET};
324
325 UserIdentity m_userIdentity;
326
327 ProjectInformation m_projectInformation;
328
329 Aws::String m_requestId;
330
331 EventPayload m_requestPayload;
332
333 EventPayload m_responsePayload;
334
335 Aws::String m_errorCode;
336
337 Aws::String m_sourceIpAddress;
338
339 Aws::String m_userAgent;
340 bool m_idHasBeenSet = false;
341 bool m_eventNameHasBeenSet = false;
342 bool m_eventTypeHasBeenSet = false;
343 bool m_eventCategoryHasBeenSet = false;
344 bool m_eventSourceHasBeenSet = false;
345 bool m_eventTimeHasBeenSet = false;
346 bool m_operationTypeHasBeenSet = false;
347 bool m_userIdentityHasBeenSet = false;
348 bool m_projectInformationHasBeenSet = false;
349 bool m_requestIdHasBeenSet = false;
350 bool m_requestPayloadHasBeenSet = false;
351 bool m_responsePayloadHasBeenSet = false;
352 bool m_errorCodeHasBeenSet = false;
353 bool m_sourceIpAddressHasBeenSet = false;
354 bool m_userAgentHasBeenSet = false;
355};
356
357} // namespace Model
358} // namespace CodeCatalyst
359} // 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