AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
QueryStatistics.h
1
6#pragma once
7#include <aws/cloudtrail/CloudTrail_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace CloudTrail {
17namespace Model {
18
26 public:
27 AWS_CLOUDTRAIL_API QueryStatistics() = default;
28 AWS_CLOUDTRAIL_API QueryStatistics(Aws::Utils::Json::JsonView jsonValue);
30 AWS_CLOUDTRAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
31
33
36 inline int GetResultsCount() const { return m_resultsCount; }
37 inline bool ResultsCountHasBeenSet() const { return m_resultsCountHasBeenSet; }
38 inline void SetResultsCount(int value) {
39 m_resultsCountHasBeenSet = true;
40 m_resultsCount = value;
41 }
42 inline QueryStatistics& WithResultsCount(int value) {
43 SetResultsCount(value);
44 return *this;
45 }
47
49
52 inline int GetTotalResultsCount() const { return m_totalResultsCount; }
53 inline bool TotalResultsCountHasBeenSet() const { return m_totalResultsCountHasBeenSet; }
54 inline void SetTotalResultsCount(int value) {
55 m_totalResultsCountHasBeenSet = true;
56 m_totalResultsCount = value;
57 }
60 return *this;
61 }
63
65
70 inline long long GetBytesScanned() const { return m_bytesScanned; }
71 inline bool BytesScannedHasBeenSet() const { return m_bytesScannedHasBeenSet; }
72 inline void SetBytesScanned(long long value) {
73 m_bytesScannedHasBeenSet = true;
74 m_bytesScanned = value;
75 }
76 inline QueryStatistics& WithBytesScanned(long long value) {
77 SetBytesScanned(value);
78 return *this;
79 }
81 private:
82 int m_resultsCount{0};
83
84 int m_totalResultsCount{0};
85
86 long long m_bytesScanned{0};
87 bool m_resultsCountHasBeenSet = false;
88 bool m_totalResultsCountHasBeenSet = false;
89 bool m_bytesScannedHasBeenSet = false;
90};
91
92} // namespace Model
93} // namespace CloudTrail
94} // namespace Aws
QueryStatistics & WithResultsCount(int value)
QueryStatistics & WithBytesScanned(long long value)
AWS_CLOUDTRAIL_API Aws::Utils::Json::JsonValue Jsonize() const
QueryStatistics & WithTotalResultsCount(int value)
AWS_CLOUDTRAIL_API QueryStatistics(Aws::Utils::Json::JsonView jsonValue)
AWS_CLOUDTRAIL_API QueryStatistics & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CLOUDTRAIL_API QueryStatistics()=default
Aws::Utils::Json::JsonValue JsonValue