AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ColumnStatisticsTaskSettings.h
1
6#pragma once
7#include <aws/glue/Glue_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/glue/model/Schedule.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/glue/model/ScheduleType.h>
12#include <aws/glue/model/SettingSource.h>
13#include <aws/glue/model/ExecutionAttempt.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 ColumnStatisticsTaskSettings() = default;
43
44
46
49 inline const Aws::String& GetDatabaseName() const { return m_databaseName; }
50 inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
51 template<typename DatabaseNameT = Aws::String>
52 void SetDatabaseName(DatabaseNameT&& value) { m_databaseNameHasBeenSet = true; m_databaseName = std::forward<DatabaseNameT>(value); }
53 template<typename DatabaseNameT = Aws::String>
54 ColumnStatisticsTaskSettings& WithDatabaseName(DatabaseNameT&& value) { SetDatabaseName(std::forward<DatabaseNameT>(value)); return *this;}
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) { m_tableNameHasBeenSet = true; m_tableName = std::forward<TableNameT>(value); }
65 template<typename TableNameT = Aws::String>
66 ColumnStatisticsTaskSettings& WithTableName(TableNameT&& value) { SetTableName(std::forward<TableNameT>(value)); return *this;}
68
70
73 inline const Schedule& GetSchedule() const { return m_schedule; }
74 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
75 template<typename ScheduleT = Schedule>
76 void SetSchedule(ScheduleT&& value) { m_scheduleHasBeenSet = true; m_schedule = std::forward<ScheduleT>(value); }
77 template<typename ScheduleT = Schedule>
78 ColumnStatisticsTaskSettings& WithSchedule(ScheduleT&& value) { SetSchedule(std::forward<ScheduleT>(value)); return *this;}
80
82
85 inline const Aws::Vector<Aws::String>& GetColumnNameList() const { return m_columnNameList; }
86 inline bool ColumnNameListHasBeenSet() const { return m_columnNameListHasBeenSet; }
87 template<typename ColumnNameListT = Aws::Vector<Aws::String>>
88 void SetColumnNameList(ColumnNameListT&& value) { m_columnNameListHasBeenSet = true; m_columnNameList = std::forward<ColumnNameListT>(value); }
89 template<typename ColumnNameListT = Aws::Vector<Aws::String>>
90 ColumnStatisticsTaskSettings& WithColumnNameList(ColumnNameListT&& value) { SetColumnNameList(std::forward<ColumnNameListT>(value)); return *this;}
91 template<typename ColumnNameListT = Aws::String>
92 ColumnStatisticsTaskSettings& AddColumnNameList(ColumnNameListT&& value) { m_columnNameListHasBeenSet = true; m_columnNameList.emplace_back(std::forward<ColumnNameListT>(value)); return *this; }
94
96
99 inline const Aws::String& GetCatalogID() const { return m_catalogID; }
100 inline bool CatalogIDHasBeenSet() const { return m_catalogIDHasBeenSet; }
101 template<typename CatalogIDT = Aws::String>
102 void SetCatalogID(CatalogIDT&& value) { m_catalogIDHasBeenSet = true; m_catalogID = std::forward<CatalogIDT>(value); }
103 template<typename CatalogIDT = Aws::String>
104 ColumnStatisticsTaskSettings& WithCatalogID(CatalogIDT&& value) { SetCatalogID(std::forward<CatalogIDT>(value)); return *this;}
106
108
111 inline const Aws::String& GetRole() const { return m_role; }
112 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
113 template<typename RoleT = Aws::String>
114 void SetRole(RoleT&& value) { m_roleHasBeenSet = true; m_role = std::forward<RoleT>(value); }
115 template<typename RoleT = Aws::String>
116 ColumnStatisticsTaskSettings& WithRole(RoleT&& value) { SetRole(std::forward<RoleT>(value)); return *this;}
118
120
123 inline double GetSampleSize() const { return m_sampleSize; }
124 inline bool SampleSizeHasBeenSet() const { return m_sampleSizeHasBeenSet; }
125 inline void SetSampleSize(double value) { m_sampleSizeHasBeenSet = true; m_sampleSize = value; }
126 inline ColumnStatisticsTaskSettings& WithSampleSize(double value) { SetSampleSize(value); return *this;}
128
130
134 inline const Aws::String& GetSecurityConfiguration() const { return m_securityConfiguration; }
135 inline bool SecurityConfigurationHasBeenSet() const { return m_securityConfigurationHasBeenSet; }
136 template<typename SecurityConfigurationT = Aws::String>
137 void SetSecurityConfiguration(SecurityConfigurationT&& value) { m_securityConfigurationHasBeenSet = true; m_securityConfiguration = std::forward<SecurityConfigurationT>(value); }
138 template<typename SecurityConfigurationT = Aws::String>
139 ColumnStatisticsTaskSettings& WithSecurityConfiguration(SecurityConfigurationT&& value) { SetSecurityConfiguration(std::forward<SecurityConfigurationT>(value)); return *this;}
141
143
147 inline ScheduleType GetScheduleType() const { return m_scheduleType; }
148 inline bool ScheduleTypeHasBeenSet() const { return m_scheduleTypeHasBeenSet; }
149 inline void SetScheduleType(ScheduleType value) { m_scheduleTypeHasBeenSet = true; m_scheduleType = value; }
152
154
158 inline SettingSource GetSettingSource() const { return m_settingSource; }
159 inline bool SettingSourceHasBeenSet() const { return m_settingSourceHasBeenSet; }
160 inline void SetSettingSource(SettingSource value) { m_settingSourceHasBeenSet = true; m_settingSource = value; }
163
165
169 inline const ExecutionAttempt& GetLastExecutionAttempt() const { return m_lastExecutionAttempt; }
170 inline bool LastExecutionAttemptHasBeenSet() const { return m_lastExecutionAttemptHasBeenSet; }
171 template<typename LastExecutionAttemptT = ExecutionAttempt>
172 void SetLastExecutionAttempt(LastExecutionAttemptT&& value) { m_lastExecutionAttemptHasBeenSet = true; m_lastExecutionAttempt = std::forward<LastExecutionAttemptT>(value); }
173 template<typename LastExecutionAttemptT = ExecutionAttempt>
174 ColumnStatisticsTaskSettings& WithLastExecutionAttempt(LastExecutionAttemptT&& value) { SetLastExecutionAttempt(std::forward<LastExecutionAttemptT>(value)); return *this;}
176 private:
177
178 Aws::String m_databaseName;
179 bool m_databaseNameHasBeenSet = false;
180
181 Aws::String m_tableName;
182 bool m_tableNameHasBeenSet = false;
183
184 Schedule m_schedule;
185 bool m_scheduleHasBeenSet = false;
186
187 Aws::Vector<Aws::String> m_columnNameList;
188 bool m_columnNameListHasBeenSet = false;
189
190 Aws::String m_catalogID;
191 bool m_catalogIDHasBeenSet = false;
192
193 Aws::String m_role;
194 bool m_roleHasBeenSet = false;
195
196 double m_sampleSize{0.0};
197 bool m_sampleSizeHasBeenSet = false;
198
199 Aws::String m_securityConfiguration;
200 bool m_securityConfigurationHasBeenSet = false;
201
202 ScheduleType m_scheduleType{ScheduleType::NOT_SET};
203 bool m_scheduleTypeHasBeenSet = false;
204
205 SettingSource m_settingSource{SettingSource::NOT_SET};
206 bool m_settingSourceHasBeenSet = false;
207
208 ExecutionAttempt m_lastExecutionAttempt;
209 bool m_lastExecutionAttemptHasBeenSet = false;
210 };
211
212} // namespace Model
213} // namespace Glue
214} // 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