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

Gets metadata about a query, including the number of events that were * matched, the total number of events scanned, the query run time in milliseconds, * and the query's creation time.

See Also:

AWS * API Reference

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

The number of events that matched a query.

*/ inline long long GetEventsMatched() const{ return m_eventsMatched; } /** *

The number of events that matched a query.

*/ inline bool EventsMatchedHasBeenSet() const { return m_eventsMatchedHasBeenSet; } /** *

The number of events that matched a query.

*/ inline void SetEventsMatched(long long value) { m_eventsMatchedHasBeenSet = true; m_eventsMatched = value; } /** *

The number of events that matched a query.

*/ inline QueryStatisticsForDescribeQuery& WithEventsMatched(long long value) { SetEventsMatched(value); return *this;} /** *

The number of events that the query scanned in the event data store.

*/ inline long long GetEventsScanned() const{ return m_eventsScanned; } /** *

The number of events that the query scanned in the event data store.

*/ inline bool EventsScannedHasBeenSet() const { return m_eventsScannedHasBeenSet; } /** *

The number of events that the query scanned in the event data store.

*/ inline void SetEventsScanned(long long value) { m_eventsScannedHasBeenSet = true; m_eventsScanned = value; } /** *

The number of events that the query scanned in the event data store.

*/ inline QueryStatisticsForDescribeQuery& WithEventsScanned(long long value) { SetEventsScanned(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 QueryStatisticsForDescribeQuery& WithBytesScanned(long long value) { SetBytesScanned(value); return *this;} /** *

The query's run time, in milliseconds.

*/ inline int GetExecutionTimeInMillis() const{ return m_executionTimeInMillis; } /** *

The query's run time, in milliseconds.

*/ inline bool ExecutionTimeInMillisHasBeenSet() const { return m_executionTimeInMillisHasBeenSet; } /** *

The query's run time, in milliseconds.

*/ inline void SetExecutionTimeInMillis(int value) { m_executionTimeInMillisHasBeenSet = true; m_executionTimeInMillis = value; } /** *

The query's run time, in milliseconds.

*/ inline QueryStatisticsForDescribeQuery& WithExecutionTimeInMillis(int value) { SetExecutionTimeInMillis(value); return *this;} /** *

The creation time of the query.

*/ inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; } /** *

The creation time of the query.

*/ inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; } /** *

The creation time of the query.

*/ inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; } /** *

The creation time of the query.

*/ inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); } /** *

The creation time of the query.

*/ inline QueryStatisticsForDescribeQuery& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;} /** *

The creation time of the query.

*/ inline QueryStatisticsForDescribeQuery& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;} private: long long m_eventsMatched; bool m_eventsMatchedHasBeenSet = false; long long m_eventsScanned; bool m_eventsScannedHasBeenSet = false; long long m_bytesScanned; bool m_bytesScannedHasBeenSet = false; int m_executionTimeInMillis; bool m_executionTimeInMillisHasBeenSet = false; Aws::Utils::DateTime m_creationTime; bool m_creationTimeHasBeenSet = false; }; } // namespace Model } // namespace CloudTrail } // namespace Aws