/*
* 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 cloudtrail-2013-11-01.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.CloudTrail.Model
{
///
/// Contains information about an event that was returned by a lookup request. The result
/// includes a representation of a CloudTrail event.
///
public partial class Event
{
private string _accessKeyId;
private string _cloudTrailEvent;
private string _eventId;
private string _eventName;
private string _eventSource;
private DateTime? _eventTime;
private string _readOnly;
private List _resources = new List();
private string _username;
///
/// Gets and sets the property AccessKeyId.
///
/// The Amazon Web Services access key ID that was used to sign the request. If the request
/// was made with temporary security credentials, this is the access key ID of the temporary
/// credentials.
///
///
public string AccessKeyId
{
get { return this._accessKeyId; }
set { this._accessKeyId = value; }
}
// Check to see if AccessKeyId property is set
internal bool IsSetAccessKeyId()
{
return this._accessKeyId != null;
}
///
/// Gets and sets the property CloudTrailEvent.
///
/// A JSON string that contains a representation of the event returned.
///
///
public string CloudTrailEvent
{
get { return this._cloudTrailEvent; }
set { this._cloudTrailEvent = value; }
}
// Check to see if CloudTrailEvent property is set
internal bool IsSetCloudTrailEvent()
{
return this._cloudTrailEvent != null;
}
///
/// Gets and sets the property EventId.
///
/// The CloudTrail ID of the event returned.
///
///
public string EventId
{
get { return this._eventId; }
set { this._eventId = value; }
}
// Check to see if EventId property is set
internal bool IsSetEventId()
{
return this._eventId != null;
}
///
/// Gets and sets the property EventName.
///
/// The name of the event returned.
///
///
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 Amazon Web Services service to which the request was made.
///
///
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 date and time of the event returned.
///
///
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 ReadOnly.
///
/// Information about whether the event is a write event or a read event.
///
///
public string ReadOnly
{
get { return this._readOnly; }
set { this._readOnly = value; }
}
// Check to see if ReadOnly property is set
internal bool IsSetReadOnly()
{
return this._readOnly != null;
}
///
/// Gets and sets the property Resources.
///
/// A list of resources referenced by the event returned.
///
///
public List Resources
{
get { return this._resources; }
set { this._resources = value; }
}
// Check to see if Resources property is set
internal bool IsSetResources()
{
return this._resources != null && this._resources.Count > 0;
}
///
/// Gets and sets the property Username.
///
/// A user name or role name of the requester that called the API in the event returned.
///
///
public string Username
{
get { return this._username; }
set { this._username = value; }
}
// Check to see if Username property is set
internal bool IsSetUsername()
{
return this._username != null;
}
}
}