/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace CloudWatchLogs { namespace Model { class AWS_CLOUDWATCHLOGS_API GetQueryResultsResult { public: GetQueryResultsResult(); GetQueryResultsResult(const Aws::AmazonWebServiceResult& result); GetQueryResultsResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The log events that matched the query criteria during the most recent time it * ran.

The results value is an array of arrays. Each log event * is one object in the top-level array. Each of these log event objects is an * array of field/value pairs.

*/ inline const Aws::Vector>& GetResults() const{ return m_results; } /** *

The log events that matched the query criteria during the most recent time it * ran.

The results value is an array of arrays. Each log event * is one object in the top-level array. Each of these log event objects is an * array of field/value pairs.

*/ inline void SetResults(const Aws::Vector>& value) { m_results = value; } /** *

The log events that matched the query criteria during the most recent time it * ran.

The results value is an array of arrays. Each log event * is one object in the top-level array. Each of these log event objects is an * array of field/value pairs.

*/ inline void SetResults(Aws::Vector>&& value) { m_results = std::move(value); } /** *

The log events that matched the query criteria during the most recent time it * ran.

The results value is an array of arrays. Each log event * is one object in the top-level array. Each of these log event objects is an * array of field/value pairs.

*/ inline GetQueryResultsResult& WithResults(const Aws::Vector>& value) { SetResults(value); return *this;} /** *

The log events that matched the query criteria during the most recent time it * ran.

The results value is an array of arrays. Each log event * is one object in the top-level array. Each of these log event objects is an * array of field/value pairs.

*/ inline GetQueryResultsResult& WithResults(Aws::Vector>&& value) { SetResults(std::move(value)); return *this;} /** *

The log events that matched the query criteria during the most recent time it * ran.

The results value is an array of arrays. Each log event * is one object in the top-level array. Each of these log event objects is an * array of field/value pairs.

*/ inline GetQueryResultsResult& AddResults(const Aws::Vector& value) { m_results.push_back(value); return *this; } /** *

The log events that matched the query criteria during the most recent time it * ran.

The results value is an array of arrays. Each log event * is one object in the top-level array. Each of these log event objects is an * array of field/value pairs.

*/ inline GetQueryResultsResult& AddResults(Aws::Vector&& value) { m_results.push_back(std::move(value)); return *this; } /** *

Includes the number of log events scanned by the query, the number of log * events that matched the query criteria, and the total number of bytes in the log * events that were scanned. These values reflect the full raw results of the * query.

*/ inline const QueryStatistics& GetStatistics() const{ return m_statistics; } /** *

Includes the number of log events scanned by the query, the number of log * events that matched the query criteria, and the total number of bytes in the log * events that were scanned. These values reflect the full raw results of the * query.

*/ inline void SetStatistics(const QueryStatistics& value) { m_statistics = value; } /** *

Includes the number of log events scanned by the query, the number of log * events that matched the query criteria, and the total number of bytes in the log * events that were scanned. These values reflect the full raw results of the * query.

*/ inline void SetStatistics(QueryStatistics&& value) { m_statistics = std::move(value); } /** *

Includes the number of log events scanned by the query, the number of log * events that matched the query criteria, and the total number of bytes in the log * events that were scanned. These values reflect the full raw results of the * query.

*/ inline GetQueryResultsResult& WithStatistics(const QueryStatistics& value) { SetStatistics(value); return *this;} /** *

Includes the number of log events scanned by the query, the number of log * events that matched the query criteria, and the total number of bytes in the log * events that were scanned. These values reflect the full raw results of the * query.

*/ inline GetQueryResultsResult& WithStatistics(QueryStatistics&& value) { SetStatistics(std::move(value)); return *this;} /** *

The status of the most recent running of the query. Possible values are * Cancelled, Complete, Failed, * Running, Scheduled, Timeout, and * Unknown.

Queries time out after 15 minutes of execution. To * avoid having your queries time out, reduce the time range being searched or * partition your query into a number of queries.

*/ inline const QueryStatus& GetStatus() const{ return m_status; } /** *

The status of the most recent running of the query. Possible values are * Cancelled, Complete, Failed, * Running, Scheduled, Timeout, and * Unknown.

Queries time out after 15 minutes of execution. To * avoid having your queries time out, reduce the time range being searched or * partition your query into a number of queries.

*/ inline void SetStatus(const QueryStatus& value) { m_status = value; } /** *

The status of the most recent running of the query. Possible values are * Cancelled, Complete, Failed, * Running, Scheduled, Timeout, and * Unknown.

Queries time out after 15 minutes of execution. To * avoid having your queries time out, reduce the time range being searched or * partition your query into a number of queries.

*/ inline void SetStatus(QueryStatus&& value) { m_status = std::move(value); } /** *

The status of the most recent running of the query. Possible values are * Cancelled, Complete, Failed, * Running, Scheduled, Timeout, and * Unknown.

Queries time out after 15 minutes of execution. To * avoid having your queries time out, reduce the time range being searched or * partition your query into a number of queries.

*/ inline GetQueryResultsResult& WithStatus(const QueryStatus& value) { SetStatus(value); return *this;} /** *

The status of the most recent running of the query. Possible values are * Cancelled, Complete, Failed, * Running, Scheduled, Timeout, and * Unknown.

Queries time out after 15 minutes of execution. To * avoid having your queries time out, reduce the time range being searched or * partition your query into a number of queries.

*/ inline GetQueryResultsResult& WithStatus(QueryStatus&& value) { SetStatus(std::move(value)); return *this;} private: Aws::Vector> m_results; QueryStatistics m_statistics; QueryStatus m_status; }; } // namespace Model } // namespace CloudWatchLogs } // namespace Aws