/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the codecatalyst-2022-09-28.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CodeCatalyst.Model
{
///
/// Information about an entry in an event log of Amazon CodeCatalyst activity.
///
public partial class EventLogEntry
{
private string _errorCode;
private string _eventCategory;
private string _eventName;
private string _eventSource;
private DateTime? _eventTime;
private string _eventType;
private string _id;
private OperationType _operationType;
private ProjectInformation _projectInformation;
private string _requestId;
private EventPayload _requestPayload;
private EventPayload _responsePayload;
private string _sourceIpAddress;
private string _userAgent;
private UserIdentity _userIdentity;
///
/// Gets and sets the property ErrorCode.
///
/// The code of the error, if any.
///
///
public string ErrorCode
{
get { return this._errorCode; }
set { this._errorCode = value; }
}
// Check to see if ErrorCode property is set
internal bool IsSetErrorCode()
{
return this._errorCode != null;
}
///
/// Gets and sets the property EventCategory.
///
/// The category for the event.
///
///
[AWSProperty(Required=true)]
public string EventCategory
{
get { return this._eventCategory; }
set { this._eventCategory = value; }
}
// Check to see if EventCategory property is set
internal bool IsSetEventCategory()
{
return this._eventCategory != null;
}
///
/// Gets and sets the property EventName.
///
/// The name of the event.
///
///
[AWSProperty(Required=true)]
public string EventName
{
get { return this._eventName; }
set { this._eventName = value; }
}
// Check to see if EventName property is set
internal bool IsSetEventName()
{
return this._eventName != null;
}
///
/// Gets and sets the property EventSource.
///
/// The source of the event.
///
///
[AWSProperty(Required=true)]
public string EventSource
{
get { return this._eventSource; }
set { this._eventSource = value; }
}
// Check to see if EventSource property is set
internal bool IsSetEventSource()
{
return this._eventSource != null;
}
///
/// Gets and sets the property EventTime.
///
/// The time the event took place, in coordinated universal time (UTC) timestamp format
/// as specified in RFC 3339.
///
///
[AWSProperty(Required=true)]
public DateTime EventTime
{
get { return this._eventTime.GetValueOrDefault(); }
set { this._eventTime = value; }
}
// Check to see if EventTime property is set
internal bool IsSetEventTime()
{
return this._eventTime.HasValue;
}
///
/// Gets and sets the property EventType.
///
/// The type of the event.
///
///
[AWSProperty(Required=true)]
public string EventType
{
get { return this._eventType; }
set { this._eventType = value; }
}
// Check to see if EventType property is set
internal bool IsSetEventType()
{
return this._eventType != null;
}
///
/// Gets and sets the property Id.
///
/// The system-generated unique ID of the event.
///
///
[AWSProperty(Required=true)]
public string Id
{
get { return this._id; }
set { this._id = value; }
}
// Check to see if Id property is set
internal bool IsSetId()
{
return this._id != null;
}
///
/// Gets and sets the property OperationType.
///
/// The type of the event.
///
///
[AWSProperty(Required=true)]
public OperationType OperationType
{
get { return this._operationType; }
set { this._operationType = value; }
}
// Check to see if OperationType property is set
internal bool IsSetOperationType()
{
return this._operationType != null;
}
///
/// Gets and sets the property ProjectInformation.
///
/// Information about the project where the event occurred.
///
///
public ProjectInformation ProjectInformation
{
get { return this._projectInformation; }
set { this._projectInformation = value; }
}
// Check to see if ProjectInformation property is set
internal bool IsSetProjectInformation()
{
return this._projectInformation != null;
}
///
/// Gets and sets the property RequestId.
///
/// The system-generated unique ID of the request.
///
///
public string RequestId
{
get { return this._requestId; }
set { this._requestId = value; }
}
// Check to see if RequestId property is set
internal bool IsSetRequestId()
{
return this._requestId != null;
}
///
/// Gets and sets the property RequestPayload.
///
/// Information about the payload of the request.
///
///
public EventPayload RequestPayload
{
get { return this._requestPayload; }
set { this._requestPayload = value; }
}
// Check to see if RequestPayload property is set
internal bool IsSetRequestPayload()
{
return this._requestPayload != null;
}
///
/// Gets and sets the property ResponsePayload.
///
/// Information about the payload of the response, if any.
///
///
public EventPayload ResponsePayload
{
get { return this._responsePayload; }
set { this._responsePayload = value; }
}
// Check to see if ResponsePayload property is set
internal bool IsSetResponsePayload()
{
return this._responsePayload != null;
}
///
/// Gets and sets the property SourceIpAddress.
///
/// The IP address of the user whose actions are recorded in the event.
///
///
public string SourceIpAddress
{
get { return this._sourceIpAddress; }
set { this._sourceIpAddress = value; }
}
// Check to see if SourceIpAddress property is set
internal bool IsSetSourceIpAddress()
{
return this._sourceIpAddress != null;
}
///
/// Gets and sets the property UserAgent.
///
/// The user agent whose actions are recorded in the event.
///
///
public string UserAgent
{
get { return this._userAgent; }
set { this._userAgent = value; }
}
// Check to see if UserAgent property is set
internal bool IsSetUserAgent()
{
return this._userAgent != null;
}
///
/// Gets and sets the property UserIdentity.
///
/// The system-generated unique ID of the user whose actions are recorded in the event.
///
///
[AWSProperty(Required=true)]
public UserIdentity UserIdentity
{
get { return this._userIdentity; }
set { this._userIdentity = value; }
}
// Check to see if UserIdentity property is set
internal bool IsSetUserIdentity()
{
return this._userIdentity != null;
}
}
}