AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
53 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
54 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
55 inline EventLogEntry& WithId(const Aws::String& value) { SetId(value); return *this;}
56 inline EventLogEntry& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
57 inline EventLogEntry& WithId(const char* value) { SetId(value); return *this;}
59
61
64 inline const Aws::String& GetEventName() const{ return m_eventName; }
65 inline bool EventNameHasBeenSet() const { return m_eventNameHasBeenSet; }
66 inline void SetEventName(const Aws::String& value) { m_eventNameHasBeenSet = true; m_eventName = value; }
67 inline void SetEventName(Aws::String&& value) { m_eventNameHasBeenSet = true; m_eventName = std::move(value); }
68 inline void SetEventName(const char* value) { m_eventNameHasBeenSet = true; m_eventName.assign(value); }
69 inline EventLogEntry& WithEventName(const Aws::String& value) { SetEventName(value); return *this;}
70 inline EventLogEntry& WithEventName(Aws::String&& value) { SetEventName(std::move(value)); return *this;}
71 inline EventLogEntry& WithEventName(const char* value) { SetEventName(value); return *this;}
73
75
78 inline const Aws::String& GetEventType() const{ return m_eventType; }
79 inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; }
80 inline void SetEventType(const Aws::String& value) { m_eventTypeHasBeenSet = true; m_eventType = value; }
81 inline void SetEventType(Aws::String&& value) { m_eventTypeHasBeenSet = true; m_eventType = std::move(value); }
82 inline void SetEventType(const char* value) { m_eventTypeHasBeenSet = true; m_eventType.assign(value); }
83 inline EventLogEntry& WithEventType(const Aws::String& value) { SetEventType(value); return *this;}
84 inline EventLogEntry& WithEventType(Aws::String&& value) { SetEventType(std::move(value)); return *this;}
85 inline EventLogEntry& WithEventType(const char* value) { SetEventType(value); return *this;}
87
89
92 inline const Aws::String& GetEventCategory() const{ return m_eventCategory; }
93 inline bool EventCategoryHasBeenSet() const { return m_eventCategoryHasBeenSet; }
94 inline void SetEventCategory(const Aws::String& value) { m_eventCategoryHasBeenSet = true; m_eventCategory = value; }
95 inline void SetEventCategory(Aws::String&& value) { m_eventCategoryHasBeenSet = true; m_eventCategory = std::move(value); }
96 inline void SetEventCategory(const char* value) { m_eventCategoryHasBeenSet = true; m_eventCategory.assign(value); }
97 inline EventLogEntry& WithEventCategory(const Aws::String& value) { SetEventCategory(value); return *this;}
98 inline EventLogEntry& WithEventCategory(Aws::String&& value) { SetEventCategory(std::move(value)); return *this;}
99 inline EventLogEntry& WithEventCategory(const char* value) { SetEventCategory(value); return *this;}
101
103
106 inline const Aws::String& GetEventSource() const{ return m_eventSource; }
107 inline bool EventSourceHasBeenSet() const { return m_eventSourceHasBeenSet; }
108 inline void SetEventSource(const Aws::String& value) { m_eventSourceHasBeenSet = true; m_eventSource = value; }
109 inline void SetEventSource(Aws::String&& value) { m_eventSourceHasBeenSet = true; m_eventSource = std::move(value); }
110 inline void SetEventSource(const char* value) { m_eventSourceHasBeenSet = true; m_eventSource.assign(value); }
111 inline EventLogEntry& WithEventSource(const Aws::String& value) { SetEventSource(value); return *this;}
112 inline EventLogEntry& WithEventSource(Aws::String&& value) { SetEventSource(std::move(value)); return *this;}
113 inline EventLogEntry& WithEventSource(const char* value) { SetEventSource(value); return *this;}
115
117
122 inline const Aws::Utils::DateTime& GetEventTime() const{ return m_eventTime; }
123 inline bool EventTimeHasBeenSet() const { return m_eventTimeHasBeenSet; }
124 inline void SetEventTime(const Aws::Utils::DateTime& value) { m_eventTimeHasBeenSet = true; m_eventTime = value; }
125 inline void SetEventTime(Aws::Utils::DateTime&& value) { m_eventTimeHasBeenSet = true; m_eventTime = std::move(value); }
126 inline EventLogEntry& WithEventTime(const Aws::Utils::DateTime& value) { SetEventTime(value); return *this;}
127 inline EventLogEntry& WithEventTime(Aws::Utils::DateTime&& value) { SetEventTime(std::move(value)); return *this;}
129
131
134 inline const OperationType& GetOperationType() const{ return m_operationType; }
135 inline bool OperationTypeHasBeenSet() const { return m_operationTypeHasBeenSet; }
136 inline void SetOperationType(const OperationType& value) { m_operationTypeHasBeenSet = true; m_operationType = value; }
137 inline void SetOperationType(OperationType&& value) { m_operationTypeHasBeenSet = true; m_operationType = std::move(value); }
138 inline EventLogEntry& WithOperationType(const OperationType& value) { SetOperationType(value); return *this;}
139 inline EventLogEntry& WithOperationType(OperationType&& value) { SetOperationType(std::move(value)); return *this;}
141
143
147 inline const UserIdentity& GetUserIdentity() const{ return m_userIdentity; }
148 inline bool UserIdentityHasBeenSet() const { return m_userIdentityHasBeenSet; }
149 inline void SetUserIdentity(const UserIdentity& value) { m_userIdentityHasBeenSet = true; m_userIdentity = value; }
150 inline void SetUserIdentity(UserIdentity&& value) { m_userIdentityHasBeenSet = true; m_userIdentity = std::move(value); }
151 inline EventLogEntry& WithUserIdentity(const UserIdentity& value) { SetUserIdentity(value); return *this;}
152 inline EventLogEntry& WithUserIdentity(UserIdentity&& value) { SetUserIdentity(std::move(value)); return *this;}
154
156
159 inline const ProjectInformation& GetProjectInformation() const{ return m_projectInformation; }
160 inline bool ProjectInformationHasBeenSet() const { return m_projectInformationHasBeenSet; }
161 inline void SetProjectInformation(const ProjectInformation& value) { m_projectInformationHasBeenSet = true; m_projectInformation = value; }
162 inline void SetProjectInformation(ProjectInformation&& value) { m_projectInformationHasBeenSet = true; m_projectInformation = std::move(value); }
164 inline EventLogEntry& WithProjectInformation(ProjectInformation&& value) { SetProjectInformation(std::move(value)); return *this;}
166
168
171 inline const Aws::String& GetRequestId() const{ return m_requestId; }
172 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
173 inline void SetRequestId(const Aws::String& value) { m_requestIdHasBeenSet = true; m_requestId = value; }
174 inline void SetRequestId(Aws::String&& value) { m_requestIdHasBeenSet = true; m_requestId = std::move(value); }
175 inline void SetRequestId(const char* value) { m_requestIdHasBeenSet = true; m_requestId.assign(value); }
176 inline EventLogEntry& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
177 inline EventLogEntry& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
178 inline EventLogEntry& WithRequestId(const char* value) { SetRequestId(value); return *this;}
180
182
185 inline const EventPayload& GetRequestPayload() const{ return m_requestPayload; }
186 inline bool RequestPayloadHasBeenSet() const { return m_requestPayloadHasBeenSet; }
187 inline void SetRequestPayload(const EventPayload& value) { m_requestPayloadHasBeenSet = true; m_requestPayload = value; }
188 inline void SetRequestPayload(EventPayload&& value) { m_requestPayloadHasBeenSet = true; m_requestPayload = std::move(value); }
189 inline EventLogEntry& WithRequestPayload(const EventPayload& value) { SetRequestPayload(value); return *this;}
190 inline EventLogEntry& WithRequestPayload(EventPayload&& value) { SetRequestPayload(std::move(value)); return *this;}
192
194
197 inline const EventPayload& GetResponsePayload() const{ return m_responsePayload; }
198 inline bool ResponsePayloadHasBeenSet() const { return m_responsePayloadHasBeenSet; }
199 inline void SetResponsePayload(const EventPayload& value) { m_responsePayloadHasBeenSet = true; m_responsePayload = value; }
200 inline void SetResponsePayload(EventPayload&& value) { m_responsePayloadHasBeenSet = true; m_responsePayload = std::move(value); }
201 inline EventLogEntry& WithResponsePayload(const EventPayload& value) { SetResponsePayload(value); return *this;}
202 inline EventLogEntry& WithResponsePayload(EventPayload&& value) { SetResponsePayload(std::move(value)); return *this;}
204
206
209 inline const Aws::String& GetErrorCode() const{ return m_errorCode; }
210 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
211 inline void SetErrorCode(const Aws::String& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
212 inline void SetErrorCode(Aws::String&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); }
213 inline void SetErrorCode(const char* value) { m_errorCodeHasBeenSet = true; m_errorCode.assign(value); }
214 inline EventLogEntry& WithErrorCode(const Aws::String& value) { SetErrorCode(value); return *this;}
215 inline EventLogEntry& WithErrorCode(Aws::String&& value) { SetErrorCode(std::move(value)); return *this;}
216 inline EventLogEntry& WithErrorCode(const char* value) { SetErrorCode(value); return *this;}
218
220
223 inline const Aws::String& GetSourceIpAddress() const{ return m_sourceIpAddress; }
224 inline bool SourceIpAddressHasBeenSet() const { return m_sourceIpAddressHasBeenSet; }
225 inline void SetSourceIpAddress(const Aws::String& value) { m_sourceIpAddressHasBeenSet = true; m_sourceIpAddress = value; }
226 inline void SetSourceIpAddress(Aws::String&& value) { m_sourceIpAddressHasBeenSet = true; m_sourceIpAddress = std::move(value); }
227 inline void SetSourceIpAddress(const char* value) { m_sourceIpAddressHasBeenSet = true; m_sourceIpAddress.assign(value); }
228 inline EventLogEntry& WithSourceIpAddress(const Aws::String& value) { SetSourceIpAddress(value); return *this;}
229 inline EventLogEntry& WithSourceIpAddress(Aws::String&& value) { SetSourceIpAddress(std::move(value)); return *this;}
230 inline EventLogEntry& WithSourceIpAddress(const char* value) { SetSourceIpAddress(value); return *this;}
232
234
237 inline const Aws::String& GetUserAgent() const{ return m_userAgent; }
238 inline bool UserAgentHasBeenSet() const { return m_userAgentHasBeenSet; }
239 inline void SetUserAgent(const Aws::String& value) { m_userAgentHasBeenSet = true; m_userAgent = value; }
240 inline void SetUserAgent(Aws::String&& value) { m_userAgentHasBeenSet = true; m_userAgent = std::move(value); }
241 inline void SetUserAgent(const char* value) { m_userAgentHasBeenSet = true; m_userAgent.assign(value); }
242 inline EventLogEntry& WithUserAgent(const Aws::String& value) { SetUserAgent(value); return *this;}
243 inline EventLogEntry& WithUserAgent(Aws::String&& value) { SetUserAgent(std::move(value)); return *this;}
244 inline EventLogEntry& WithUserAgent(const char* value) { SetUserAgent(value); return *this;}
246 private:
247
248 Aws::String m_id;
249 bool m_idHasBeenSet = false;
250
251 Aws::String m_eventName;
252 bool m_eventNameHasBeenSet = false;
253
254 Aws::String m_eventType;
255 bool m_eventTypeHasBeenSet = false;
256
257 Aws::String m_eventCategory;
258 bool m_eventCategoryHasBeenSet = false;
259
260 Aws::String m_eventSource;
261 bool m_eventSourceHasBeenSet = false;
262
263 Aws::Utils::DateTime m_eventTime;
264 bool m_eventTimeHasBeenSet = false;
265
266 OperationType m_operationType;
267 bool m_operationTypeHasBeenSet = false;
268
269 UserIdentity m_userIdentity;
270 bool m_userIdentityHasBeenSet = false;
271
272 ProjectInformation m_projectInformation;
273 bool m_projectInformationHasBeenSet = false;
274
275 Aws::String m_requestId;
276 bool m_requestIdHasBeenSet = false;
277
278 EventPayload m_requestPayload;
279 bool m_requestPayloadHasBeenSet = false;
280
281 EventPayload m_responsePayload;
282 bool m_responsePayloadHasBeenSet = false;
283
284 Aws::String m_errorCode;
285 bool m_errorCodeHasBeenSet = false;
286
287 Aws::String m_sourceIpAddress;
288 bool m_sourceIpAddressHasBeenSet = false;
289
290 Aws::String m_userAgent;
291 bool m_userAgentHasBeenSet = false;
292 };
293
294} // namespace Model
295} // namespace CodeCatalyst
296} // namespace Aws
EventLogEntry & WithEventTime(Aws::Utils::DateTime &&value)
EventLogEntry & WithOperationType(const OperationType &value)
EventLogEntry & WithEventName(const char *value)
EventLogEntry & WithErrorCode(const char *value)
void SetEventCategory(const char *value)
bool ProjectInformationHasBeenSet() const
void SetEventSource(const Aws::String &value)
void SetEventType(const Aws::String &value)
bool RequestPayloadHasBeenSet() const
EventLogEntry & WithUserAgent(Aws::String &&value)
bool ErrorCodeHasBeenSet() const
void SetRequestId(Aws::String &&value)
EventLogEntry & WithUserAgent(const Aws::String &value)
void SetEventSource(Aws::String &&value)
void SetEventTime(Aws::Utils::DateTime &&value)
AWS_CODECATALYST_API EventLogEntry()
void SetSourceIpAddress(const Aws::String &value)
void SetRequestId(const char *value)
void SetEventName(const char *value)
EventLogEntry & WithEventCategory(Aws::String &&value)
EventLogEntry & WithSourceIpAddress(const char *value)
void SetProjectInformation(const ProjectInformation &value)
EventLogEntry & WithResponsePayload(const EventPayload &value)
void SetId(const char *value)
EventLogEntry & WithRequestPayload(EventPayload &&value)
void SetRequestPayload(const EventPayload &value)
void SetEventCategory(const Aws::String &value)
void SetEventName(const Aws::String &value)
void SetRequestPayload(EventPayload &&value)
EventLogEntry & WithUserAgent(const char *value)
const ProjectInformation & GetProjectInformation() const
const OperationType & GetOperationType() const
EventLogEntry & WithId(const Aws::String &value)
void SetErrorCode(Aws::String &&value)
bool EventNameHasBeenSet() const
bool EventTypeHasBeenSet() const
EventLogEntry & WithResponsePayload(EventPayload &&value)
EventLogEntry & WithSourceIpAddress(const Aws::String &value)
void SetResponsePayload(EventPayload &&value)
void SetEventCategory(Aws::String &&value)
void SetUserIdentity(const UserIdentity &value)
EventLogEntry & WithEventType(const Aws::String &value)
const Aws::Utils::DateTime & GetEventTime() const
const Aws::String & GetErrorCode() const
AWS_CODECATALYST_API EventLogEntry(Aws::Utils::Json::JsonView jsonValue)
EventLogEntry & WithEventType(Aws::String &&value)
EventLogEntry & WithId(const char *value)
EventLogEntry & WithRequestPayload(const EventPayload &value)
void SetRequestId(const Aws::String &value)
EventLogEntry & WithEventCategory(const char *value)
void SetUserAgent(Aws::String &&value)
void SetUserAgent(const char *value)
void SetSourceIpAddress(Aws::String &&value)
const Aws::String & GetRequestId() const
EventLogEntry & WithRequestId(Aws::String &&value)
void SetResponsePayload(const EventPayload &value)
void SetSourceIpAddress(const char *value)
void SetEventSource(const char *value)
void SetProjectInformation(ProjectInformation &&value)
const Aws::String & GetId() const
const Aws::String & GetEventSource() const
EventLogEntry & WithId(Aws::String &&value)
void SetEventType(Aws::String &&value)
bool IdHasBeenSet() const
const UserIdentity & GetUserIdentity() const
void SetErrorCode(const char *value)
EventLogEntry & WithProjectInformation(ProjectInformation &&value)
EventLogEntry & WithRequestId(const Aws::String &value)
EventLogEntry & WithEventName(Aws::String &&value)
bool ResponsePayloadHasBeenSet() const
EventLogEntry & WithEventCategory(const Aws::String &value)
EventLogEntry & WithErrorCode(const Aws::String &value)
void SetOperationType(OperationType &&value)
EventLogEntry & WithEventName(const Aws::String &value)
EventLogEntry & WithEventSource(Aws::String &&value)
EventLogEntry & WithSourceIpAddress(Aws::String &&value)
AWS_CODECATALYST_API EventLogEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
EventLogEntry & WithEventTime(const Aws::Utils::DateTime &value)
EventLogEntry & WithRequestId(const char *value)
const EventPayload & GetRequestPayload() const
void SetEventType(const char *value)
const Aws::String & GetEventType() const
void SetId(const Aws::String &value)
void SetUserIdentity(UserIdentity &&value)
EventLogEntry & WithUserIdentity(UserIdentity &&value)
bool EventCategoryHasBeenSet() const
void SetEventTime(const Aws::Utils::DateTime &value)
void SetUserAgent(const Aws::String &value)
AWS_CODECATALYST_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetEventCategory() const
EventLogEntry & WithProjectInformation(const ProjectInformation &value)
bool UserIdentityHasBeenSet() const
void SetOperationType(const OperationType &value)
bool RequestIdHasBeenSet() const
const Aws::String & GetUserAgent() const
void SetErrorCode(const Aws::String &value)
EventLogEntry & WithEventSource(const char *value)
bool OperationTypeHasBeenSet() const
bool UserAgentHasBeenSet() const
bool EventSourceHasBeenSet() const
bool SourceIpAddressHasBeenSet() const
EventLogEntry & WithErrorCode(Aws::String &&value)
void SetId(Aws::String &&value)
const EventPayload & GetResponsePayload() const
void SetEventName(Aws::String &&value)
EventLogEntry & WithOperationType(OperationType &&value)
EventLogEntry & WithEventType(const char *value)
const Aws::String & GetSourceIpAddress() const
const Aws::String & GetEventName() const
EventLogEntry & WithUserIdentity(const UserIdentity &value)
EventLogEntry & WithEventSource(const Aws::String &value)
bool EventTimeHasBeenSet() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue