/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace CloudWatchLogs { namespace Model { /** *

Contains 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.

See Also:

AWS * API Reference

*/ class QueryStatistics { public: AWS_CLOUDWATCHLOGS_API QueryStatistics(); AWS_CLOUDWATCHLOGS_API QueryStatistics(Aws::Utils::Json::JsonView jsonValue); AWS_CLOUDWATCHLOGS_API QueryStatistics& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The number of log events that matched the query string.

*/ inline double GetRecordsMatched() const{ return m_recordsMatched; } /** *

The number of log events that matched the query string.

*/ inline bool RecordsMatchedHasBeenSet() const { return m_recordsMatchedHasBeenSet; } /** *

The number of log events that matched the query string.

*/ inline void SetRecordsMatched(double value) { m_recordsMatchedHasBeenSet = true; m_recordsMatched = value; } /** *

The number of log events that matched the query string.

*/ inline QueryStatistics& WithRecordsMatched(double value) { SetRecordsMatched(value); return *this;} /** *

The total number of log events scanned during the query.

*/ inline double GetRecordsScanned() const{ return m_recordsScanned; } /** *

The total number of log events scanned during the query.

*/ inline bool RecordsScannedHasBeenSet() const { return m_recordsScannedHasBeenSet; } /** *

The total number of log events scanned during the query.

*/ inline void SetRecordsScanned(double value) { m_recordsScannedHasBeenSet = true; m_recordsScanned = value; } /** *

The total number of log events scanned during the query.

*/ inline QueryStatistics& WithRecordsScanned(double value) { SetRecordsScanned(value); return *this;} /** *

The total number of bytes in the log events scanned during the query.

*/ inline double GetBytesScanned() const{ return m_bytesScanned; } /** *

The total number of bytes in the log events scanned during the query.

*/ inline bool BytesScannedHasBeenSet() const { return m_bytesScannedHasBeenSet; } /** *

The total number of bytes in the log events scanned during the query.

*/ inline void SetBytesScanned(double value) { m_bytesScannedHasBeenSet = true; m_bytesScanned = value; } /** *

The total number of bytes in the log events scanned during the query.

*/ inline QueryStatistics& WithBytesScanned(double value) { SetBytesScanned(value); return *this;} private: double m_recordsMatched; bool m_recordsMatchedHasBeenSet = false; double m_recordsScanned; bool m_recordsScannedHasBeenSet = false; double m_bytesScanned; bool m_bytesScannedHasBeenSet = false; }; } // namespace Model } // namespace CloudWatchLogs } // namespace Aws