AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CrawlerMetrics.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/glue/Glue_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Glue {
20namespace Model {
21
28 public:
29 AWS_GLUE_API CrawlerMetrics() = default;
33
35
38 inline const Aws::String& GetCrawlerName() const { return m_crawlerName; }
39 inline bool CrawlerNameHasBeenSet() const { return m_crawlerNameHasBeenSet; }
40 template <typename CrawlerNameT = Aws::String>
41 void SetCrawlerName(CrawlerNameT&& value) {
42 m_crawlerNameHasBeenSet = true;
43 m_crawlerName = std::forward<CrawlerNameT>(value);
44 }
45 template <typename CrawlerNameT = Aws::String>
46 CrawlerMetrics& WithCrawlerName(CrawlerNameT&& value) {
47 SetCrawlerName(std::forward<CrawlerNameT>(value));
48 return *this;
49 }
51
53
56 inline double GetTimeLeftSeconds() const { return m_timeLeftSeconds; }
57 inline bool TimeLeftSecondsHasBeenSet() const { return m_timeLeftSecondsHasBeenSet; }
58 inline void SetTimeLeftSeconds(double value) {
59 m_timeLeftSecondsHasBeenSet = true;
60 m_timeLeftSeconds = value;
61 }
62 inline CrawlerMetrics& WithTimeLeftSeconds(double value) {
63 SetTimeLeftSeconds(value);
64 return *this;
65 }
67
69
73 inline bool GetStillEstimating() const { return m_stillEstimating; }
74 inline bool StillEstimatingHasBeenSet() const { return m_stillEstimatingHasBeenSet; }
75 inline void SetStillEstimating(bool value) {
76 m_stillEstimatingHasBeenSet = true;
77 m_stillEstimating = value;
78 }
79 inline CrawlerMetrics& WithStillEstimating(bool value) {
80 SetStillEstimating(value);
81 return *this;
82 }
84
86
89 inline double GetLastRuntimeSeconds() const { return m_lastRuntimeSeconds; }
90 inline bool LastRuntimeSecondsHasBeenSet() const { return m_lastRuntimeSecondsHasBeenSet; }
91 inline void SetLastRuntimeSeconds(double value) {
92 m_lastRuntimeSecondsHasBeenSet = true;
93 m_lastRuntimeSeconds = value;
94 }
95 inline CrawlerMetrics& WithLastRuntimeSeconds(double value) {
97 return *this;
98 }
100
102
105 inline double GetMedianRuntimeSeconds() const { return m_medianRuntimeSeconds; }
106 inline bool MedianRuntimeSecondsHasBeenSet() const { return m_medianRuntimeSecondsHasBeenSet; }
107 inline void SetMedianRuntimeSeconds(double value) {
108 m_medianRuntimeSecondsHasBeenSet = true;
109 m_medianRuntimeSeconds = value;
110 }
113 return *this;
114 }
116
118
121 inline int GetTablesCreated() const { return m_tablesCreated; }
122 inline bool TablesCreatedHasBeenSet() const { return m_tablesCreatedHasBeenSet; }
123 inline void SetTablesCreated(int value) {
124 m_tablesCreatedHasBeenSet = true;
125 m_tablesCreated = value;
126 }
128 SetTablesCreated(value);
129 return *this;
130 }
132
134
137 inline int GetTablesUpdated() const { return m_tablesUpdated; }
138 inline bool TablesUpdatedHasBeenSet() const { return m_tablesUpdatedHasBeenSet; }
139 inline void SetTablesUpdated(int value) {
140 m_tablesUpdatedHasBeenSet = true;
141 m_tablesUpdated = value;
142 }
144 SetTablesUpdated(value);
145 return *this;
146 }
148
150
153 inline int GetTablesDeleted() const { return m_tablesDeleted; }
154 inline bool TablesDeletedHasBeenSet() const { return m_tablesDeletedHasBeenSet; }
155 inline void SetTablesDeleted(int value) {
156 m_tablesDeletedHasBeenSet = true;
157 m_tablesDeleted = value;
158 }
160 SetTablesDeleted(value);
161 return *this;
162 }
164 private:
165 Aws::String m_crawlerName;
166
167 double m_timeLeftSeconds{0.0};
168
169 bool m_stillEstimating{false};
170
171 double m_lastRuntimeSeconds{0.0};
172
173 double m_medianRuntimeSeconds{0.0};
174
175 int m_tablesCreated{0};
176
177 int m_tablesUpdated{0};
178
179 int m_tablesDeleted{0};
180 bool m_crawlerNameHasBeenSet = false;
181 bool m_timeLeftSecondsHasBeenSet = false;
182 bool m_stillEstimatingHasBeenSet = false;
183 bool m_lastRuntimeSecondsHasBeenSet = false;
184 bool m_medianRuntimeSecondsHasBeenSet = false;
185 bool m_tablesCreatedHasBeenSet = false;
186 bool m_tablesUpdatedHasBeenSet = false;
187 bool m_tablesDeletedHasBeenSet = false;
188};
189
190} // namespace Model
191} // namespace Glue
192} // namespace Aws
void SetLastRuntimeSeconds(double value)
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
CrawlerMetrics & WithTablesDeleted(int value)
AWS_GLUE_API CrawlerMetrics & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GLUE_API CrawlerMetrics(Aws::Utils::Json::JsonView jsonValue)
CrawlerMetrics & WithTablesUpdated(int value)
AWS_GLUE_API CrawlerMetrics()=default
const Aws::String & GetCrawlerName() const
void SetTimeLeftSeconds(double value)
CrawlerMetrics & WithTimeLeftSeconds(double value)
CrawlerMetrics & WithLastRuntimeSeconds(double value)
CrawlerMetrics & WithStillEstimating(bool value)
void SetMedianRuntimeSeconds(double value)
void SetCrawlerName(CrawlerNameT &&value)
CrawlerMetrics & WithMedianRuntimeSeconds(double value)
CrawlerMetrics & WithTablesCreated(int value)
CrawlerMetrics & WithCrawlerName(CrawlerNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue