AWS SDK for C++

AWS SDK for C++ Version 1.11.900

Loading...
Searching...
No Matches
QueryStatistics.h
1
6#pragma once
7#include <aws/cloudwatchomni/CloudWatchOmni_EXPORTS.h>
8#include <aws/cloudwatchomni/model/PartialResults.h>
9#include <aws/crt/cbor/Cbor.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Cbor {
16class CborValue;
17} // namespace Cbor
18} // namespace Utils
19namespace CloudWatchOmni {
20namespace Model {
21
28 public:
29 AWS_CLOUDWATCHOMNI_API QueryStatistics() = default;
30 AWS_CLOUDWATCHOMNI_API QueryStatistics(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
31 AWS_CLOUDWATCHOMNI_API QueryStatistics& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
32 AWS_CLOUDWATCHOMNI_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
33
35
38 inline double GetBytesScanned() const { return m_bytesScanned; }
39 inline bool BytesScannedHasBeenSet() const { return m_bytesScannedHasBeenSet; }
40 inline void SetBytesScanned(double value) {
41 m_bytesScannedHasBeenSet = true;
42 m_bytesScanned = value;
43 }
44 inline QueryStatistics& WithBytesScanned(double value) {
45 SetBytesScanned(value);
46 return *this;
47 }
49
51
54 inline int64_t GetPercentComplete() const { return m_percentComplete; }
55 inline bool PercentCompleteHasBeenSet() const { return m_percentCompleteHasBeenSet; }
56 inline void SetPercentComplete(int64_t value) {
57 m_percentCompleteHasBeenSet = true;
58 m_percentComplete = value;
59 }
60 inline QueryStatistics& WithPercentComplete(int64_t value) {
61 SetPercentComplete(value);
62 return *this;
63 }
65
67
70 inline long long GetRecordsScanned() const { return m_recordsScanned; }
71 inline bool RecordsScannedHasBeenSet() const { return m_recordsScannedHasBeenSet; }
72 inline void SetRecordsScanned(long long value) {
73 m_recordsScannedHasBeenSet = true;
74 m_recordsScanned = value;
75 }
76 inline QueryStatistics& WithRecordsScanned(long long value) {
77 SetRecordsScanned(value);
78 return *this;
79 }
81
83
86 inline long long GetRecordsMatched() const { return m_recordsMatched; }
87 inline bool RecordsMatchedHasBeenSet() const { return m_recordsMatchedHasBeenSet; }
88 inline void SetRecordsMatched(long long value) {
89 m_recordsMatchedHasBeenSet = true;
90 m_recordsMatched = value;
91 }
92 inline QueryStatistics& WithRecordsMatched(long long value) {
93 SetRecordsMatched(value);
94 return *this;
95 }
97
99
102 inline const PartialResults& GetPartialResults() const { return m_partialResults; }
103 inline bool PartialResultsHasBeenSet() const { return m_partialResultsHasBeenSet; }
104 template <typename PartialResultsT = PartialResults>
105 void SetPartialResults(PartialResultsT&& value) {
106 m_partialResultsHasBeenSet = true;
107 m_partialResults = std::forward<PartialResultsT>(value);
108 }
109 template <typename PartialResultsT = PartialResults>
110 QueryStatistics& WithPartialResults(PartialResultsT&& value) {
111 SetPartialResults(std::forward<PartialResultsT>(value));
112 return *this;
113 }
115 private:
116 double m_bytesScanned{0.0};
117
118 int64_t m_percentComplete{0};
119
120 long long m_recordsScanned{0};
121
122 long long m_recordsMatched{0};
123
124 PartialResults m_partialResults;
125 bool m_bytesScannedHasBeenSet = false;
126 bool m_percentCompleteHasBeenSet = false;
127 bool m_recordsScannedHasBeenSet = false;
128 bool m_recordsMatchedHasBeenSet = false;
129 bool m_partialResultsHasBeenSet = false;
130};
131
132} // namespace Model
133} // namespace CloudWatchOmni
134} // namespace Aws
AWS_CLOUDWATCHOMNI_API QueryStatistics(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_CLOUDWATCHOMNI_API QueryStatistics & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const PartialResults & GetPartialResults() const
AWS_CLOUDWATCHOMNI_API QueryStatistics()=default
QueryStatistics & WithRecordsScanned(long long value)
QueryStatistics & WithPercentComplete(int64_t value)
QueryStatistics & WithRecordsMatched(long long value)
QueryStatistics & WithBytesScanned(double value)
AWS_CLOUDWATCHOMNI_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
QueryStatistics & WithPartialResults(PartialResultsT &&value)
void SetPartialResults(PartialResultsT &&value)