AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
QueryEvalStats.h
1
6#pragma once
7#include <aws/core/utils/Document.h>
8#include <aws/neptunedata/Neptunedata_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace neptunedata {
20namespace Model {
21
29 public:
30 AWS_NEPTUNEDATA_API QueryEvalStats() = default;
31 AWS_NEPTUNEDATA_API QueryEvalStats(Aws::Utils::Json::JsonView jsonValue);
32 AWS_NEPTUNEDATA_API QueryEvalStats& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_NEPTUNEDATA_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline int GetWaited() const { return m_waited; }
40 inline bool WaitedHasBeenSet() const { return m_waitedHasBeenSet; }
41 inline void SetWaited(int value) {
42 m_waitedHasBeenSet = true;
43 m_waited = value;
44 }
45 inline QueryEvalStats& WithWaited(int value) {
46 SetWaited(value);
47 return *this;
48 }
50
52
55 inline int GetElapsed() const { return m_elapsed; }
56 inline bool ElapsedHasBeenSet() const { return m_elapsedHasBeenSet; }
57 inline void SetElapsed(int value) {
58 m_elapsedHasBeenSet = true;
59 m_elapsed = value;
60 }
61 inline QueryEvalStats& WithElapsed(int value) {
62 SetElapsed(value);
63 return *this;
64 }
66
68
71 inline bool GetCancelled() const { return m_cancelled; }
72 inline bool CancelledHasBeenSet() const { return m_cancelledHasBeenSet; }
73 inline void SetCancelled(bool value) {
74 m_cancelledHasBeenSet = true;
75 m_cancelled = value;
76 }
77 inline QueryEvalStats& WithCancelled(bool value) {
78 SetCancelled(value);
79 return *this;
80 }
82
84
87 inline Aws::Utils::DocumentView GetSubqueries() const { return m_subqueries; }
88 inline bool SubqueriesHasBeenSet() const { return m_subqueriesHasBeenSet; }
89 template <typename SubqueriesT = Aws::Utils::Document>
90 void SetSubqueries(SubqueriesT&& value) {
91 m_subqueriesHasBeenSet = true;
92 m_subqueries = std::forward<SubqueriesT>(value);
93 }
94 template <typename SubqueriesT = Aws::Utils::Document>
95 QueryEvalStats& WithSubqueries(SubqueriesT&& value) {
96 SetSubqueries(std::forward<SubqueriesT>(value));
97 return *this;
98 }
100 private:
101 int m_waited{0};
102
103 int m_elapsed{0};
104
105 bool m_cancelled{false};
106
107 Aws::Utils::Document m_subqueries;
108 bool m_waitedHasBeenSet = false;
109 bool m_elapsedHasBeenSet = false;
110 bool m_cancelledHasBeenSet = false;
111 bool m_subqueriesHasBeenSet = false;
112};
113
114} // namespace Model
115} // namespace neptunedata
116} // namespace Aws
AWS_NEPTUNEDATA_API QueryEvalStats(Aws::Utils::Json::JsonView jsonValue)
AWS_NEPTUNEDATA_API Aws::Utils::Json::JsonValue Jsonize() const
QueryEvalStats & WithSubqueries(SubqueriesT &&value)
void SetSubqueries(SubqueriesT &&value)
AWS_NEPTUNEDATA_API QueryEvalStats()=default
Aws::Utils::DocumentView GetSubqueries() const
QueryEvalStats & WithWaited(int value)
AWS_NEPTUNEDATA_API QueryEvalStats & operator=(Aws::Utils::Json::JsonView jsonValue)
QueryEvalStats & WithCancelled(bool value)
QueryEvalStats & WithElapsed(int value)
Aws::Utils::Json::JsonValue JsonValue