AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CrawlerMetrics.h
1
6#pragma once
7#include <aws/glue/Glue_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Glue
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_GLUE_API CrawlerMetrics() = default;
38
39
41
44 inline const Aws::String& GetCrawlerName() const { return m_crawlerName; }
45 inline bool CrawlerNameHasBeenSet() const { return m_crawlerNameHasBeenSet; }
46 template<typename CrawlerNameT = Aws::String>
47 void SetCrawlerName(CrawlerNameT&& value) { m_crawlerNameHasBeenSet = true; m_crawlerName = std::forward<CrawlerNameT>(value); }
48 template<typename CrawlerNameT = Aws::String>
49 CrawlerMetrics& WithCrawlerName(CrawlerNameT&& value) { SetCrawlerName(std::forward<CrawlerNameT>(value)); return *this;}
51
53
56 inline double GetTimeLeftSeconds() const { return m_timeLeftSeconds; }
57 inline bool TimeLeftSecondsHasBeenSet() const { return m_timeLeftSecondsHasBeenSet; }
58 inline void SetTimeLeftSeconds(double value) { m_timeLeftSecondsHasBeenSet = true; m_timeLeftSeconds = value; }
59 inline CrawlerMetrics& WithTimeLeftSeconds(double value) { SetTimeLeftSeconds(value); return *this;}
61
63
67 inline bool GetStillEstimating() const { return m_stillEstimating; }
68 inline bool StillEstimatingHasBeenSet() const { return m_stillEstimatingHasBeenSet; }
69 inline void SetStillEstimating(bool value) { m_stillEstimatingHasBeenSet = true; m_stillEstimating = value; }
70 inline CrawlerMetrics& WithStillEstimating(bool value) { SetStillEstimating(value); return *this;}
72
74
77 inline double GetLastRuntimeSeconds() const { return m_lastRuntimeSeconds; }
78 inline bool LastRuntimeSecondsHasBeenSet() const { return m_lastRuntimeSecondsHasBeenSet; }
79 inline void SetLastRuntimeSeconds(double value) { m_lastRuntimeSecondsHasBeenSet = true; m_lastRuntimeSeconds = value; }
80 inline CrawlerMetrics& WithLastRuntimeSeconds(double value) { SetLastRuntimeSeconds(value); return *this;}
82
84
87 inline double GetMedianRuntimeSeconds() const { return m_medianRuntimeSeconds; }
88 inline bool MedianRuntimeSecondsHasBeenSet() const { return m_medianRuntimeSecondsHasBeenSet; }
89 inline void SetMedianRuntimeSeconds(double value) { m_medianRuntimeSecondsHasBeenSet = true; m_medianRuntimeSeconds = value; }
90 inline CrawlerMetrics& WithMedianRuntimeSeconds(double value) { SetMedianRuntimeSeconds(value); return *this;}
92
94
97 inline int GetTablesCreated() const { return m_tablesCreated; }
98 inline bool TablesCreatedHasBeenSet() const { return m_tablesCreatedHasBeenSet; }
99 inline void SetTablesCreated(int value) { m_tablesCreatedHasBeenSet = true; m_tablesCreated = value; }
100 inline CrawlerMetrics& WithTablesCreated(int value) { SetTablesCreated(value); return *this;}
102
104
107 inline int GetTablesUpdated() const { return m_tablesUpdated; }
108 inline bool TablesUpdatedHasBeenSet() const { return m_tablesUpdatedHasBeenSet; }
109 inline void SetTablesUpdated(int value) { m_tablesUpdatedHasBeenSet = true; m_tablesUpdated = value; }
110 inline CrawlerMetrics& WithTablesUpdated(int value) { SetTablesUpdated(value); return *this;}
112
114
117 inline int GetTablesDeleted() const { return m_tablesDeleted; }
118 inline bool TablesDeletedHasBeenSet() const { return m_tablesDeletedHasBeenSet; }
119 inline void SetTablesDeleted(int value) { m_tablesDeletedHasBeenSet = true; m_tablesDeleted = value; }
120 inline CrawlerMetrics& WithTablesDeleted(int value) { SetTablesDeleted(value); return *this;}
122 private:
123
124 Aws::String m_crawlerName;
125 bool m_crawlerNameHasBeenSet = false;
126
127 double m_timeLeftSeconds{0.0};
128 bool m_timeLeftSecondsHasBeenSet = false;
129
130 bool m_stillEstimating{false};
131 bool m_stillEstimatingHasBeenSet = false;
132
133 double m_lastRuntimeSeconds{0.0};
134 bool m_lastRuntimeSecondsHasBeenSet = false;
135
136 double m_medianRuntimeSeconds{0.0};
137 bool m_medianRuntimeSecondsHasBeenSet = false;
138
139 int m_tablesCreated{0};
140 bool m_tablesCreatedHasBeenSet = false;
141
142 int m_tablesUpdated{0};
143 bool m_tablesUpdatedHasBeenSet = false;
144
145 int m_tablesDeleted{0};
146 bool m_tablesDeletedHasBeenSet = false;
147 };
148
149} // namespace Model
150} // namespace Glue
151} // 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