/* * 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 { /// /// Container for the parameters to the LookupEvents operation. /// Looks up management /// events or CloudTrail /// Insights events that are captured by CloudTrail. You can look up events that occurred /// in a Region within the last 90 days. Lookup supports the following attributes for /// management events: /// /// /// /// Lookup supports the following attributes for Insights events: /// /// /// /// All attributes are optional. The default number of results returned is 50, with a /// maximum of 50 possible. The response includes a token that you can use to get the /// next page of results. /// /// /// /// The rate of lookup requests is limited to two per second, per account, per Region. /// If this limit is exceeded, a throttling error occurs. /// /// /// public partial class LookupEventsRequest : AmazonCloudTrailRequest { private DateTime? _endTime; private EventCategory _eventCategory; private List _lookupAttributes = new List(); private int? _maxResults; private string _nextToken; private DateTime? _startTime; /// /// Gets and sets the property EndTime. /// /// Specifies that only events that occur before or at the specified time are returned. /// If the specified end time is before the specified start time, an error is returned. /// /// public DateTime EndTime { get { return this._endTime.GetValueOrDefault(); } set { this._endTime = value; } } // Check to see if EndTime property is set internal bool IsSetEndTime() { return this._endTime.HasValue; } /// /// Gets and sets the property EventCategory. /// /// Specifies the event category. If you do not specify an event category, events of the /// category are not returned in the response. For example, if you do not specify insight /// as the value of EventCategory, no Insights events are returned. /// /// public EventCategory 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 LookupAttributes. /// /// Contains a list of lookup attributes. Currently the list can contain only one item. /// /// public List LookupAttributes { get { return this._lookupAttributes; } set { this._lookupAttributes = value; } } // Check to see if LookupAttributes property is set internal bool IsSetLookupAttributes() { return this._lookupAttributes != null && this._lookupAttributes.Count > 0; } /// /// Gets and sets the property MaxResults. /// /// The number of events to return. Possible values are 1 through 50. The default is 50. /// /// [AWSProperty(Min=1, Max=50)] public int MaxResults { get { return this._maxResults.GetValueOrDefault(); } set { this._maxResults = value; } } // Check to see if MaxResults property is set internal bool IsSetMaxResults() { return this._maxResults.HasValue; } /// /// Gets and sets the property NextToken. /// /// The token to use to get the next page of results after a previous API call. This token /// must be passed in with the same parameters that were specified in the original call. /// For example, if the original call specified an AttributeKey of 'Username' with a value /// of 'root', the call with NextToken should include those same parameters. /// /// public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } /// /// Gets and sets the property StartTime. /// /// Specifies that only events that occur after or at the specified time are returned. /// If the specified start time is after the specified end time, an error is returned. /// /// public DateTime StartTime { get { return this._startTime.GetValueOrDefault(); } set { this._startTime = value; } } // Check to see if StartTime property is set internal bool IsSetStartTime() { return this._startTime.HasValue; } } }