AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TableOptimizerRun.h
1
6#pragma once
7#include <aws/glue/Glue_EXPORTS.h>
8#include <aws/glue/model/TableOptimizerEventType.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/glue/model/CompactionMetrics.h>
12#include <aws/glue/model/RetentionMetrics.h>
13#include <aws/glue/model/OrphanFileDeletionMetrics.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace Glue
27{
28namespace Model
29{
30
37 {
38 public:
39 AWS_GLUE_API TableOptimizerRun();
43
44
46
49 inline const TableOptimizerEventType& GetEventType() const{ return m_eventType; }
50 inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; }
51 inline void SetEventType(const TableOptimizerEventType& value) { m_eventTypeHasBeenSet = true; m_eventType = value; }
52 inline void SetEventType(TableOptimizerEventType&& value) { m_eventTypeHasBeenSet = true; m_eventType = std::move(value); }
53 inline TableOptimizerRun& WithEventType(const TableOptimizerEventType& value) { SetEventType(value); return *this;}
54 inline TableOptimizerRun& WithEventType(TableOptimizerEventType&& value) { SetEventType(std::move(value)); return *this;}
56
58
62 inline const Aws::Utils::DateTime& GetStartTimestamp() const{ return m_startTimestamp; }
63 inline bool StartTimestampHasBeenSet() const { return m_startTimestampHasBeenSet; }
64 inline void SetStartTimestamp(const Aws::Utils::DateTime& value) { m_startTimestampHasBeenSet = true; m_startTimestamp = value; }
65 inline void SetStartTimestamp(Aws::Utils::DateTime&& value) { m_startTimestampHasBeenSet = true; m_startTimestamp = std::move(value); }
66 inline TableOptimizerRun& WithStartTimestamp(const Aws::Utils::DateTime& value) { SetStartTimestamp(value); return *this;}
67 inline TableOptimizerRun& WithStartTimestamp(Aws::Utils::DateTime&& value) { SetStartTimestamp(std::move(value)); return *this;}
69
71
74 inline const Aws::Utils::DateTime& GetEndTimestamp() const{ return m_endTimestamp; }
75 inline bool EndTimestampHasBeenSet() const { return m_endTimestampHasBeenSet; }
76 inline void SetEndTimestamp(const Aws::Utils::DateTime& value) { m_endTimestampHasBeenSet = true; m_endTimestamp = value; }
77 inline void SetEndTimestamp(Aws::Utils::DateTime&& value) { m_endTimestampHasBeenSet = true; m_endTimestamp = std::move(value); }
78 inline TableOptimizerRun& WithEndTimestamp(const Aws::Utils::DateTime& value) { SetEndTimestamp(value); return *this;}
79 inline TableOptimizerRun& WithEndTimestamp(Aws::Utils::DateTime&& value) { SetEndTimestamp(std::move(value)); return *this;}
81
83
86 inline const Aws::String& GetError() const{ return m_error; }
87 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
88 inline void SetError(const Aws::String& value) { m_errorHasBeenSet = true; m_error = value; }
89 inline void SetError(Aws::String&& value) { m_errorHasBeenSet = true; m_error = std::move(value); }
90 inline void SetError(const char* value) { m_errorHasBeenSet = true; m_error.assign(value); }
91 inline TableOptimizerRun& WithError(const Aws::String& value) { SetError(value); return *this;}
92 inline TableOptimizerRun& WithError(Aws::String&& value) { SetError(std::move(value)); return *this;}
93 inline TableOptimizerRun& WithError(const char* value) { SetError(value); return *this;}
95
97
101 inline const CompactionMetrics& GetCompactionMetrics() const{ return m_compactionMetrics; }
102 inline bool CompactionMetricsHasBeenSet() const { return m_compactionMetricsHasBeenSet; }
103 inline void SetCompactionMetrics(const CompactionMetrics& value) { m_compactionMetricsHasBeenSet = true; m_compactionMetrics = value; }
104 inline void SetCompactionMetrics(CompactionMetrics&& value) { m_compactionMetricsHasBeenSet = true; m_compactionMetrics = std::move(value); }
106 inline TableOptimizerRun& WithCompactionMetrics(CompactionMetrics&& value) { SetCompactionMetrics(std::move(value)); return *this;}
108
110
114 inline const RetentionMetrics& GetRetentionMetrics() const{ return m_retentionMetrics; }
115 inline bool RetentionMetricsHasBeenSet() const { return m_retentionMetricsHasBeenSet; }
116 inline void SetRetentionMetrics(const RetentionMetrics& value) { m_retentionMetricsHasBeenSet = true; m_retentionMetrics = value; }
117 inline void SetRetentionMetrics(RetentionMetrics&& value) { m_retentionMetricsHasBeenSet = true; m_retentionMetrics = std::move(value); }
118 inline TableOptimizerRun& WithRetentionMetrics(const RetentionMetrics& value) { SetRetentionMetrics(value); return *this;}
119 inline TableOptimizerRun& WithRetentionMetrics(RetentionMetrics&& value) { SetRetentionMetrics(std::move(value)); return *this;}
121
123
127 inline const OrphanFileDeletionMetrics& GetOrphanFileDeletionMetrics() const{ return m_orphanFileDeletionMetrics; }
128 inline bool OrphanFileDeletionMetricsHasBeenSet() const { return m_orphanFileDeletionMetricsHasBeenSet; }
129 inline void SetOrphanFileDeletionMetrics(const OrphanFileDeletionMetrics& value) { m_orphanFileDeletionMetricsHasBeenSet = true; m_orphanFileDeletionMetrics = value; }
130 inline void SetOrphanFileDeletionMetrics(OrphanFileDeletionMetrics&& value) { m_orphanFileDeletionMetricsHasBeenSet = true; m_orphanFileDeletionMetrics = std::move(value); }
134 private:
135
136 TableOptimizerEventType m_eventType;
137 bool m_eventTypeHasBeenSet = false;
138
139 Aws::Utils::DateTime m_startTimestamp;
140 bool m_startTimestampHasBeenSet = false;
141
142 Aws::Utils::DateTime m_endTimestamp;
143 bool m_endTimestampHasBeenSet = false;
144
145 Aws::String m_error;
146 bool m_errorHasBeenSet = false;
147
148 CompactionMetrics m_compactionMetrics;
149 bool m_compactionMetricsHasBeenSet = false;
150
151 RetentionMetrics m_retentionMetrics;
152 bool m_retentionMetricsHasBeenSet = false;
153
154 OrphanFileDeletionMetrics m_orphanFileDeletionMetrics;
155 bool m_orphanFileDeletionMetricsHasBeenSet = false;
156 };
157
158} // namespace Model
159} // namespace Glue
160} // namespace Aws
TableOptimizerRun & WithRetentionMetrics(RetentionMetrics &&value)
void SetError(Aws::String &&value)
const RetentionMetrics & GetRetentionMetrics() const
void SetStartTimestamp(const Aws::Utils::DateTime &value)
void SetError(const Aws::String &value)
TableOptimizerRun & WithError(const char *value)
void SetEndTimestamp(Aws::Utils::DateTime &&value)
void SetEventType(TableOptimizerEventType &&value)
AWS_GLUE_API TableOptimizerRun(Aws::Utils::Json::JsonView jsonValue)
void SetStartTimestamp(Aws::Utils::DateTime &&value)
TableOptimizerRun & WithCompactionMetrics(CompactionMetrics &&value)
const OrphanFileDeletionMetrics & GetOrphanFileDeletionMetrics() const
void SetRetentionMetrics(RetentionMetrics &&value)
void SetOrphanFileDeletionMetrics(OrphanFileDeletionMetrics &&value)
void SetCompactionMetrics(const CompactionMetrics &value)
void SetEndTimestamp(const Aws::Utils::DateTime &value)
TableOptimizerRun & WithOrphanFileDeletionMetrics(const OrphanFileDeletionMetrics &value)
TableOptimizerRun & WithOrphanFileDeletionMetrics(OrphanFileDeletionMetrics &&value)
TableOptimizerRun & WithEventType(const TableOptimizerEventType &value)
TableOptimizerRun & WithEventType(TableOptimizerEventType &&value)
const Aws::Utils::DateTime & GetStartTimestamp() const
TableOptimizerRun & WithRetentionMetrics(const RetentionMetrics &value)
TableOptimizerRun & WithStartTimestamp(const Aws::Utils::DateTime &value)
void SetCompactionMetrics(CompactionMetrics &&value)
void SetRetentionMetrics(const RetentionMetrics &value)
const TableOptimizerEventType & GetEventType() const
void SetEventType(const TableOptimizerEventType &value)
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
TableOptimizerRun & WithEndTimestamp(Aws::Utils::DateTime &&value)
TableOptimizerRun & WithError(Aws::String &&value)
const CompactionMetrics & GetCompactionMetrics() const
TableOptimizerRun & WithError(const Aws::String &value)
const Aws::Utils::DateTime & GetEndTimestamp() const
TableOptimizerRun & WithEndTimestamp(const Aws::Utils::DateTime &value)
AWS_GLUE_API TableOptimizerRun & operator=(Aws::Utils::Json::JsonView jsonValue)
TableOptimizerRun & WithStartTimestamp(Aws::Utils::DateTime &&value)
TableOptimizerRun & WithCompactionMetrics(const CompactionMetrics &value)
const Aws::String & GetError() const
void SetOrphanFileDeletionMetrics(const OrphanFileDeletionMetrics &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue