AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
QueryStatistics.h
1
6#pragma once
7#include <aws/logs/CloudWatchLogs_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace CloudWatchLogs {
17namespace Model {
18
34 public:
35 AWS_CLOUDWATCHLOGS_API QueryStatistics() = default;
36 AWS_CLOUDWATCHLOGS_API QueryStatistics(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CLOUDWATCHLOGS_API QueryStatistics& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline double GetRecordsMatched() const { return m_recordsMatched; }
45 inline bool RecordsMatchedHasBeenSet() const { return m_recordsMatchedHasBeenSet; }
46 inline void SetRecordsMatched(double value) {
47 m_recordsMatchedHasBeenSet = true;
48 m_recordsMatched = value;
49 }
50 inline QueryStatistics& WithRecordsMatched(double value) {
51 SetRecordsMatched(value);
52 return *this;
53 }
55
57
60 inline double GetRecordsScanned() const { return m_recordsScanned; }
61 inline bool RecordsScannedHasBeenSet() const { return m_recordsScannedHasBeenSet; }
62 inline void SetRecordsScanned(double value) {
63 m_recordsScannedHasBeenSet = true;
64 m_recordsScanned = value;
65 }
66 inline QueryStatistics& WithRecordsScanned(double value) {
67 SetRecordsScanned(value);
68 return *this;
69 }
71
73
80 inline double GetEstimatedRecordsSkipped() const { return m_estimatedRecordsSkipped; }
81 inline bool EstimatedRecordsSkippedHasBeenSet() const { return m_estimatedRecordsSkippedHasBeenSet; }
82 inline void SetEstimatedRecordsSkipped(double value) {
83 m_estimatedRecordsSkippedHasBeenSet = true;
84 m_estimatedRecordsSkipped = value;
85 }
88 return *this;
89 }
91
93
96 inline double GetBytesScanned() const { return m_bytesScanned; }
97 inline bool BytesScannedHasBeenSet() const { return m_bytesScannedHasBeenSet; }
98 inline void SetBytesScanned(double value) {
99 m_bytesScannedHasBeenSet = true;
100 m_bytesScanned = value;
101 }
102 inline QueryStatistics& WithBytesScanned(double value) {
103 SetBytesScanned(value);
104 return *this;
105 }
107
109
116 inline double GetEstimatedBytesSkipped() const { return m_estimatedBytesSkipped; }
117 inline bool EstimatedBytesSkippedHasBeenSet() const { return m_estimatedBytesSkippedHasBeenSet; }
118 inline void SetEstimatedBytesSkipped(double value) {
119 m_estimatedBytesSkippedHasBeenSet = true;
120 m_estimatedBytesSkipped = value;
121 }
124 return *this;
125 }
127
129
132 inline double GetLogGroupsScanned() const { return m_logGroupsScanned; }
133 inline bool LogGroupsScannedHasBeenSet() const { return m_logGroupsScannedHasBeenSet; }
134 inline void SetLogGroupsScanned(double value) {
135 m_logGroupsScannedHasBeenSet = true;
136 m_logGroupsScanned = value;
137 }
138 inline QueryStatistics& WithLogGroupsScanned(double value) {
139 SetLogGroupsScanned(value);
140 return *this;
141 }
143 private:
144 double m_recordsMatched{0.0};
145
146 double m_recordsScanned{0.0};
147
148 double m_estimatedRecordsSkipped{0.0};
149
150 double m_bytesScanned{0.0};
151
152 double m_estimatedBytesSkipped{0.0};
153
154 double m_logGroupsScanned{0.0};
155 bool m_recordsMatchedHasBeenSet = false;
156 bool m_recordsScannedHasBeenSet = false;
157 bool m_estimatedRecordsSkippedHasBeenSet = false;
158 bool m_bytesScannedHasBeenSet = false;
159 bool m_estimatedBytesSkippedHasBeenSet = false;
160 bool m_logGroupsScannedHasBeenSet = false;
161};
162
163} // namespace Model
164} // namespace CloudWatchLogs
165} // namespace Aws
QueryStatistics & WithEstimatedRecordsSkipped(double value)
AWS_CLOUDWATCHLOGS_API QueryStatistics & operator=(Aws::Utils::Json::JsonView jsonValue)
QueryStatistics & WithEstimatedBytesSkipped(double value)
AWS_CLOUDWATCHLOGS_API QueryStatistics(Aws::Utils::Json::JsonView jsonValue)
QueryStatistics & WithRecordsScanned(double value)
QueryStatistics & WithBytesScanned(double value)
QueryStatistics & WithRecordsMatched(double value)
AWS_CLOUDWATCHLOGS_API QueryStatistics()=default
AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const
QueryStatistics & WithLogGroupsScanned(double value)
Aws::Utils::Json::JsonValue JsonValue