aws_sdk_glue/operation/create_data_quality_evaluation_config/builders.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2pub use crate::operation::create_data_quality_evaluation_config::_create_data_quality_evaluation_config_input::CreateDataQualityEvaluationConfigInputBuilder;
3
4pub use crate::operation::create_data_quality_evaluation_config::_create_data_quality_evaluation_config_output::CreateDataQualityEvaluationConfigOutputBuilder;
5
6impl crate::operation::create_data_quality_evaluation_config::builders::CreateDataQualityEvaluationConfigInputBuilder {
7 /// Sends a request with this input using the given client.
8 pub async fn send_with(
9 self,
10 client: &crate::Client,
11 ) -> ::std::result::Result<
12 crate::operation::create_data_quality_evaluation_config::CreateDataQualityEvaluationConfigOutput,
13 ::aws_smithy_runtime_api::client::result::SdkError<
14 crate::operation::create_data_quality_evaluation_config::CreateDataQualityEvaluationConfigError,
15 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
16 >,
17 > {
18 let mut fluent_builder = client.create_data_quality_evaluation_config();
19 fluent_builder.inner = self;
20 fluent_builder.send().await
21 }
22}
23/// Fluent builder constructing a request to `CreateDataQualityEvaluationConfig`.
24///
25/// <p>Creates a data quality evaluation configuration, which evaluates the data quality of a collection of tables in the Glue Data Catalog once, on a schedule, or when table metadata changes. A configuration applies to a catalog, a database, or a single table, and evaluates every table in scope, including tables added later, without per-table setup.</p>
26/// <p>When configurations at more than one level apply to the same table, the most specific configuration applies. Each table is evaluated at most once an hour, whichever triggers you choose.</p>
27#[derive(::std::clone::Clone, ::std::fmt::Debug)]
28pub struct CreateDataQualityEvaluationConfigFluentBuilder {
29 handle: ::std::sync::Arc<crate::client::Handle>,
30 inner: crate::operation::create_data_quality_evaluation_config::builders::CreateDataQualityEvaluationConfigInputBuilder,
31 config_override: ::std::option::Option<crate::config::Builder>,
32}
33impl
34 crate::client::customize::internal::CustomizableSend<
35 crate::operation::create_data_quality_evaluation_config::CreateDataQualityEvaluationConfigOutput,
36 crate::operation::create_data_quality_evaluation_config::CreateDataQualityEvaluationConfigError,
37 > for CreateDataQualityEvaluationConfigFluentBuilder
38{
39 fn send(
40 self,
41 config_override: crate::config::Builder,
42 ) -> crate::client::customize::internal::BoxFuture<
43 crate::client::customize::internal::SendResult<
44 crate::operation::create_data_quality_evaluation_config::CreateDataQualityEvaluationConfigOutput,
45 crate::operation::create_data_quality_evaluation_config::CreateDataQualityEvaluationConfigError,
46 >,
47 > {
48 ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
49 }
50}
51impl CreateDataQualityEvaluationConfigFluentBuilder {
52 /// Creates a new `CreateDataQualityEvaluationConfigFluentBuilder`.
53 pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
54 Self {
55 handle,
56 inner: ::std::default::Default::default(),
57 config_override: ::std::option::Option::None,
58 }
59 }
60 /// Access the CreateDataQualityEvaluationConfig as a reference.
61 pub fn as_input(&self) -> &crate::operation::create_data_quality_evaluation_config::builders::CreateDataQualityEvaluationConfigInputBuilder {
62 &self.inner
63 }
64 /// Sends the request and returns the response.
65 ///
66 /// If an error occurs, an `SdkError` will be returned with additional details that
67 /// can be matched against.
68 ///
69 /// By default, any retryable failures will be retried twice. Retry behavior
70 /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
71 /// set when configuring the client.
72 pub async fn send(
73 self,
74 ) -> ::std::result::Result<
75 crate::operation::create_data_quality_evaluation_config::CreateDataQualityEvaluationConfigOutput,
76 ::aws_smithy_runtime_api::client::result::SdkError<
77 crate::operation::create_data_quality_evaluation_config::CreateDataQualityEvaluationConfigError,
78 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
79 >,
80 > {
81 let input = self
82 .inner
83 .build()
84 .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
85 let runtime_plugins = crate::operation::create_data_quality_evaluation_config::CreateDataQualityEvaluationConfig::operation_runtime_plugins(
86 self.handle.runtime_plugins.clone(),
87 &self.handle.conf,
88 self.config_override,
89 );
90 crate::operation::create_data_quality_evaluation_config::CreateDataQualityEvaluationConfig::orchestrate(&runtime_plugins, input).await
91 }
92
93 /// Consumes this builder, creating a customizable operation that can be modified before being sent.
94 pub fn customize(
95 self,
96 ) -> crate::client::customize::CustomizableOperation<
97 crate::operation::create_data_quality_evaluation_config::CreateDataQualityEvaluationConfigOutput,
98 crate::operation::create_data_quality_evaluation_config::CreateDataQualityEvaluationConfigError,
99 Self,
100 > {
101 crate::client::customize::CustomizableOperation::new(self)
102 }
103 pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
104 self.set_config_override(::std::option::Option::Some(config_override.into()));
105 self
106 }
107
108 pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
109 self.config_override = config_override;
110 self
111 }
112 /// <p>A name for the data quality evaluation configuration. The name must be unique within your account.</p>
113 pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
114 self.inner = self.inner.name(input.into());
115 self
116 }
117 /// <p>A name for the data quality evaluation configuration. The name must be unique within your account.</p>
118 pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
119 self.inner = self.inner.set_name(input);
120 self
121 }
122 /// <p>A name for the data quality evaluation configuration. The name must be unique within your account.</p>
123 pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
124 self.inner.get_name()
125 }
126 /// <p>The Glue Data Catalog hierarchical level that the configuration applies to. Valid values are <code>CATALOG</code>, <code>DATABASE</code>, and <code>TABLE</code>.</p>
127 pub fn level(mut self, input: crate::types::DataQualityEvaluationConfigLevel) -> Self {
128 self.inner = self.inner.level(input);
129 self
130 }
131 /// <p>The Glue Data Catalog hierarchical level that the configuration applies to. Valid values are <code>CATALOG</code>, <code>DATABASE</code>, and <code>TABLE</code>.</p>
132 pub fn set_level(mut self, input: ::std::option::Option<crate::types::DataQualityEvaluationConfigLevel>) -> Self {
133 self.inner = self.inner.set_level(input);
134 self
135 }
136 /// <p>The Glue Data Catalog hierarchical level that the configuration applies to. Valid values are <code>CATALOG</code>, <code>DATABASE</code>, and <code>TABLE</code>.</p>
137 pub fn get_level(&self) -> &::std::option::Option<crate::types::DataQualityEvaluationConfigLevel> {
138 self.inner.get_level()
139 }
140 /// <p>The catalog, database, or table that the configuration applies to, as specified by <code>Level</code>.</p>
141 pub fn data_source(mut self, input: crate::types::DataQualityEvaluationConfigDataSource) -> Self {
142 self.inner = self.inner.data_source(input);
143 self
144 }
145 /// <p>The catalog, database, or table that the configuration applies to, as specified by <code>Level</code>.</p>
146 pub fn set_data_source(mut self, input: ::std::option::Option<crate::types::DataQualityEvaluationConfigDataSource>) -> Self {
147 self.inner = self.inner.set_data_source(input);
148 self
149 }
150 /// <p>The catalog, database, or table that the configuration applies to, as specified by <code>Level</code>.</p>
151 pub fn get_data_source(&self) -> &::std::option::Option<crate::types::DataQualityEvaluationConfigDataSource> {
152 self.inner.get_data_source()
153 }
154 /// <p>The name of a Data Quality Definition Language (DQDL) ruleset, containing analyzers, rules, or both, to evaluate tables with. You create the ruleset using the <code>CreateDataQualityRuleset</code> API. Specify either <code>RulesetName</code> or <code>ManagedRulesetName</code>, not both.</p>
155 pub fn ruleset_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
156 self.inner = self.inner.ruleset_name(input.into());
157 self
158 }
159 /// <p>The name of a Data Quality Definition Language (DQDL) ruleset, containing analyzers, rules, or both, to evaluate tables with. You create the ruleset using the <code>CreateDataQualityRuleset</code> API. Specify either <code>RulesetName</code> or <code>ManagedRulesetName</code>, not both.</p>
160 pub fn set_ruleset_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
161 self.inner = self.inner.set_ruleset_name(input);
162 self
163 }
164 /// <p>The name of a Data Quality Definition Language (DQDL) ruleset, containing analyzers, rules, or both, to evaluate tables with. You create the ruleset using the <code>CreateDataQualityRuleset</code> API. Specify either <code>RulesetName</code> or <code>ManagedRulesetName</code>, not both.</p>
165 pub fn get_ruleset_name(&self) -> &::std::option::Option<::std::string::String> {
166 self.inner.get_ruleset_name()
167 }
168 /// <p>A built-in ruleset that profiles each table, used when <code>RulesetName</code> is not set. The default is <code>SIMPLE</code>. Choose from the following built-in rulesets:</p>
169 /// <dl>
170 /// <dt>
171 /// SIMPLE
172 /// </dt>
173 /// <dd>
174 /// <p>Row count and column count, completeness, minimum, and maximum for every column, mean, sum, and standard deviation for numeric columns, and column length for string columns.</p>
175 /// </dd>
176 /// <dt>
177 /// ADVANCED
178 /// </dt>
179 /// <dd>
180 /// <p>Every statistic in <code>SIMPLE</code>, plus distribution, uniqueness, and distinct values count.</p>
181 /// </dd>
182 /// </dl>
183 pub fn managed_ruleset_name(mut self, input: crate::types::DataQualityEvaluationConfigManagedRuleset) -> Self {
184 self.inner = self.inner.managed_ruleset_name(input);
185 self
186 }
187 /// <p>A built-in ruleset that profiles each table, used when <code>RulesetName</code> is not set. The default is <code>SIMPLE</code>. Choose from the following built-in rulesets:</p>
188 /// <dl>
189 /// <dt>
190 /// SIMPLE
191 /// </dt>
192 /// <dd>
193 /// <p>Row count and column count, completeness, minimum, and maximum for every column, mean, sum, and standard deviation for numeric columns, and column length for string columns.</p>
194 /// </dd>
195 /// <dt>
196 /// ADVANCED
197 /// </dt>
198 /// <dd>
199 /// <p>Every statistic in <code>SIMPLE</code>, plus distribution, uniqueness, and distinct values count.</p>
200 /// </dd>
201 /// </dl>
202 pub fn set_managed_ruleset_name(mut self, input: ::std::option::Option<crate::types::DataQualityEvaluationConfigManagedRuleset>) -> Self {
203 self.inner = self.inner.set_managed_ruleset_name(input);
204 self
205 }
206 /// <p>A built-in ruleset that profiles each table, used when <code>RulesetName</code> is not set. The default is <code>SIMPLE</code>. Choose from the following built-in rulesets:</p>
207 /// <dl>
208 /// <dt>
209 /// SIMPLE
210 /// </dt>
211 /// <dd>
212 /// <p>Row count and column count, completeness, minimum, and maximum for every column, mean, sum, and standard deviation for numeric columns, and column length for string columns.</p>
213 /// </dd>
214 /// <dt>
215 /// ADVANCED
216 /// </dt>
217 /// <dd>
218 /// <p>Every statistic in <code>SIMPLE</code>, plus distribution, uniqueness, and distinct values count.</p>
219 /// </dd>
220 /// </dl>
221 pub fn get_managed_ruleset_name(&self) -> &::std::option::Option<crate::types::DataQualityEvaluationConfigManagedRuleset> {
222 self.inner.get_managed_ruleset_name()
223 }
224 ///
225 /// Appends an item to `Triggers`.
226 ///
227 /// To override the contents of this collection use [`set_triggers`](Self::set_triggers).
228 ///
229 /// <p>When the configuration evaluates tables. You can choose one or more triggers, and each table is evaluated at most once an hour. The default is <code>ONCE</code>. Choose from the following triggers:</p>
230 /// <dl>
231 /// <dt>
232 /// ONCE
233 /// </dt>
234 /// <dd>
235 /// <p>Evaluates each table one time, including when tables are added to a database or catalog.</p>
236 /// </dd>
237 /// <dt>
238 /// SCHEDULE
239 /// </dt>
240 /// <dd>
241 /// <p>Evaluates each table on the cron or rate expression in <code>ScheduleExpression</code>, between the optional <code>StartAt</code> and <code>EndAt</code> times.</p>
242 /// </dd>
243 /// <dt>
244 /// METADATA_CHANGE
245 /// </dt>
246 /// <dd>
247 /// <p>Evaluates a table whenever its Glue Data Catalog metadata changes, such as a schema change or an Apache Iceberg commit.</p>
248 /// </dd>
249 /// </dl>
250 pub fn triggers(mut self, input: crate::types::DataQualityEvaluationConfigTrigger) -> Self {
251 self.inner = self.inner.triggers(input);
252 self
253 }
254 /// <p>When the configuration evaluates tables. You can choose one or more triggers, and each table is evaluated at most once an hour. The default is <code>ONCE</code>. Choose from the following triggers:</p>
255 /// <dl>
256 /// <dt>
257 /// ONCE
258 /// </dt>
259 /// <dd>
260 /// <p>Evaluates each table one time, including when tables are added to a database or catalog.</p>
261 /// </dd>
262 /// <dt>
263 /// SCHEDULE
264 /// </dt>
265 /// <dd>
266 /// <p>Evaluates each table on the cron or rate expression in <code>ScheduleExpression</code>, between the optional <code>StartAt</code> and <code>EndAt</code> times.</p>
267 /// </dd>
268 /// <dt>
269 /// METADATA_CHANGE
270 /// </dt>
271 /// <dd>
272 /// <p>Evaluates a table whenever its Glue Data Catalog metadata changes, such as a schema change or an Apache Iceberg commit.</p>
273 /// </dd>
274 /// </dl>
275 pub fn set_triggers(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::DataQualityEvaluationConfigTrigger>>) -> Self {
276 self.inner = self.inner.set_triggers(input);
277 self
278 }
279 /// <p>When the configuration evaluates tables. You can choose one or more triggers, and each table is evaluated at most once an hour. The default is <code>ONCE</code>. Choose from the following triggers:</p>
280 /// <dl>
281 /// <dt>
282 /// ONCE
283 /// </dt>
284 /// <dd>
285 /// <p>Evaluates each table one time, including when tables are added to a database or catalog.</p>
286 /// </dd>
287 /// <dt>
288 /// SCHEDULE
289 /// </dt>
290 /// <dd>
291 /// <p>Evaluates each table on the cron or rate expression in <code>ScheduleExpression</code>, between the optional <code>StartAt</code> and <code>EndAt</code> times.</p>
292 /// </dd>
293 /// <dt>
294 /// METADATA_CHANGE
295 /// </dt>
296 /// <dd>
297 /// <p>Evaluates a table whenever its Glue Data Catalog metadata changes, such as a schema change or an Apache Iceberg commit.</p>
298 /// </dd>
299 /// </dl>
300 pub fn get_triggers(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::DataQualityEvaluationConfigTrigger>> {
301 self.inner.get_triggers()
302 }
303 /// <p>A cron or rate expression, in UTC, for the <code>SCHEDULE</code> trigger, for example <code>cron(0 6 * * ? *)</code>. The schedule can run at most once an hour.</p>
304 pub fn schedule_expression(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
305 self.inner = self.inner.schedule_expression(input.into());
306 self
307 }
308 /// <p>A cron or rate expression, in UTC, for the <code>SCHEDULE</code> trigger, for example <code>cron(0 6 * * ? *)</code>. The schedule can run at most once an hour.</p>
309 pub fn set_schedule_expression(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
310 self.inner = self.inner.set_schedule_expression(input);
311 self
312 }
313 /// <p>A cron or rate expression, in UTC, for the <code>SCHEDULE</code> trigger, for example <code>cron(0 6 * * ? *)</code>. The schedule can run at most once an hour.</p>
314 pub fn get_schedule_expression(&self) -> &::std::option::Option<::std::string::String> {
315 self.inner.get_schedule_expression()
316 }
317 /// <p>The time from which the schedule runs, inclusive.</p>
318 pub fn start_at(mut self, input: ::aws_smithy_types::DateTime) -> Self {
319 self.inner = self.inner.start_at(input);
320 self
321 }
322 /// <p>The time from which the schedule runs, inclusive.</p>
323 pub fn set_start_at(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
324 self.inner = self.inner.set_start_at(input);
325 self
326 }
327 /// <p>The time from which the schedule runs, inclusive.</p>
328 pub fn get_start_at(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
329 self.inner.get_start_at()
330 }
331 /// <p>The time at which the schedule stops running, exclusive.</p>
332 pub fn end_at(mut self, input: ::aws_smithy_types::DateTime) -> Self {
333 self.inner = self.inner.end_at(input);
334 self
335 }
336 /// <p>The time at which the schedule stops running, exclusive.</p>
337 pub fn set_end_at(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
338 self.inner = self.inner.set_end_at(input);
339 self
340 }
341 /// <p>The time at which the schedule stops running, exclusive.</p>
342 pub fn get_end_at(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
343 self.inner.get_end_at()
344 }
345 /// <p>The IAM role that evaluations assume. You can specify the role name or the role Amazon Resource Name (ARN).</p>
346 /// <p>The role must allow the <code>glue.amazonaws.com</code> service principal to assume it, and needs permissions to read the catalog (<code>glue:GetCatalog</code>, <code>glue:GetDatabase</code>, <code>glue:GetTable</code>, <code>glue:SearchTables</code>, and <code>glue:GetPartitions</code>), read and create rulesets (<code>glue:GetDataQualityRuleset</code> and <code>glue:CreateDataQualityRuleset</code>), start evaluations (<code>glue:StartDataQualityRulesetEvaluationRun</code>, <code>glue:PublishDataQuality</code>, and <code>iam:PassRole</code> on the role itself), read the tables' data in Amazon S3, and write logs to Amazon CloudWatch Logs. If a catalog-level or database-level configuration applies to an Amazon S3 Tables catalog, the role also needs <code>s3tables:ListTableBuckets</code> and <code>s3tables:ListTables</code>. If you use Lake Formation, the role needs the <code>DESCRIBE</code> permission on the tables.</p>
347 pub fn role(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
348 self.inner = self.inner.role(input.into());
349 self
350 }
351 /// <p>The IAM role that evaluations assume. You can specify the role name or the role Amazon Resource Name (ARN).</p>
352 /// <p>The role must allow the <code>glue.amazonaws.com</code> service principal to assume it, and needs permissions to read the catalog (<code>glue:GetCatalog</code>, <code>glue:GetDatabase</code>, <code>glue:GetTable</code>, <code>glue:SearchTables</code>, and <code>glue:GetPartitions</code>), read and create rulesets (<code>glue:GetDataQualityRuleset</code> and <code>glue:CreateDataQualityRuleset</code>), start evaluations (<code>glue:StartDataQualityRulesetEvaluationRun</code>, <code>glue:PublishDataQuality</code>, and <code>iam:PassRole</code> on the role itself), read the tables' data in Amazon S3, and write logs to Amazon CloudWatch Logs. If a catalog-level or database-level configuration applies to an Amazon S3 Tables catalog, the role also needs <code>s3tables:ListTableBuckets</code> and <code>s3tables:ListTables</code>. If you use Lake Formation, the role needs the <code>DESCRIBE</code> permission on the tables.</p>
353 pub fn set_role(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
354 self.inner = self.inner.set_role(input);
355 self
356 }
357 /// <p>The IAM role that evaluations assume. You can specify the role name or the role Amazon Resource Name (ARN).</p>
358 /// <p>The role must allow the <code>glue.amazonaws.com</code> service principal to assume it, and needs permissions to read the catalog (<code>glue:GetCatalog</code>, <code>glue:GetDatabase</code>, <code>glue:GetTable</code>, <code>glue:SearchTables</code>, and <code>glue:GetPartitions</code>), read and create rulesets (<code>glue:GetDataQualityRuleset</code> and <code>glue:CreateDataQualityRuleset</code>), start evaluations (<code>glue:StartDataQualityRulesetEvaluationRun</code>, <code>glue:PublishDataQuality</code>, and <code>iam:PassRole</code> on the role itself), read the tables' data in Amazon S3, and write logs to Amazon CloudWatch Logs. If a catalog-level or database-level configuration applies to an Amazon S3 Tables catalog, the role also needs <code>s3tables:ListTableBuckets</code> and <code>s3tables:ListTables</code>. If you use Lake Formation, the role needs the <code>DESCRIBE</code> permission on the tables.</p>
359 pub fn get_role(&self) -> &::std::option::Option<::std::string::String> {
360 self.inner.get_role()
361 }
362 /// <p>The number of <code>G.1X</code> workers to be used in the run. The default is 5.</p>
363 pub fn number_of_workers(mut self, input: i32) -> Self {
364 self.inner = self.inner.number_of_workers(input);
365 self
366 }
367 /// <p>The number of <code>G.1X</code> workers to be used in the run. The default is 5.</p>
368 pub fn set_number_of_workers(mut self, input: ::std::option::Option<i32>) -> Self {
369 self.inner = self.inner.set_number_of_workers(input);
370 self
371 }
372 /// <p>The number of <code>G.1X</code> workers to be used in the run. The default is 5.</p>
373 pub fn get_number_of_workers(&self) -> &::std::option::Option<i32> {
374 self.inner.get_number_of_workers()
375 }
376 /// <p>The timeout for a run in minutes. This is the maximum time that a run can consume resources before it is terminated and enters <code>TIMEOUT</code> status. The default is 2,880 minutes (48 hours).</p>
377 pub fn timeout(mut self, input: i32) -> Self {
378 self.inner = self.inner.timeout(input);
379 self
380 }
381 /// <p>The timeout for a run in minutes. This is the maximum time that a run can consume resources before it is terminated and enters <code>TIMEOUT</code> status. The default is 2,880 minutes (48 hours).</p>
382 pub fn set_timeout(mut self, input: ::std::option::Option<i32>) -> Self {
383 self.inner = self.inner.set_timeout(input);
384 self
385 }
386 /// <p>The timeout for a run in minutes. This is the maximum time that a run can consume resources before it is terminated and enters <code>TIMEOUT</code> status. The default is 2,880 minutes (48 hours).</p>
387 pub fn get_timeout(&self) -> &::std::option::Option<i32> {
388 self.inner.get_timeout()
389 }
390 /// <p>Additional run options you can specify for an evaluation run.</p>
391 pub fn additional_run_options(mut self, input: crate::types::DataQualityEvaluationConfigAdditionalRunOptions) -> Self {
392 self.inner = self.inner.additional_run_options(input);
393 self
394 }
395 /// <p>Additional run options you can specify for an evaluation run.</p>
396 pub fn set_additional_run_options(mut self, input: ::std::option::Option<crate::types::DataQualityEvaluationConfigAdditionalRunOptions>) -> Self {
397 self.inner = self.inner.set_additional_run_options(input);
398 self
399 }
400 /// <p>Additional run options you can specify for an evaluation run.</p>
401 pub fn get_additional_run_options(&self) -> &::std::option::Option<crate::types::DataQualityEvaluationConfigAdditionalRunOptions> {
402 self.inner.get_additional_run_options()
403 }
404 ///
405 /// Adds a key-value pair to `AdditionalDataSources`.
406 ///
407 /// To override the contents of this collection use [`set_additional_data_sources`](Self::set_additional_data_sources).
408 ///
409 /// <p>A map of reference strings to additional data sources you can specify for an evaluation run.</p>
410 pub fn additional_data_sources(mut self, k: impl ::std::convert::Into<::std::string::String>, v: crate::types::DataSource) -> Self {
411 self.inner = self.inner.additional_data_sources(k.into(), v);
412 self
413 }
414 /// <p>A map of reference strings to additional data sources you can specify for an evaluation run.</p>
415 pub fn set_additional_data_sources(
416 mut self,
417 input: ::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::DataSource>>,
418 ) -> Self {
419 self.inner = self.inner.set_additional_data_sources(input);
420 self
421 }
422 /// <p>A map of reference strings to additional data sources you can specify for an evaluation run.</p>
423 pub fn get_additional_data_sources(
424 &self,
425 ) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::DataSource>> {
426 self.inner.get_additional_data_sources()
427 }
428 ///
429 /// Adds a key-value pair to `Tags`.
430 ///
431 /// To override the contents of this collection use [`set_tags`](Self::set_tags).
432 ///
433 /// <p>A list of tags applied to the data quality evaluation configuration.</p>
434 pub fn tags(mut self, k: impl ::std::convert::Into<::std::string::String>, v: impl ::std::convert::Into<::std::string::String>) -> Self {
435 self.inner = self.inner.tags(k.into(), v.into());
436 self
437 }
438 /// <p>A list of tags applied to the data quality evaluation configuration.</p>
439 pub fn set_tags(mut self, input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>) -> Self {
440 self.inner = self.inner.set_tags(input);
441 self
442 }
443 /// <p>A list of tags applied to the data quality evaluation configuration.</p>
444 pub fn get_tags(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> {
445 self.inner.get_tags()
446 }
447 /// <p>A unique, case-sensitive identifier that you provide to ensure the operation completes no more than one time. If this token matches a previous request, the service ignores the request, but does not return an error.</p>
448 pub fn client_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
449 self.inner = self.inner.client_token(input.into());
450 self
451 }
452 /// <p>A unique, case-sensitive identifier that you provide to ensure the operation completes no more than one time. If this token matches a previous request, the service ignores the request, but does not return an error.</p>
453 pub fn set_client_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
454 self.inner = self.inner.set_client_token(input);
455 self
456 }
457 /// <p>A unique, case-sensitive identifier that you provide to ensure the operation completes no more than one time. If this token matches a previous request, the service ignores the request, but does not return an error.</p>
458 pub fn get_client_token(&self) -> &::std::option::Option<::std::string::String> {
459 self.inner.get_client_token()
460 }
461}