AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ColumnStatisticsTaskSettings.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/glue/Glue_EXPORTS.h>
10#include <aws/glue/model/ExecutionAttempt.h>
11#include <aws/glue/model/Schedule.h>
12#include <aws/glue/model/ScheduleType.h>
13#include <aws/glue/model/SettingSource.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Glue {
25namespace Model {
26
33 public:
34 AWS_GLUE_API ColumnStatisticsTaskSettings() = default;
38
40
43 inline const Aws::String& GetDatabaseName() const { return m_databaseName; }
44 inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
45 template <typename DatabaseNameT = Aws::String>
46 void SetDatabaseName(DatabaseNameT&& value) {
47 m_databaseNameHasBeenSet = true;
48 m_databaseName = std::forward<DatabaseNameT>(value);
49 }
50 template <typename DatabaseNameT = Aws::String>
52 SetDatabaseName(std::forward<DatabaseNameT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetTableName() const { return m_tableName; }
62 inline bool TableNameHasBeenSet() const { return m_tableNameHasBeenSet; }
63 template <typename TableNameT = Aws::String>
64 void SetTableName(TableNameT&& value) {
65 m_tableNameHasBeenSet = true;
66 m_tableName = std::forward<TableNameT>(value);
67 }
68 template <typename TableNameT = Aws::String>
70 SetTableName(std::forward<TableNameT>(value));
71 return *this;
72 }
74
76
79 inline const Schedule& GetSchedule() const { return m_schedule; }
80 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
81 template <typename ScheduleT = Schedule>
82 void SetSchedule(ScheduleT&& value) {
83 m_scheduleHasBeenSet = true;
84 m_schedule = std::forward<ScheduleT>(value);
85 }
86 template <typename ScheduleT = Schedule>
88 SetSchedule(std::forward<ScheduleT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::Vector<Aws::String>& GetColumnNameList() const { return m_columnNameList; }
98 inline bool ColumnNameListHasBeenSet() const { return m_columnNameListHasBeenSet; }
99 template <typename ColumnNameListT = Aws::Vector<Aws::String>>
100 void SetColumnNameList(ColumnNameListT&& value) {
101 m_columnNameListHasBeenSet = true;
102 m_columnNameList = std::forward<ColumnNameListT>(value);
103 }
104 template <typename ColumnNameListT = Aws::Vector<Aws::String>>
106 SetColumnNameList(std::forward<ColumnNameListT>(value));
107 return *this;
108 }
109 template <typename ColumnNameListT = Aws::String>
111 m_columnNameListHasBeenSet = true;
112 m_columnNameList.emplace_back(std::forward<ColumnNameListT>(value));
113 return *this;
114 }
116
118
121 inline const Aws::String& GetCatalogID() const { return m_catalogID; }
122 inline bool CatalogIDHasBeenSet() const { return m_catalogIDHasBeenSet; }
123 template <typename CatalogIDT = Aws::String>
124 void SetCatalogID(CatalogIDT&& value) {
125 m_catalogIDHasBeenSet = true;
126 m_catalogID = std::forward<CatalogIDT>(value);
127 }
128 template <typename CatalogIDT = Aws::String>
130 SetCatalogID(std::forward<CatalogIDT>(value));
131 return *this;
132 }
134
136
139 inline const Aws::String& GetRole() const { return m_role; }
140 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
141 template <typename RoleT = Aws::String>
142 void SetRole(RoleT&& value) {
143 m_roleHasBeenSet = true;
144 m_role = std::forward<RoleT>(value);
145 }
146 template <typename RoleT = Aws::String>
148 SetRole(std::forward<RoleT>(value));
149 return *this;
150 }
152
154
157 inline double GetSampleSize() const { return m_sampleSize; }
158 inline bool SampleSizeHasBeenSet() const { return m_sampleSizeHasBeenSet; }
159 inline void SetSampleSize(double value) {
160 m_sampleSizeHasBeenSet = true;
161 m_sampleSize = value;
162 }
164 SetSampleSize(value);
165 return *this;
166 }
168
170
174 inline const Aws::String& GetSecurityConfiguration() const { return m_securityConfiguration; }
175 inline bool SecurityConfigurationHasBeenSet() const { return m_securityConfigurationHasBeenSet; }
176 template <typename SecurityConfigurationT = Aws::String>
177 void SetSecurityConfiguration(SecurityConfigurationT&& value) {
178 m_securityConfigurationHasBeenSet = true;
179 m_securityConfiguration = std::forward<SecurityConfigurationT>(value);
180 }
181 template <typename SecurityConfigurationT = Aws::String>
183 SetSecurityConfiguration(std::forward<SecurityConfigurationT>(value));
184 return *this;
185 }
187
189
193 inline ScheduleType GetScheduleType() const { return m_scheduleType; }
194 inline bool ScheduleTypeHasBeenSet() const { return m_scheduleTypeHasBeenSet; }
195 inline void SetScheduleType(ScheduleType value) {
196 m_scheduleTypeHasBeenSet = true;
197 m_scheduleType = value;
198 }
200 SetScheduleType(value);
201 return *this;
202 }
204
206
210 inline SettingSource GetSettingSource() const { return m_settingSource; }
211 inline bool SettingSourceHasBeenSet() const { return m_settingSourceHasBeenSet; }
212 inline void SetSettingSource(SettingSource value) {
213 m_settingSourceHasBeenSet = true;
214 m_settingSource = value;
215 }
217 SetSettingSource(value);
218 return *this;
219 }
221
223
227 inline const ExecutionAttempt& GetLastExecutionAttempt() const { return m_lastExecutionAttempt; }
228 inline bool LastExecutionAttemptHasBeenSet() const { return m_lastExecutionAttemptHasBeenSet; }
229 template <typename LastExecutionAttemptT = ExecutionAttempt>
230 void SetLastExecutionAttempt(LastExecutionAttemptT&& value) {
231 m_lastExecutionAttemptHasBeenSet = true;
232 m_lastExecutionAttempt = std::forward<LastExecutionAttemptT>(value);
233 }
234 template <typename LastExecutionAttemptT = ExecutionAttempt>
236 SetLastExecutionAttempt(std::forward<LastExecutionAttemptT>(value));
237 return *this;
238 }
240 private:
241 Aws::String m_databaseName;
242
243 Aws::String m_tableName;
244
245 Schedule m_schedule;
246
247 Aws::Vector<Aws::String> m_columnNameList;
248
249 Aws::String m_catalogID;
250
251 Aws::String m_role;
252
253 double m_sampleSize{0.0};
254
255 Aws::String m_securityConfiguration;
256
257 ScheduleType m_scheduleType{ScheduleType::NOT_SET};
258
259 SettingSource m_settingSource{SettingSource::NOT_SET};
260
261 ExecutionAttempt m_lastExecutionAttempt;
262 bool m_databaseNameHasBeenSet = false;
263 bool m_tableNameHasBeenSet = false;
264 bool m_scheduleHasBeenSet = false;
265 bool m_columnNameListHasBeenSet = false;
266 bool m_catalogIDHasBeenSet = false;
267 bool m_roleHasBeenSet = false;
268 bool m_sampleSizeHasBeenSet = false;
269 bool m_securityConfigurationHasBeenSet = false;
270 bool m_scheduleTypeHasBeenSet = false;
271 bool m_settingSourceHasBeenSet = false;
272 bool m_lastExecutionAttemptHasBeenSet = false;
273};
274
275} // namespace Model
276} // namespace Glue
277} // namespace Aws
ColumnStatisticsTaskSettings & WithSettingSource(SettingSource value)
ColumnStatisticsTaskSettings & WithSampleSize(double value)
ColumnStatisticsTaskSettings & WithTableName(TableNameT &&value)
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
ColumnStatisticsTaskSettings & WithColumnNameList(ColumnNameListT &&value)
void SetLastExecutionAttempt(LastExecutionAttemptT &&value)
const Aws::Vector< Aws::String > & GetColumnNameList() const
AWS_GLUE_API ColumnStatisticsTaskSettings(Aws::Utils::Json::JsonView jsonValue)
ColumnStatisticsTaskSettings & WithDatabaseName(DatabaseNameT &&value)
ColumnStatisticsTaskSettings & WithSchedule(ScheduleT &&value)
AWS_GLUE_API ColumnStatisticsTaskSettings()=default
ColumnStatisticsTaskSettings & AddColumnNameList(ColumnNameListT &&value)
void SetSecurityConfiguration(SecurityConfigurationT &&value)
ColumnStatisticsTaskSettings & WithSecurityConfiguration(SecurityConfigurationT &&value)
ColumnStatisticsTaskSettings & WithCatalogID(CatalogIDT &&value)
ColumnStatisticsTaskSettings & WithRole(RoleT &&value)
ColumnStatisticsTaskSettings & WithLastExecutionAttempt(LastExecutionAttemptT &&value)
AWS_GLUE_API ColumnStatisticsTaskSettings & operator=(Aws::Utils::Json::JsonView jsonValue)
ColumnStatisticsTaskSettings & WithScheduleType(ScheduleType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue