/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Information about an entry in an event log of Amazon CodeCatalyst
* activity.See Also:
AWS
* API Reference
The system-generated unique ID of the event.
*/ inline const Aws::String& GetId() const{ return m_id; } /** *The system-generated unique ID of the event.
*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *The system-generated unique ID of the event.
*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *The system-generated unique ID of the event.
*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *The system-generated unique ID of the event.
*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *The system-generated unique ID of the event.
*/ inline EventLogEntry& WithId(const Aws::String& value) { SetId(value); return *this;} /** *The system-generated unique ID of the event.
*/ inline EventLogEntry& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *The system-generated unique ID of the event.
*/ inline EventLogEntry& WithId(const char* value) { SetId(value); return *this;} /** *The name of the event.
*/ inline const Aws::String& GetEventName() const{ return m_eventName; } /** *The name of the event.
*/ inline bool EventNameHasBeenSet() const { return m_eventNameHasBeenSet; } /** *The name of the event.
*/ inline void SetEventName(const Aws::String& value) { m_eventNameHasBeenSet = true; m_eventName = value; } /** *The name of the event.
*/ inline void SetEventName(Aws::String&& value) { m_eventNameHasBeenSet = true; m_eventName = std::move(value); } /** *The name of the event.
*/ inline void SetEventName(const char* value) { m_eventNameHasBeenSet = true; m_eventName.assign(value); } /** *The name of the event.
*/ inline EventLogEntry& WithEventName(const Aws::String& value) { SetEventName(value); return *this;} /** *The name of the event.
*/ inline EventLogEntry& WithEventName(Aws::String&& value) { SetEventName(std::move(value)); return *this;} /** *The name of the event.
*/ inline EventLogEntry& WithEventName(const char* value) { SetEventName(value); return *this;} /** *The type of the event.
*/ inline const Aws::String& GetEventType() const{ return m_eventType; } /** *The type of the event.
*/ inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; } /** *The type of the event.
*/ inline void SetEventType(const Aws::String& value) { m_eventTypeHasBeenSet = true; m_eventType = value; } /** *The type of the event.
*/ inline void SetEventType(Aws::String&& value) { m_eventTypeHasBeenSet = true; m_eventType = std::move(value); } /** *The type of the event.
*/ inline void SetEventType(const char* value) { m_eventTypeHasBeenSet = true; m_eventType.assign(value); } /** *The type of the event.
*/ inline EventLogEntry& WithEventType(const Aws::String& value) { SetEventType(value); return *this;} /** *The type of the event.
*/ inline EventLogEntry& WithEventType(Aws::String&& value) { SetEventType(std::move(value)); return *this;} /** *The type of the event.
*/ inline EventLogEntry& WithEventType(const char* value) { SetEventType(value); return *this;} /** *The category for the event.
*/ inline const Aws::String& GetEventCategory() const{ return m_eventCategory; } /** *The category for the event.
*/ inline bool EventCategoryHasBeenSet() const { return m_eventCategoryHasBeenSet; } /** *The category for the event.
*/ inline void SetEventCategory(const Aws::String& value) { m_eventCategoryHasBeenSet = true; m_eventCategory = value; } /** *The category for the event.
*/ inline void SetEventCategory(Aws::String&& value) { m_eventCategoryHasBeenSet = true; m_eventCategory = std::move(value); } /** *The category for the event.
*/ inline void SetEventCategory(const char* value) { m_eventCategoryHasBeenSet = true; m_eventCategory.assign(value); } /** *The category for the event.
*/ inline EventLogEntry& WithEventCategory(const Aws::String& value) { SetEventCategory(value); return *this;} /** *The category for the event.
*/ inline EventLogEntry& WithEventCategory(Aws::String&& value) { SetEventCategory(std::move(value)); return *this;} /** *The category for the event.
*/ inline EventLogEntry& WithEventCategory(const char* value) { SetEventCategory(value); return *this;} /** *The source of the event.
*/ inline const Aws::String& GetEventSource() const{ return m_eventSource; } /** *The source of the event.
*/ inline bool EventSourceHasBeenSet() const { return m_eventSourceHasBeenSet; } /** *The source of the event.
*/ inline void SetEventSource(const Aws::String& value) { m_eventSourceHasBeenSet = true; m_eventSource = value; } /** *The source of the event.
*/ inline void SetEventSource(Aws::String&& value) { m_eventSourceHasBeenSet = true; m_eventSource = std::move(value); } /** *The source of the event.
*/ inline void SetEventSource(const char* value) { m_eventSourceHasBeenSet = true; m_eventSource.assign(value); } /** *The source of the event.
*/ inline EventLogEntry& WithEventSource(const Aws::String& value) { SetEventSource(value); return *this;} /** *The source of the event.
*/ inline EventLogEntry& WithEventSource(Aws::String&& value) { SetEventSource(std::move(value)); return *this;} /** *The source of the event.
*/ inline EventLogEntry& WithEventSource(const char* value) { SetEventSource(value); return *this;} /** *The time the event took place, in coordinated universal time (UTC) timestamp * format as specified in RFC 3339.
*/ inline const Aws::Utils::DateTime& GetEventTime() const{ return m_eventTime; } /** *The time the event took place, in coordinated universal time (UTC) timestamp * format as specified in RFC 3339.
*/ inline bool EventTimeHasBeenSet() const { return m_eventTimeHasBeenSet; } /** *The time the event took place, in coordinated universal time (UTC) timestamp * format as specified in RFC 3339.
*/ inline void SetEventTime(const Aws::Utils::DateTime& value) { m_eventTimeHasBeenSet = true; m_eventTime = value; } /** *The time the event took place, in coordinated universal time (UTC) timestamp * format as specified in RFC 3339.
*/ inline void SetEventTime(Aws::Utils::DateTime&& value) { m_eventTimeHasBeenSet = true; m_eventTime = std::move(value); } /** *The time the event took place, in coordinated universal time (UTC) timestamp * format as specified in RFC 3339.
*/ inline EventLogEntry& WithEventTime(const Aws::Utils::DateTime& value) { SetEventTime(value); return *this;} /** *The time the event took place, in coordinated universal time (UTC) timestamp * format as specified in RFC 3339.
*/ inline EventLogEntry& WithEventTime(Aws::Utils::DateTime&& value) { SetEventTime(std::move(value)); return *this;} /** *The type of the event.
*/ inline const OperationType& GetOperationType() const{ return m_operationType; } /** *The type of the event.
*/ inline bool OperationTypeHasBeenSet() const { return m_operationTypeHasBeenSet; } /** *The type of the event.
*/ inline void SetOperationType(const OperationType& value) { m_operationTypeHasBeenSet = true; m_operationType = value; } /** *The type of the event.
*/ inline void SetOperationType(OperationType&& value) { m_operationTypeHasBeenSet = true; m_operationType = std::move(value); } /** *The type of the event.
*/ inline EventLogEntry& WithOperationType(const OperationType& value) { SetOperationType(value); return *this;} /** *The type of the event.
*/ inline EventLogEntry& WithOperationType(OperationType&& value) { SetOperationType(std::move(value)); return *this;} /** *The system-generated unique ID of the user whose actions are recorded in the * event.
*/ inline const UserIdentity& GetUserIdentity() const{ return m_userIdentity; } /** *The system-generated unique ID of the user whose actions are recorded in the * event.
*/ inline bool UserIdentityHasBeenSet() const { return m_userIdentityHasBeenSet; } /** *The system-generated unique ID of the user whose actions are recorded in the * event.
*/ inline void SetUserIdentity(const UserIdentity& value) { m_userIdentityHasBeenSet = true; m_userIdentity = value; } /** *The system-generated unique ID of the user whose actions are recorded in the * event.
*/ inline void SetUserIdentity(UserIdentity&& value) { m_userIdentityHasBeenSet = true; m_userIdentity = std::move(value); } /** *The system-generated unique ID of the user whose actions are recorded in the * event.
*/ inline EventLogEntry& WithUserIdentity(const UserIdentity& value) { SetUserIdentity(value); return *this;} /** *The system-generated unique ID of the user whose actions are recorded in the * event.
*/ inline EventLogEntry& WithUserIdentity(UserIdentity&& value) { SetUserIdentity(std::move(value)); return *this;} /** *Information about the project where the event occurred.
*/ inline const ProjectInformation& GetProjectInformation() const{ return m_projectInformation; } /** *Information about the project where the event occurred.
*/ inline bool ProjectInformationHasBeenSet() const { return m_projectInformationHasBeenSet; } /** *Information about the project where the event occurred.
*/ inline void SetProjectInformation(const ProjectInformation& value) { m_projectInformationHasBeenSet = true; m_projectInformation = value; } /** *Information about the project where the event occurred.
*/ inline void SetProjectInformation(ProjectInformation&& value) { m_projectInformationHasBeenSet = true; m_projectInformation = std::move(value); } /** *Information about the project where the event occurred.
*/ inline EventLogEntry& WithProjectInformation(const ProjectInformation& value) { SetProjectInformation(value); return *this;} /** *Information about the project where the event occurred.
*/ inline EventLogEntry& WithProjectInformation(ProjectInformation&& value) { SetProjectInformation(std::move(value)); return *this;} /** *The system-generated unique ID of the request.
*/ inline const Aws::String& GetRequestId() const{ return m_requestId; } /** *The system-generated unique ID of the request.
*/ inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; } /** *The system-generated unique ID of the request.
*/ inline void SetRequestId(const Aws::String& value) { m_requestIdHasBeenSet = true; m_requestId = value; } /** *The system-generated unique ID of the request.
*/ inline void SetRequestId(Aws::String&& value) { m_requestIdHasBeenSet = true; m_requestId = std::move(value); } /** *The system-generated unique ID of the request.
*/ inline void SetRequestId(const char* value) { m_requestIdHasBeenSet = true; m_requestId.assign(value); } /** *The system-generated unique ID of the request.
*/ inline EventLogEntry& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} /** *The system-generated unique ID of the request.
*/ inline EventLogEntry& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} /** *The system-generated unique ID of the request.
*/ inline EventLogEntry& WithRequestId(const char* value) { SetRequestId(value); return *this;} /** *Information about the payload of the request.
*/ inline const EventPayload& GetRequestPayload() const{ return m_requestPayload; } /** *Information about the payload of the request.
*/ inline bool RequestPayloadHasBeenSet() const { return m_requestPayloadHasBeenSet; } /** *Information about the payload of the request.
*/ inline void SetRequestPayload(const EventPayload& value) { m_requestPayloadHasBeenSet = true; m_requestPayload = value; } /** *Information about the payload of the request.
*/ inline void SetRequestPayload(EventPayload&& value) { m_requestPayloadHasBeenSet = true; m_requestPayload = std::move(value); } /** *Information about the payload of the request.
*/ inline EventLogEntry& WithRequestPayload(const EventPayload& value) { SetRequestPayload(value); return *this;} /** *Information about the payload of the request.
*/ inline EventLogEntry& WithRequestPayload(EventPayload&& value) { SetRequestPayload(std::move(value)); return *this;} /** *Information about the payload of the response, if any.
*/ inline const EventPayload& GetResponsePayload() const{ return m_responsePayload; } /** *Information about the payload of the response, if any.
*/ inline bool ResponsePayloadHasBeenSet() const { return m_responsePayloadHasBeenSet; } /** *Information about the payload of the response, if any.
*/ inline void SetResponsePayload(const EventPayload& value) { m_responsePayloadHasBeenSet = true; m_responsePayload = value; } /** *Information about the payload of the response, if any.
*/ inline void SetResponsePayload(EventPayload&& value) { m_responsePayloadHasBeenSet = true; m_responsePayload = std::move(value); } /** *Information about the payload of the response, if any.
*/ inline EventLogEntry& WithResponsePayload(const EventPayload& value) { SetResponsePayload(value); return *this;} /** *Information about the payload of the response, if any.
*/ inline EventLogEntry& WithResponsePayload(EventPayload&& value) { SetResponsePayload(std::move(value)); return *this;} /** *The code of the error, if any.
*/ inline const Aws::String& GetErrorCode() const{ return m_errorCode; } /** *The code of the error, if any.
*/ inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; } /** *The code of the error, if any.
*/ inline void SetErrorCode(const Aws::String& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; } /** *The code of the error, if any.
*/ inline void SetErrorCode(Aws::String&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); } /** *The code of the error, if any.
*/ inline void SetErrorCode(const char* value) { m_errorCodeHasBeenSet = true; m_errorCode.assign(value); } /** *The code of the error, if any.
*/ inline EventLogEntry& WithErrorCode(const Aws::String& value) { SetErrorCode(value); return *this;} /** *The code of the error, if any.
*/ inline EventLogEntry& WithErrorCode(Aws::String&& value) { SetErrorCode(std::move(value)); return *this;} /** *The code of the error, if any.
*/ inline EventLogEntry& WithErrorCode(const char* value) { SetErrorCode(value); return *this;} /** *The IP address of the user whose actions are recorded in the event.
*/ inline const Aws::String& GetSourceIpAddress() const{ return m_sourceIpAddress; } /** *The IP address of the user whose actions are recorded in the event.
*/ inline bool SourceIpAddressHasBeenSet() const { return m_sourceIpAddressHasBeenSet; } /** *The IP address of the user whose actions are recorded in the event.
*/ inline void SetSourceIpAddress(const Aws::String& value) { m_sourceIpAddressHasBeenSet = true; m_sourceIpAddress = value; } /** *The IP address of the user whose actions are recorded in the event.
*/ inline void SetSourceIpAddress(Aws::String&& value) { m_sourceIpAddressHasBeenSet = true; m_sourceIpAddress = std::move(value); } /** *The IP address of the user whose actions are recorded in the event.
*/ inline void SetSourceIpAddress(const char* value) { m_sourceIpAddressHasBeenSet = true; m_sourceIpAddress.assign(value); } /** *The IP address of the user whose actions are recorded in the event.
*/ inline EventLogEntry& WithSourceIpAddress(const Aws::String& value) { SetSourceIpAddress(value); return *this;} /** *The IP address of the user whose actions are recorded in the event.
*/ inline EventLogEntry& WithSourceIpAddress(Aws::String&& value) { SetSourceIpAddress(std::move(value)); return *this;} /** *The IP address of the user whose actions are recorded in the event.
*/ inline EventLogEntry& WithSourceIpAddress(const char* value) { SetSourceIpAddress(value); return *this;} /** *The user agent whose actions are recorded in the event.
*/ inline const Aws::String& GetUserAgent() const{ return m_userAgent; } /** *The user agent whose actions are recorded in the event.
*/ inline bool UserAgentHasBeenSet() const { return m_userAgentHasBeenSet; } /** *The user agent whose actions are recorded in the event.
*/ inline void SetUserAgent(const Aws::String& value) { m_userAgentHasBeenSet = true; m_userAgent = value; } /** *The user agent whose actions are recorded in the event.
*/ inline void SetUserAgent(Aws::String&& value) { m_userAgentHasBeenSet = true; m_userAgent = std::move(value); } /** *The user agent whose actions are recorded in the event.
*/ inline void SetUserAgent(const char* value) { m_userAgentHasBeenSet = true; m_userAgent.assign(value); } /** *The user agent whose actions are recorded in the event.
*/ inline EventLogEntry& WithUserAgent(const Aws::String& value) { SetUserAgent(value); return *this;} /** *The user agent whose actions are recorded in the event.
*/ inline EventLogEntry& WithUserAgent(Aws::String&& value) { SetUserAgent(std::move(value)); return *this;} /** *The user agent whose actions are recorded in the event.
*/ inline EventLogEntry& WithUserAgent(const char* value) { SetUserAgent(value); return *this;} private: Aws::String m_id; bool m_idHasBeenSet = false; Aws::String m_eventName; bool m_eventNameHasBeenSet = false; Aws::String m_eventType; bool m_eventTypeHasBeenSet = false; Aws::String m_eventCategory; bool m_eventCategoryHasBeenSet = false; Aws::String m_eventSource; bool m_eventSourceHasBeenSet = false; Aws::Utils::DateTime m_eventTime; bool m_eventTimeHasBeenSet = false; OperationType m_operationType; bool m_operationTypeHasBeenSet = false; UserIdentity m_userIdentity; bool m_userIdentityHasBeenSet = false; ProjectInformation m_projectInformation; bool m_projectInformationHasBeenSet = false; Aws::String m_requestId; bool m_requestIdHasBeenSet = false; EventPayload m_requestPayload; bool m_requestPayloadHasBeenSet = false; EventPayload m_responsePayload; bool m_responsePayloadHasBeenSet = false; Aws::String m_errorCode; bool m_errorCodeHasBeenSet = false; Aws::String m_sourceIpAddress; bool m_sourceIpAddressHasBeenSet = false; Aws::String m_userAgent; bool m_userAgentHasBeenSet = false; }; } // namespace Model } // namespace CodeCatalyst } // namespace Aws