/** * 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 CloudTrail { namespace Model { /** *

Metadata about a query, such as the number of results.

See * Also:

AWS * API Reference

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

The number of results returned.

*/ inline int GetResultsCount() const{ return m_resultsCount; } /** *

The number of results returned.

*/ inline bool ResultsCountHasBeenSet() const { return m_resultsCountHasBeenSet; } /** *

The number of results returned.

*/ inline void SetResultsCount(int value) { m_resultsCountHasBeenSet = true; m_resultsCount = value; } /** *

The number of results returned.

*/ inline QueryStatistics& WithResultsCount(int value) { SetResultsCount(value); return *this;} /** *

The total number of results returned by a query.

*/ inline int GetTotalResultsCount() const{ return m_totalResultsCount; } /** *

The total number of results returned by a query.

*/ inline bool TotalResultsCountHasBeenSet() const { return m_totalResultsCountHasBeenSet; } /** *

The total number of results returned by a query.

*/ inline void SetTotalResultsCount(int value) { m_totalResultsCountHasBeenSet = true; m_totalResultsCount = value; } /** *

The total number of results returned by a query.

*/ inline QueryStatistics& WithTotalResultsCount(int value) { SetTotalResultsCount(value); return *this;} /** *

The total bytes that the query scanned in the event data store. This value * matches the number of bytes for which your account is billed for the query, * unless the query is still running.

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

The total bytes that the query scanned in the event data store. This value * matches the number of bytes for which your account is billed for the query, * unless the query is still running.

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

The total bytes that the query scanned in the event data store. This value * matches the number of bytes for which your account is billed for the query, * unless the query is still running.

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

The total bytes that the query scanned in the event data store. This value * matches the number of bytes for which your account is billed for the query, * unless the query is still running.

*/ inline QueryStatistics& WithBytesScanned(long long value) { SetBytesScanned(value); return *this;} private: int m_resultsCount; bool m_resultsCountHasBeenSet = false; int m_totalResultsCount; bool m_totalResultsCountHasBeenSet = false; long long m_bytesScanned; bool m_bytesScannedHasBeenSet = false; }; } // namespace Model } // namespace CloudTrail } // namespace Aws