aws_sdk_quicksight/operation/update_data_set/
builders.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2pub use crate::operation::update_data_set::_update_data_set_output::UpdateDataSetOutputBuilder;
3
4pub use crate::operation::update_data_set::_update_data_set_input::UpdateDataSetInputBuilder;
5
6impl crate::operation::update_data_set::builders::UpdateDataSetInputBuilder {
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::update_data_set::UpdateDataSetOutput,
13        ::aws_smithy_runtime_api::client::result::SdkError<
14            crate::operation::update_data_set::UpdateDataSetError,
15            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
16        >,
17    > {
18        let mut fluent_builder = client.update_data_set();
19        fluent_builder.inner = self;
20        fluent_builder.send().await
21    }
22}
23/// Fluent builder constructing a request to `UpdateDataSet`.
24///
25/// <p>Updates a dataset. This operation doesn't support datasets that include uploaded files as a source. Partial updates are not supported by this operation.</p>
26#[derive(::std::clone::Clone, ::std::fmt::Debug)]
27pub struct UpdateDataSetFluentBuilder {
28    handle: ::std::sync::Arc<crate::client::Handle>,
29    inner: crate::operation::update_data_set::builders::UpdateDataSetInputBuilder,
30    config_override: ::std::option::Option<crate::config::Builder>,
31}
32impl
33    crate::client::customize::internal::CustomizableSend<
34        crate::operation::update_data_set::UpdateDataSetOutput,
35        crate::operation::update_data_set::UpdateDataSetError,
36    > for UpdateDataSetFluentBuilder
37{
38    fn send(
39        self,
40        config_override: crate::config::Builder,
41    ) -> crate::client::customize::internal::BoxFuture<
42        crate::client::customize::internal::SendResult<
43            crate::operation::update_data_set::UpdateDataSetOutput,
44            crate::operation::update_data_set::UpdateDataSetError,
45        >,
46    > {
47        ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
48    }
49}
50impl UpdateDataSetFluentBuilder {
51    /// Creates a new `UpdateDataSetFluentBuilder`.
52    pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
53        Self {
54            handle,
55            inner: ::std::default::Default::default(),
56            config_override: ::std::option::Option::None,
57        }
58    }
59    /// Access the UpdateDataSet as a reference.
60    pub fn as_input(&self) -> &crate::operation::update_data_set::builders::UpdateDataSetInputBuilder {
61        &self.inner
62    }
63    /// Sends the request and returns the response.
64    ///
65    /// If an error occurs, an `SdkError` will be returned with additional details that
66    /// can be matched against.
67    ///
68    /// By default, any retryable failures will be retried twice. Retry behavior
69    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
70    /// set when configuring the client.
71    pub async fn send(
72        self,
73    ) -> ::std::result::Result<
74        crate::operation::update_data_set::UpdateDataSetOutput,
75        ::aws_smithy_runtime_api::client::result::SdkError<
76            crate::operation::update_data_set::UpdateDataSetError,
77            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
78        >,
79    > {
80        let input = self
81            .inner
82            .build()
83            .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
84        let runtime_plugins = crate::operation::update_data_set::UpdateDataSet::operation_runtime_plugins(
85            self.handle.runtime_plugins.clone(),
86            &self.handle.conf,
87            self.config_override,
88        );
89        crate::operation::update_data_set::UpdateDataSet::orchestrate(&runtime_plugins, input).await
90    }
91
92    /// Consumes this builder, creating a customizable operation that can be modified before being sent.
93    pub fn customize(
94        self,
95    ) -> crate::client::customize::CustomizableOperation<
96        crate::operation::update_data_set::UpdateDataSetOutput,
97        crate::operation::update_data_set::UpdateDataSetError,
98        Self,
99    > {
100        crate::client::customize::CustomizableOperation::new(self)
101    }
102    pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
103        self.set_config_override(::std::option::Option::Some(config_override.into()));
104        self
105    }
106
107    pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
108        self.config_override = config_override;
109        self
110    }
111    /// <p>The Amazon Web Services account ID.</p>
112    pub fn aws_account_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
113        self.inner = self.inner.aws_account_id(input.into());
114        self
115    }
116    /// <p>The Amazon Web Services account ID.</p>
117    pub fn set_aws_account_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
118        self.inner = self.inner.set_aws_account_id(input);
119        self
120    }
121    /// <p>The Amazon Web Services account ID.</p>
122    pub fn get_aws_account_id(&self) -> &::std::option::Option<::std::string::String> {
123        self.inner.get_aws_account_id()
124    }
125    /// <p>The ID for the dataset that you want to update. This ID is unique per Amazon Web Services Region for each Amazon Web Services account.</p>
126    pub fn data_set_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
127        self.inner = self.inner.data_set_id(input.into());
128        self
129    }
130    /// <p>The ID for the dataset that you want to update. This ID is unique per Amazon Web Services Region for each Amazon Web Services account.</p>
131    pub fn set_data_set_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
132        self.inner = self.inner.set_data_set_id(input);
133        self
134    }
135    /// <p>The ID for the dataset that you want to update. This ID is unique per Amazon Web Services Region for each Amazon Web Services account.</p>
136    pub fn get_data_set_id(&self) -> &::std::option::Option<::std::string::String> {
137        self.inner.get_data_set_id()
138    }
139    /// <p>The display name for the dataset.</p>
140    pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
141        self.inner = self.inner.name(input.into());
142        self
143    }
144    /// <p>The display name for the dataset.</p>
145    pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
146        self.inner = self.inner.set_name(input);
147        self
148    }
149    /// <p>The display name for the dataset.</p>
150    pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
151        self.inner.get_name()
152    }
153    ///
154    /// Adds a key-value pair to `PhysicalTableMap`.
155    ///
156    /// To override the contents of this collection use [`set_physical_table_map`](Self::set_physical_table_map).
157    ///
158    /// <p>Declares the physical tables that are available in the underlying data sources.</p>
159    pub fn physical_table_map(mut self, k: impl ::std::convert::Into<::std::string::String>, v: crate::types::PhysicalTable) -> Self {
160        self.inner = self.inner.physical_table_map(k.into(), v);
161        self
162    }
163    /// <p>Declares the physical tables that are available in the underlying data sources.</p>
164    pub fn set_physical_table_map(
165        mut self,
166        input: ::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::PhysicalTable>>,
167    ) -> Self {
168        self.inner = self.inner.set_physical_table_map(input);
169        self
170    }
171    /// <p>Declares the physical tables that are available in the underlying data sources.</p>
172    pub fn get_physical_table_map(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::PhysicalTable>> {
173        self.inner.get_physical_table_map()
174    }
175    ///
176    /// Adds a key-value pair to `LogicalTableMap`.
177    ///
178    /// To override the contents of this collection use [`set_logical_table_map`](Self::set_logical_table_map).
179    ///
180    /// <p>Configures the combination and transformation of the data from the physical tables.</p>
181    pub fn logical_table_map(mut self, k: impl ::std::convert::Into<::std::string::String>, v: crate::types::LogicalTable) -> Self {
182        self.inner = self.inner.logical_table_map(k.into(), v);
183        self
184    }
185    /// <p>Configures the combination and transformation of the data from the physical tables.</p>
186    pub fn set_logical_table_map(
187        mut self,
188        input: ::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::LogicalTable>>,
189    ) -> Self {
190        self.inner = self.inner.set_logical_table_map(input);
191        self
192    }
193    /// <p>Configures the combination and transformation of the data from the physical tables.</p>
194    pub fn get_logical_table_map(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::LogicalTable>> {
195        self.inner.get_logical_table_map()
196    }
197    /// <p>Indicates whether you want to import the data into SPICE.</p>
198    pub fn import_mode(mut self, input: crate::types::DataSetImportMode) -> Self {
199        self.inner = self.inner.import_mode(input);
200        self
201    }
202    /// <p>Indicates whether you want to import the data into SPICE.</p>
203    pub fn set_import_mode(mut self, input: ::std::option::Option<crate::types::DataSetImportMode>) -> Self {
204        self.inner = self.inner.set_import_mode(input);
205        self
206    }
207    /// <p>Indicates whether you want to import the data into SPICE.</p>
208    pub fn get_import_mode(&self) -> &::std::option::Option<crate::types::DataSetImportMode> {
209        self.inner.get_import_mode()
210    }
211    ///
212    /// Appends an item to `ColumnGroups`.
213    ///
214    /// To override the contents of this collection use [`set_column_groups`](Self::set_column_groups).
215    ///
216    /// <p>Groupings of columns that work together in certain Amazon QuickSight features. Currently, only geospatial hierarchy is supported.</p>
217    pub fn column_groups(mut self, input: crate::types::ColumnGroup) -> Self {
218        self.inner = self.inner.column_groups(input);
219        self
220    }
221    /// <p>Groupings of columns that work together in certain Amazon QuickSight features. Currently, only geospatial hierarchy is supported.</p>
222    pub fn set_column_groups(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::ColumnGroup>>) -> Self {
223        self.inner = self.inner.set_column_groups(input);
224        self
225    }
226    /// <p>Groupings of columns that work together in certain Amazon QuickSight features. Currently, only geospatial hierarchy is supported.</p>
227    pub fn get_column_groups(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::ColumnGroup>> {
228        self.inner.get_column_groups()
229    }
230    ///
231    /// Adds a key-value pair to `FieldFolders`.
232    ///
233    /// To override the contents of this collection use [`set_field_folders`](Self::set_field_folders).
234    ///
235    /// <p>The folder that contains fields and nested subfolders for your dataset.</p>
236    pub fn field_folders(mut self, k: impl ::std::convert::Into<::std::string::String>, v: crate::types::FieldFolder) -> Self {
237        self.inner = self.inner.field_folders(k.into(), v);
238        self
239    }
240    /// <p>The folder that contains fields and nested subfolders for your dataset.</p>
241    pub fn set_field_folders(
242        mut self,
243        input: ::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::FieldFolder>>,
244    ) -> Self {
245        self.inner = self.inner.set_field_folders(input);
246        self
247    }
248    /// <p>The folder that contains fields and nested subfolders for your dataset.</p>
249    pub fn get_field_folders(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::FieldFolder>> {
250        self.inner.get_field_folders()
251    }
252    /// <p>The row-level security configuration for the data you want to create.</p>
253    pub fn row_level_permission_data_set(mut self, input: crate::types::RowLevelPermissionDataSet) -> Self {
254        self.inner = self.inner.row_level_permission_data_set(input);
255        self
256    }
257    /// <p>The row-level security configuration for the data you want to create.</p>
258    pub fn set_row_level_permission_data_set(mut self, input: ::std::option::Option<crate::types::RowLevelPermissionDataSet>) -> Self {
259        self.inner = self.inner.set_row_level_permission_data_set(input);
260        self
261    }
262    /// <p>The row-level security configuration for the data you want to create.</p>
263    pub fn get_row_level_permission_data_set(&self) -> &::std::option::Option<crate::types::RowLevelPermissionDataSet> {
264        self.inner.get_row_level_permission_data_set()
265    }
266    /// <p>The configuration of tags on a dataset to set row-level security. Row-level security tags are currently supported for anonymous embedding only.</p>
267    pub fn row_level_permission_tag_configuration(mut self, input: crate::types::RowLevelPermissionTagConfiguration) -> Self {
268        self.inner = self.inner.row_level_permission_tag_configuration(input);
269        self
270    }
271    /// <p>The configuration of tags on a dataset to set row-level security. Row-level security tags are currently supported for anonymous embedding only.</p>
272    pub fn set_row_level_permission_tag_configuration(
273        mut self,
274        input: ::std::option::Option<crate::types::RowLevelPermissionTagConfiguration>,
275    ) -> Self {
276        self.inner = self.inner.set_row_level_permission_tag_configuration(input);
277        self
278    }
279    /// <p>The configuration of tags on a dataset to set row-level security. Row-level security tags are currently supported for anonymous embedding only.</p>
280    pub fn get_row_level_permission_tag_configuration(&self) -> &::std::option::Option<crate::types::RowLevelPermissionTagConfiguration> {
281        self.inner.get_row_level_permission_tag_configuration()
282    }
283    ///
284    /// Appends an item to `ColumnLevelPermissionRules`.
285    ///
286    /// To override the contents of this collection use [`set_column_level_permission_rules`](Self::set_column_level_permission_rules).
287    ///
288    /// <p>A set of one or more definitions of a <code> <a href="https://docs.aws.amazon.com/quicksight/latest/APIReference/API_ColumnLevelPermissionRule.html">ColumnLevelPermissionRule</a> </code>.</p>
289    pub fn column_level_permission_rules(mut self, input: crate::types::ColumnLevelPermissionRule) -> Self {
290        self.inner = self.inner.column_level_permission_rules(input);
291        self
292    }
293    /// <p>A set of one or more definitions of a <code> <a href="https://docs.aws.amazon.com/quicksight/latest/APIReference/API_ColumnLevelPermissionRule.html">ColumnLevelPermissionRule</a> </code>.</p>
294    pub fn set_column_level_permission_rules(
295        mut self,
296        input: ::std::option::Option<::std::vec::Vec<crate::types::ColumnLevelPermissionRule>>,
297    ) -> Self {
298        self.inner = self.inner.set_column_level_permission_rules(input);
299        self
300    }
301    /// <p>A set of one or more definitions of a <code> <a href="https://docs.aws.amazon.com/quicksight/latest/APIReference/API_ColumnLevelPermissionRule.html">ColumnLevelPermissionRule</a> </code>.</p>
302    pub fn get_column_level_permission_rules(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::ColumnLevelPermissionRule>> {
303        self.inner.get_column_level_permission_rules()
304    }
305    /// <p>The usage configuration to apply to child datasets that reference this dataset as a source.</p>
306    pub fn data_set_usage_configuration(mut self, input: crate::types::DataSetUsageConfiguration) -> Self {
307        self.inner = self.inner.data_set_usage_configuration(input);
308        self
309    }
310    /// <p>The usage configuration to apply to child datasets that reference this dataset as a source.</p>
311    pub fn set_data_set_usage_configuration(mut self, input: ::std::option::Option<crate::types::DataSetUsageConfiguration>) -> Self {
312        self.inner = self.inner.set_data_set_usage_configuration(input);
313        self
314    }
315    /// <p>The usage configuration to apply to child datasets that reference this dataset as a source.</p>
316    pub fn get_data_set_usage_configuration(&self) -> &::std::option::Option<crate::types::DataSetUsageConfiguration> {
317        self.inner.get_data_set_usage_configuration()
318    }
319    ///
320    /// Appends an item to `DatasetParameters`.
321    ///
322    /// To override the contents of this collection use [`set_dataset_parameters`](Self::set_dataset_parameters).
323    ///
324    /// <p>The parameter declarations of the dataset.</p>
325    pub fn dataset_parameters(mut self, input: crate::types::DatasetParameter) -> Self {
326        self.inner = self.inner.dataset_parameters(input);
327        self
328    }
329    /// <p>The parameter declarations of the dataset.</p>
330    pub fn set_dataset_parameters(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::DatasetParameter>>) -> Self {
331        self.inner = self.inner.set_dataset_parameters(input);
332        self
333    }
334    /// <p>The parameter declarations of the dataset.</p>
335    pub fn get_dataset_parameters(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::DatasetParameter>> {
336        self.inner.get_dataset_parameters()
337    }
338    /// <p>The configuration for the performance optimization of the dataset that contains a <code>UniqueKey</code> configuration.</p>
339    pub fn performance_configuration(mut self, input: crate::types::PerformanceConfiguration) -> Self {
340        self.inner = self.inner.performance_configuration(input);
341        self
342    }
343    /// <p>The configuration for the performance optimization of the dataset that contains a <code>UniqueKey</code> configuration.</p>
344    pub fn set_performance_configuration(mut self, input: ::std::option::Option<crate::types::PerformanceConfiguration>) -> Self {
345        self.inner = self.inner.set_performance_configuration(input);
346        self
347    }
348    /// <p>The configuration for the performance optimization of the dataset that contains a <code>UniqueKey</code> configuration.</p>
349    pub fn get_performance_configuration(&self) -> &::std::option::Option<crate::types::PerformanceConfiguration> {
350        self.inner.get_performance_configuration()
351    }
352}