aws_sdk_quicksight/types/
_asset_bundle_import_job_override_tags.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2
3/// <p>A structure that contains the override tag configuration that modify the tags that are assigned to specified resources before the resource is imported.</p>
4#[non_exhaustive]
5#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
6pub struct AssetBundleImportJobOverrideTags {
7    /// <p>A list of tag overrides for any <code>VPCConnection</code> resources that are present in the asset bundle that is imported.</p>
8    pub vpc_connections: ::std::option::Option<::std::vec::Vec<crate::types::AssetBundleImportJobVpcConnectionOverrideTags>>,
9    /// <p>A list of tag overrides for any <code>DataSource</code> resources that are present in the asset bundle that is imported.</p>
10    pub data_sources: ::std::option::Option<::std::vec::Vec<crate::types::AssetBundleImportJobDataSourceOverrideTags>>,
11    /// <p>A list of tag overrides for any <code>DataSet</code> resources that are present in the asset bundle that is imported.</p>
12    pub data_sets: ::std::option::Option<::std::vec::Vec<crate::types::AssetBundleImportJobDataSetOverrideTags>>,
13    /// <p>A list of tag overrides for any <code>Theme</code> resources that are present in the asset bundle that is imported.</p>
14    pub themes: ::std::option::Option<::std::vec::Vec<crate::types::AssetBundleImportJobThemeOverrideTags>>,
15    /// <p>A list of tag overrides for any <code>Analysis</code> resources that are present in the asset bundle that is imported.</p>
16    pub analyses: ::std::option::Option<::std::vec::Vec<crate::types::AssetBundleImportJobAnalysisOverrideTags>>,
17    /// <p>A list of tag overrides for any <code>Dashboard</code> resources that are present in the asset bundle that is imported.</p>
18    pub dashboards: ::std::option::Option<::std::vec::Vec<crate::types::AssetBundleImportJobDashboardOverrideTags>>,
19    /// <p>A list of tag overrides for any <code>Folder</code> resources that are present in the asset bundle that is imported.</p>
20    pub folders: ::std::option::Option<::std::vec::Vec<crate::types::AssetBundleImportJobFolderOverrideTags>>,
21}
22impl AssetBundleImportJobOverrideTags {
23    /// <p>A list of tag overrides for any <code>VPCConnection</code> resources that are present in the asset bundle that is imported.</p>
24    ///
25    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.vpc_connections.is_none()`.
26    pub fn vpc_connections(&self) -> &[crate::types::AssetBundleImportJobVpcConnectionOverrideTags] {
27        self.vpc_connections.as_deref().unwrap_or_default()
28    }
29    /// <p>A list of tag overrides for any <code>DataSource</code> resources that are present in the asset bundle that is imported.</p>
30    ///
31    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.data_sources.is_none()`.
32    pub fn data_sources(&self) -> &[crate::types::AssetBundleImportJobDataSourceOverrideTags] {
33        self.data_sources.as_deref().unwrap_or_default()
34    }
35    /// <p>A list of tag overrides for any <code>DataSet</code> resources that are present in the asset bundle that is imported.</p>
36    ///
37    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.data_sets.is_none()`.
38    pub fn data_sets(&self) -> &[crate::types::AssetBundleImportJobDataSetOverrideTags] {
39        self.data_sets.as_deref().unwrap_or_default()
40    }
41    /// <p>A list of tag overrides for any <code>Theme</code> resources that are present in the asset bundle that is imported.</p>
42    ///
43    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.themes.is_none()`.
44    pub fn themes(&self) -> &[crate::types::AssetBundleImportJobThemeOverrideTags] {
45        self.themes.as_deref().unwrap_or_default()
46    }
47    /// <p>A list of tag overrides for any <code>Analysis</code> resources that are present in the asset bundle that is imported.</p>
48    ///
49    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.analyses.is_none()`.
50    pub fn analyses(&self) -> &[crate::types::AssetBundleImportJobAnalysisOverrideTags] {
51        self.analyses.as_deref().unwrap_or_default()
52    }
53    /// <p>A list of tag overrides for any <code>Dashboard</code> resources that are present in the asset bundle that is imported.</p>
54    ///
55    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.dashboards.is_none()`.
56    pub fn dashboards(&self) -> &[crate::types::AssetBundleImportJobDashboardOverrideTags] {
57        self.dashboards.as_deref().unwrap_or_default()
58    }
59    /// <p>A list of tag overrides for any <code>Folder</code> resources that are present in the asset bundle that is imported.</p>
60    ///
61    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.folders.is_none()`.
62    pub fn folders(&self) -> &[crate::types::AssetBundleImportJobFolderOverrideTags] {
63        self.folders.as_deref().unwrap_or_default()
64    }
65}
66impl AssetBundleImportJobOverrideTags {
67    /// Creates a new builder-style object to manufacture [`AssetBundleImportJobOverrideTags`](crate::types::AssetBundleImportJobOverrideTags).
68    pub fn builder() -> crate::types::builders::AssetBundleImportJobOverrideTagsBuilder {
69        crate::types::builders::AssetBundleImportJobOverrideTagsBuilder::default()
70    }
71}
72
73/// A builder for [`AssetBundleImportJobOverrideTags`](crate::types::AssetBundleImportJobOverrideTags).
74#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
75#[non_exhaustive]
76pub struct AssetBundleImportJobOverrideTagsBuilder {
77    pub(crate) vpc_connections: ::std::option::Option<::std::vec::Vec<crate::types::AssetBundleImportJobVpcConnectionOverrideTags>>,
78    pub(crate) data_sources: ::std::option::Option<::std::vec::Vec<crate::types::AssetBundleImportJobDataSourceOverrideTags>>,
79    pub(crate) data_sets: ::std::option::Option<::std::vec::Vec<crate::types::AssetBundleImportJobDataSetOverrideTags>>,
80    pub(crate) themes: ::std::option::Option<::std::vec::Vec<crate::types::AssetBundleImportJobThemeOverrideTags>>,
81    pub(crate) analyses: ::std::option::Option<::std::vec::Vec<crate::types::AssetBundleImportJobAnalysisOverrideTags>>,
82    pub(crate) dashboards: ::std::option::Option<::std::vec::Vec<crate::types::AssetBundleImportJobDashboardOverrideTags>>,
83    pub(crate) folders: ::std::option::Option<::std::vec::Vec<crate::types::AssetBundleImportJobFolderOverrideTags>>,
84}
85impl AssetBundleImportJobOverrideTagsBuilder {
86    /// Appends an item to `vpc_connections`.
87    ///
88    /// To override the contents of this collection use [`set_vpc_connections`](Self::set_vpc_connections).
89    ///
90    /// <p>A list of tag overrides for any <code>VPCConnection</code> resources that are present in the asset bundle that is imported.</p>
91    pub fn vpc_connections(mut self, input: crate::types::AssetBundleImportJobVpcConnectionOverrideTags) -> Self {
92        let mut v = self.vpc_connections.unwrap_or_default();
93        v.push(input);
94        self.vpc_connections = ::std::option::Option::Some(v);
95        self
96    }
97    /// <p>A list of tag overrides for any <code>VPCConnection</code> resources that are present in the asset bundle that is imported.</p>
98    pub fn set_vpc_connections(
99        mut self,
100        input: ::std::option::Option<::std::vec::Vec<crate::types::AssetBundleImportJobVpcConnectionOverrideTags>>,
101    ) -> Self {
102        self.vpc_connections = input;
103        self
104    }
105    /// <p>A list of tag overrides for any <code>VPCConnection</code> resources that are present in the asset bundle that is imported.</p>
106    pub fn get_vpc_connections(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::AssetBundleImportJobVpcConnectionOverrideTags>> {
107        &self.vpc_connections
108    }
109    /// Appends an item to `data_sources`.
110    ///
111    /// To override the contents of this collection use [`set_data_sources`](Self::set_data_sources).
112    ///
113    /// <p>A list of tag overrides for any <code>DataSource</code> resources that are present in the asset bundle that is imported.</p>
114    pub fn data_sources(mut self, input: crate::types::AssetBundleImportJobDataSourceOverrideTags) -> Self {
115        let mut v = self.data_sources.unwrap_or_default();
116        v.push(input);
117        self.data_sources = ::std::option::Option::Some(v);
118        self
119    }
120    /// <p>A list of tag overrides for any <code>DataSource</code> resources that are present in the asset bundle that is imported.</p>
121    pub fn set_data_sources(
122        mut self,
123        input: ::std::option::Option<::std::vec::Vec<crate::types::AssetBundleImportJobDataSourceOverrideTags>>,
124    ) -> Self {
125        self.data_sources = input;
126        self
127    }
128    /// <p>A list of tag overrides for any <code>DataSource</code> resources that are present in the asset bundle that is imported.</p>
129    pub fn get_data_sources(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::AssetBundleImportJobDataSourceOverrideTags>> {
130        &self.data_sources
131    }
132    /// Appends an item to `data_sets`.
133    ///
134    /// To override the contents of this collection use [`set_data_sets`](Self::set_data_sets).
135    ///
136    /// <p>A list of tag overrides for any <code>DataSet</code> resources that are present in the asset bundle that is imported.</p>
137    pub fn data_sets(mut self, input: crate::types::AssetBundleImportJobDataSetOverrideTags) -> Self {
138        let mut v = self.data_sets.unwrap_or_default();
139        v.push(input);
140        self.data_sets = ::std::option::Option::Some(v);
141        self
142    }
143    /// <p>A list of tag overrides for any <code>DataSet</code> resources that are present in the asset bundle that is imported.</p>
144    pub fn set_data_sets(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::AssetBundleImportJobDataSetOverrideTags>>) -> Self {
145        self.data_sets = input;
146        self
147    }
148    /// <p>A list of tag overrides for any <code>DataSet</code> resources that are present in the asset bundle that is imported.</p>
149    pub fn get_data_sets(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::AssetBundleImportJobDataSetOverrideTags>> {
150        &self.data_sets
151    }
152    /// Appends an item to `themes`.
153    ///
154    /// To override the contents of this collection use [`set_themes`](Self::set_themes).
155    ///
156    /// <p>A list of tag overrides for any <code>Theme</code> resources that are present in the asset bundle that is imported.</p>
157    pub fn themes(mut self, input: crate::types::AssetBundleImportJobThemeOverrideTags) -> Self {
158        let mut v = self.themes.unwrap_or_default();
159        v.push(input);
160        self.themes = ::std::option::Option::Some(v);
161        self
162    }
163    /// <p>A list of tag overrides for any <code>Theme</code> resources that are present in the asset bundle that is imported.</p>
164    pub fn set_themes(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::AssetBundleImportJobThemeOverrideTags>>) -> Self {
165        self.themes = input;
166        self
167    }
168    /// <p>A list of tag overrides for any <code>Theme</code> resources that are present in the asset bundle that is imported.</p>
169    pub fn get_themes(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::AssetBundleImportJobThemeOverrideTags>> {
170        &self.themes
171    }
172    /// Appends an item to `analyses`.
173    ///
174    /// To override the contents of this collection use [`set_analyses`](Self::set_analyses).
175    ///
176    /// <p>A list of tag overrides for any <code>Analysis</code> resources that are present in the asset bundle that is imported.</p>
177    pub fn analyses(mut self, input: crate::types::AssetBundleImportJobAnalysisOverrideTags) -> Self {
178        let mut v = self.analyses.unwrap_or_default();
179        v.push(input);
180        self.analyses = ::std::option::Option::Some(v);
181        self
182    }
183    /// <p>A list of tag overrides for any <code>Analysis</code> resources that are present in the asset bundle that is imported.</p>
184    pub fn set_analyses(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::AssetBundleImportJobAnalysisOverrideTags>>) -> Self {
185        self.analyses = input;
186        self
187    }
188    /// <p>A list of tag overrides for any <code>Analysis</code> resources that are present in the asset bundle that is imported.</p>
189    pub fn get_analyses(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::AssetBundleImportJobAnalysisOverrideTags>> {
190        &self.analyses
191    }
192    /// Appends an item to `dashboards`.
193    ///
194    /// To override the contents of this collection use [`set_dashboards`](Self::set_dashboards).
195    ///
196    /// <p>A list of tag overrides for any <code>Dashboard</code> resources that are present in the asset bundle that is imported.</p>
197    pub fn dashboards(mut self, input: crate::types::AssetBundleImportJobDashboardOverrideTags) -> Self {
198        let mut v = self.dashboards.unwrap_or_default();
199        v.push(input);
200        self.dashboards = ::std::option::Option::Some(v);
201        self
202    }
203    /// <p>A list of tag overrides for any <code>Dashboard</code> resources that are present in the asset bundle that is imported.</p>
204    pub fn set_dashboards(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::AssetBundleImportJobDashboardOverrideTags>>) -> Self {
205        self.dashboards = input;
206        self
207    }
208    /// <p>A list of tag overrides for any <code>Dashboard</code> resources that are present in the asset bundle that is imported.</p>
209    pub fn get_dashboards(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::AssetBundleImportJobDashboardOverrideTags>> {
210        &self.dashboards
211    }
212    /// Appends an item to `folders`.
213    ///
214    /// To override the contents of this collection use [`set_folders`](Self::set_folders).
215    ///
216    /// <p>A list of tag overrides for any <code>Folder</code> resources that are present in the asset bundle that is imported.</p>
217    pub fn folders(mut self, input: crate::types::AssetBundleImportJobFolderOverrideTags) -> Self {
218        let mut v = self.folders.unwrap_or_default();
219        v.push(input);
220        self.folders = ::std::option::Option::Some(v);
221        self
222    }
223    /// <p>A list of tag overrides for any <code>Folder</code> resources that are present in the asset bundle that is imported.</p>
224    pub fn set_folders(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::AssetBundleImportJobFolderOverrideTags>>) -> Self {
225        self.folders = input;
226        self
227    }
228    /// <p>A list of tag overrides for any <code>Folder</code> resources that are present in the asset bundle that is imported.</p>
229    pub fn get_folders(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::AssetBundleImportJobFolderOverrideTags>> {
230        &self.folders
231    }
232    /// Consumes the builder and constructs a [`AssetBundleImportJobOverrideTags`](crate::types::AssetBundleImportJobOverrideTags).
233    pub fn build(self) -> crate::types::AssetBundleImportJobOverrideTags {
234        crate::types::AssetBundleImportJobOverrideTags {
235            vpc_connections: self.vpc_connections,
236            data_sources: self.data_sources,
237            data_sets: self.data_sets,
238            themes: self.themes,
239            analyses: self.analyses,
240            dashboards: self.dashboards,
241            folders: self.folders,
242        }
243    }
244}