/*
* 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 DescribeQuery operation.
///
public partial class DescribeQueryResponse : AmazonWebServiceResponse
{
private string _deliveryS3Uri;
private DeliveryStatus _deliveryStatus;
private string _errorMessage;
private string _queryId;
private QueryStatisticsForDescribeQuery _queryStatistics;
private QueryStatus _queryStatus;
private string _queryString;
///
/// Gets and sets the property DeliveryS3Uri.
///
/// The URI for the S3 bucket where CloudTrail delivered query results, if applicable.
///
///
[AWSProperty(Max=1024)]
public string DeliveryS3Uri
{
get { return this._deliveryS3Uri; }
set { this._deliveryS3Uri = value; }
}
// Check to see if DeliveryS3Uri property is set
internal bool IsSetDeliveryS3Uri()
{
return this._deliveryS3Uri != null;
}
///
/// Gets and sets the property DeliveryStatus.
///
/// The delivery status.
///
///
public DeliveryStatus DeliveryStatus
{
get { return this._deliveryStatus; }
set { this._deliveryStatus = value; }
}
// Check to see if DeliveryStatus property is set
internal bool IsSetDeliveryStatus()
{
return this._deliveryStatus != null;
}
///
/// Gets and sets the property ErrorMessage.
///
/// The error message returned if a query failed.
///
///
[AWSProperty(Min=4, Max=1000)]
public string ErrorMessage
{
get { return this._errorMessage; }
set { this._errorMessage = value; }
}
// Check to see if ErrorMessage property is set
internal bool IsSetErrorMessage()
{
return this._errorMessage != null;
}
///
/// Gets and sets the property QueryId.
///
/// The ID of the query.
///
///
[AWSProperty(Min=36, Max=36)]
public string QueryId
{
get { return this._queryId; }
set { this._queryId = value; }
}
// Check to see if QueryId property is set
internal bool IsSetQueryId()
{
return this._queryId != null;
}
///
/// Gets and sets the property QueryStatistics.
///
/// Metadata about a query, including the number of events that were matched, the total
/// number of events scanned, the query run time in milliseconds, and the query's creation
/// time.
///
///
public QueryStatisticsForDescribeQuery QueryStatistics
{
get { return this._queryStatistics; }
set { this._queryStatistics = value; }
}
// Check to see if QueryStatistics property is set
internal bool IsSetQueryStatistics()
{
return this._queryStatistics != null;
}
///
/// Gets and sets the property QueryStatus.
///
/// The status of a query. Values for QueryStatus
include QUEUED
,
/// RUNNING
, FINISHED
, FAILED
, TIMED_OUT
,
/// or CANCELLED
///
///
public QueryStatus QueryStatus
{
get { return this._queryStatus; }
set { this._queryStatus = value; }
}
// Check to see if QueryStatus property is set
internal bool IsSetQueryStatus()
{
return this._queryStatus != null;
}
///
/// Gets and sets the property QueryString.
///
/// The SQL code of a query.
///
///
[AWSProperty(Min=1, Max=10000)]
public string QueryString
{
get { return this._queryString; }
set { this._queryString = value; }
}
// Check to see if QueryString property is set
internal bool IsSetQueryString()
{
return this._queryString != null;
}
}
}