AWS SDK for C++

AWS SDK for C++ Version 1.11.897

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
145
153 inline double GetResultCount() const { return m_resultCount; }
154 inline bool ResultCountHasBeenSet() const { return m_resultCountHasBeenSet; }
155 inline void SetResultCount(double value) {
156 m_resultCountHasBeenSet = true;
157 m_resultCount = value;
158 }
159 inline QueryStatistics& WithResultCount(double value) {
160 SetResultCount(value);
161 return *this;
162 }
164 private:
165 double m_recordsMatched{0.0};
166
167 double m_recordsScanned{0.0};
168
169 double m_estimatedRecordsSkipped{0.0};
170
171 double m_bytesScanned{0.0};
172
173 double m_estimatedBytesSkipped{0.0};
174
175 double m_logGroupsScanned{0.0};
176
177 double m_resultCount{0.0};
178 bool m_recordsMatchedHasBeenSet = false;
179 bool m_recordsScannedHasBeenSet = false;
180 bool m_estimatedRecordsSkippedHasBeenSet = false;
181 bool m_bytesScannedHasBeenSet = false;
182 bool m_estimatedBytesSkippedHasBeenSet = false;
183 bool m_logGroupsScannedHasBeenSet = false;
184 bool m_resultCountHasBeenSet = false;
185};
186
187} // namespace Model
188} // namespace CloudWatchLogs
189} // namespace Aws
QueryStatistics & WithEstimatedRecordsSkipped(double value)
AWS_CLOUDWATCHLOGS_API QueryStatistics & operator=(Aws::Utils::Json::JsonView jsonValue)
QueryStatistics & WithResultCount(double value)
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