/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #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 GetQueryResultsResult { public: AWS_CLOUDWATCHLOGS_API GetQueryResultsResult(); AWS_CLOUDWATCHLOGS_API GetQueryResultsResult(const Aws::AmazonWebServiceResult& result); AWS_CLOUDWATCHLOGS_API 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 * scanned log events. 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 * scanned log events. 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 * scanned log events. 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 * scanned log events. 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 * scanned log events. 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 60 minutes of runtime. 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 60 minutes of runtime. 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 60 minutes of runtime. 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 60 minutes of runtime. 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 60 minutes of runtime. 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;} /** *

If you associated an KMS key with the CloudWatch Logs Insights query results * in this account, this field displays the ARN of the key that's used to encrypt * the query results when StartQuery * stores them.

*/ inline const Aws::String& GetEncryptionKey() const{ return m_encryptionKey; } /** *

If you associated an KMS key with the CloudWatch Logs Insights query results * in this account, this field displays the ARN of the key that's used to encrypt * the query results when StartQuery * stores them.

*/ inline void SetEncryptionKey(const Aws::String& value) { m_encryptionKey = value; } /** *

If you associated an KMS key with the CloudWatch Logs Insights query results * in this account, this field displays the ARN of the key that's used to encrypt * the query results when StartQuery * stores them.

*/ inline void SetEncryptionKey(Aws::String&& value) { m_encryptionKey = std::move(value); } /** *

If you associated an KMS key with the CloudWatch Logs Insights query results * in this account, this field displays the ARN of the key that's used to encrypt * the query results when StartQuery * stores them.

*/ inline void SetEncryptionKey(const char* value) { m_encryptionKey.assign(value); } /** *

If you associated an KMS key with the CloudWatch Logs Insights query results * in this account, this field displays the ARN of the key that's used to encrypt * the query results when StartQuery * stores them.

*/ inline GetQueryResultsResult& WithEncryptionKey(const Aws::String& value) { SetEncryptionKey(value); return *this;} /** *

If you associated an KMS key with the CloudWatch Logs Insights query results * in this account, this field displays the ARN of the key that's used to encrypt * the query results when StartQuery * stores them.

*/ inline GetQueryResultsResult& WithEncryptionKey(Aws::String&& value) { SetEncryptionKey(std::move(value)); return *this;} /** *

If you associated an KMS key with the CloudWatch Logs Insights query results * in this account, this field displays the ARN of the key that's used to encrypt * the query results when StartQuery * stores them.

*/ inline GetQueryResultsResult& WithEncryptionKey(const char* value) { SetEncryptionKey(value); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline GetQueryResultsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetQueryResultsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetQueryResultsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector> m_results; QueryStatistics m_statistics; QueryStatus m_status; Aws::String m_encryptionKey; Aws::String m_requestId; }; } // namespace Model } // namespace CloudWatchLogs } // namespace Aws