AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ExecutionStats.h
1
6#pragma once
7#include <aws/timestream-query/TimestreamQuery_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace TimestreamQuery {
17namespace Model {
18
25 public:
26 AWS_TIMESTREAMQUERY_API ExecutionStats() = default;
29 AWS_TIMESTREAMQUERY_API Aws::Utils::Json::JsonValue Jsonize() const;
30
32
36 inline long long GetExecutionTimeInMillis() const { return m_executionTimeInMillis; }
37 inline bool ExecutionTimeInMillisHasBeenSet() const { return m_executionTimeInMillisHasBeenSet; }
38 inline void SetExecutionTimeInMillis(long long value) {
39 m_executionTimeInMillisHasBeenSet = true;
40 m_executionTimeInMillis = value;
41 }
42 inline ExecutionStats& WithExecutionTimeInMillis(long long value) {
44 return *this;
45 }
47
49
52 inline long long GetDataWrites() const { return m_dataWrites; }
53 inline bool DataWritesHasBeenSet() const { return m_dataWritesHasBeenSet; }
54 inline void SetDataWrites(long long value) {
55 m_dataWritesHasBeenSet = true;
56 m_dataWrites = value;
57 }
58 inline ExecutionStats& WithDataWrites(long long value) {
59 SetDataWrites(value);
60 return *this;
61 }
63
65
68 inline long long GetBytesMetered() const { return m_bytesMetered; }
69 inline bool BytesMeteredHasBeenSet() const { return m_bytesMeteredHasBeenSet; }
70 inline void SetBytesMetered(long long value) {
71 m_bytesMeteredHasBeenSet = true;
72 m_bytesMetered = value;
73 }
74 inline ExecutionStats& WithBytesMetered(long long value) {
75 SetBytesMetered(value);
76 return *this;
77 }
79
81
84 inline long long GetCumulativeBytesScanned() const { return m_cumulativeBytesScanned; }
85 inline bool CumulativeBytesScannedHasBeenSet() const { return m_cumulativeBytesScannedHasBeenSet; }
86 inline void SetCumulativeBytesScanned(long long value) {
87 m_cumulativeBytesScannedHasBeenSet = true;
88 m_cumulativeBytesScanned = value;
89 }
90 inline ExecutionStats& WithCumulativeBytesScanned(long long value) {
92 return *this;
93 }
95
97
100 inline long long GetRecordsIngested() const { return m_recordsIngested; }
101 inline bool RecordsIngestedHasBeenSet() const { return m_recordsIngestedHasBeenSet; }
102 inline void SetRecordsIngested(long long value) {
103 m_recordsIngestedHasBeenSet = true;
104 m_recordsIngested = value;
105 }
106 inline ExecutionStats& WithRecordsIngested(long long value) {
107 SetRecordsIngested(value);
108 return *this;
109 }
111
113
117 inline long long GetQueryResultRows() const { return m_queryResultRows; }
118 inline bool QueryResultRowsHasBeenSet() const { return m_queryResultRowsHasBeenSet; }
119 inline void SetQueryResultRows(long long value) {
120 m_queryResultRowsHasBeenSet = true;
121 m_queryResultRows = value;
122 }
123 inline ExecutionStats& WithQueryResultRows(long long value) {
124 SetQueryResultRows(value);
125 return *this;
126 }
128 private:
129 long long m_executionTimeInMillis{0};
130
131 long long m_dataWrites{0};
132
133 long long m_bytesMetered{0};
134
135 long long m_cumulativeBytesScanned{0};
136
137 long long m_recordsIngested{0};
138
139 long long m_queryResultRows{0};
140 bool m_executionTimeInMillisHasBeenSet = false;
141 bool m_dataWritesHasBeenSet = false;
142 bool m_bytesMeteredHasBeenSet = false;
143 bool m_cumulativeBytesScannedHasBeenSet = false;
144 bool m_recordsIngestedHasBeenSet = false;
145 bool m_queryResultRowsHasBeenSet = false;
146};
147
148} // namespace Model
149} // namespace TimestreamQuery
150} // namespace Aws
ExecutionStats & WithRecordsIngested(long long value)
ExecutionStats & WithExecutionTimeInMillis(long long value)
AWS_TIMESTREAMQUERY_API Aws::Utils::Json::JsonValue Jsonize() const
ExecutionStats & WithCumulativeBytesScanned(long long value)
AWS_TIMESTREAMQUERY_API ExecutionStats()=default
ExecutionStats & WithQueryResultRows(long long value)
AWS_TIMESTREAMQUERY_API ExecutionStats & operator=(Aws::Utils::Json::JsonView jsonValue)
ExecutionStats & WithDataWrites(long long value)
AWS_TIMESTREAMQUERY_API ExecutionStats(Aws::Utils::Json::JsonView jsonValue)
ExecutionStats & WithBytesMetered(long long value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::Utils::Json::JsonValue JsonValue