/* * 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 GetQueryResults operation. /// public partial class GetQueryResultsResponse : AmazonWebServiceResponse { private string _errorMessage; private string _nextToken; private List>> _queryResultRows = new List>>(); private QueryStatistics _queryStatistics; private QueryStatus _queryStatus; /// /// 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 NextToken. /// /// A token you can use to get the next page of query results. /// /// [AWSProperty(Min=4, Max=1000)] 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 QueryResultRows. /// /// Contains the individual event results of the query. /// /// public List>> QueryResultRows { get { return this._queryResultRows; } set { this._queryResultRows = value; } } // Check to see if QueryResultRows property is set internal bool IsSetQueryResultRows() { return this._queryResultRows != null && this._queryResultRows.Count > 0; } /// /// Gets and sets the property QueryStatistics. /// /// Shows the count of query results. /// /// public QueryStatistics 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 the query. Values 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; } } }