/*
* 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
{
///
/// This is the response object from the StopImport operation.
///
public partial class StopImportResponse : AmazonWebServiceResponse
{
private DateTime? _createdTimestamp;
private List _destinations = new List();
private DateTime? _endEventTime;
private string _importId;
private ImportSource _importSource;
private ImportStatistics _importStatistics;
private ImportStatus _importStatus;
private DateTime? _startEventTime;
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 EndEventTime.
///
/// Used with StartEventTime
to bound a StartImport
request,
/// and limit imported trail events to only those events logged within a specified time
/// period.
///
///
public DateTime EndEventTime
{
get { return this._endEventTime.GetValueOrDefault(); }
set { this._endEventTime = value; }
}
// Check to see if EndEventTime property is set
internal bool IsSetEndEventTime()
{
return this._endEventTime.HasValue;
}
///
/// Gets and sets the property ImportId.
///
/// The ID for 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 ImportSource.
///
/// The source S3 bucket for the import.
///
///
public ImportSource ImportSource
{
get { return this._importSource; }
set { this._importSource = value; }
}
// Check to see if ImportSource property is set
internal bool IsSetImportSource()
{
return this._importSource != null;
}
///
/// Gets and sets the property ImportStatistics.
///
/// Returns information on the stopped import.
///
///
public ImportStatistics ImportStatistics
{
get { return this._importStatistics; }
set { this._importStatistics = value; }
}
// Check to see if ImportStatistics property is set
internal bool IsSetImportStatistics()
{
return this._importStatistics != 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 StartEventTime.
///
/// Used with EndEventTime
to bound a StartImport
request,
/// and limit imported trail events to only those events logged within a specified time
/// period.
///
///
public DateTime StartEventTime
{
get { return this._startEventTime.GetValueOrDefault(); }
set { this._startEventTime = value; }
}
// Check to see if StartEventTime property is set
internal bool IsSetStartEventTime()
{
return this._startEventTime.HasValue;
}
///
/// 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;
}
}
}