/* * 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 import that was returned by a lookup request. /// public partial class ImportsListItem { private DateTime? _createdTimestamp; private List _destinations = new List(); private string _importId; private ImportStatus _importStatus; private DateTime? _updatedTimestamp; /// /// Gets and sets the property CreatedTimestamp. /// /// The timestamp of the import's creation. /// /// public DateTime CreatedTimestamp { get { return this._createdTimestamp.GetValueOrDefault(); } set { this._createdTimestamp = value; } } // Check to see if CreatedTimestamp property is set internal bool IsSetCreatedTimestamp() { return this._createdTimestamp.HasValue; } /// /// Gets and sets the property Destinations. /// /// The ARN of the destination event data store. /// /// [AWSProperty(Min=1, Max=1)] public List Destinations { get { return this._destinations; } set { this._destinations = value; } } // Check to see if Destinations property is set internal bool IsSetDestinations() { return this._destinations != null && this._destinations.Count > 0; } /// /// Gets and sets the property ImportId. /// /// The ID of the import. /// /// [AWSProperty(Min=36, Max=36)] public string ImportId { get { return this._importId; } set { this._importId = value; } } // Check to see if ImportId property is set internal bool IsSetImportId() { return this._importId != null; } /// /// Gets and sets the property ImportStatus. /// /// The status of the import. /// /// public ImportStatus ImportStatus { get { return this._importStatus; } set { this._importStatus = value; } } // Check to see if ImportStatus property is set internal bool IsSetImportStatus() { return this._importStatus != null; } /// /// Gets and sets the property UpdatedTimestamp. /// /// The timestamp of the import's last update. /// /// public DateTime UpdatedTimestamp { get { return this._updatedTimestamp.GetValueOrDefault(); } set { this._updatedTimestamp = value; } } // Check to see if UpdatedTimestamp property is set internal bool IsSetUpdatedTimestamp() { return this._updatedTimestamp.HasValue; } } }