aws_sdk_quicksight/operation/update_dashboard/_update_dashboard_input.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2#[allow(missing_docs)] // documentation missing in model
3#[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct UpdateDashboardInput {
6 /// <p>The ID of the Amazon Web Services account that contains the dashboard that you're updating.</p>
7 pub aws_account_id: ::std::option::Option<::std::string::String>,
8 /// <p>The ID for the dashboard.</p>
9 pub dashboard_id: ::std::option::Option<::std::string::String>,
10 /// <p>The display name of the dashboard.</p>
11 pub name: ::std::option::Option<::std::string::String>,
12 /// <p>The entity that you are using as a source when you update the dashboard. In <code>SourceEntity</code>, you specify the type of object you're using as source. You can only update a dashboard from a template, so you use a <code>SourceTemplate</code> entity. If you need to update a dashboard from an analysis, first convert the analysis to a template by using the <code> <a href="https://docs.aws.amazon.com/quicksight/latest/APIReference/API_CreateTemplate.html">CreateTemplate</a> </code> API operation. For <code>SourceTemplate</code>, specify the Amazon Resource Name (ARN) of the source template. The <code>SourceTemplate</code> ARN can contain any Amazon Web Services account and any Amazon QuickSight-supported Amazon Web Services Region.</p>
13 /// <p>Use the <code>DataSetReferences</code> entity within <code>SourceTemplate</code> to list the replacement datasets for the placeholders listed in the original. The schema in each dataset must match its placeholder.</p>
14 pub source_entity: ::std::option::Option<crate::types::DashboardSourceEntity>,
15 /// <p>A structure that contains the parameters of the dashboard. These are parameter overrides for a dashboard. A dashboard can have any type of parameters, and some parameters might accept multiple values.</p>
16 pub parameters: ::std::option::Option<crate::types::Parameters>,
17 /// <p>A description for the first version of the dashboard being created.</p>
18 pub version_description: ::std::option::Option<::std::string::String>,
19 /// <p>Options for publishing the dashboard when you create it:</p>
20 /// <ul>
21 /// <li>
22 /// <p><code>AvailabilityStatus</code> for <code>AdHocFilteringOption</code> - This status can be either <code>ENABLED</code> or <code>DISABLED</code>. When this is set to <code>DISABLED</code>, Amazon QuickSight disables the left filter pane on the published dashboard, which can be used for ad hoc (one-time) filtering. This option is <code>ENABLED</code> by default.</p></li>
23 /// <li>
24 /// <p><code>AvailabilityStatus</code> for <code>ExportToCSVOption</code> - This status can be either <code>ENABLED</code> or <code>DISABLED</code>. The visual option to export data to .CSV format isn't enabled when this is set to <code>DISABLED</code>. This option is <code>ENABLED</code> by default.</p></li>
25 /// <li>
26 /// <p><code>VisibilityState</code> for <code>SheetControlsOption</code> - This visibility state can be either <code>COLLAPSED</code> or <code>EXPANDED</code>. This option is <code>COLLAPSED</code> by default.</p></li>
27 /// </ul>
28 pub dashboard_publish_options: ::std::option::Option<crate::types::DashboardPublishOptions>,
29 /// <p>The Amazon Resource Name (ARN) of the theme that is being used for this dashboard. If you add a value for this field, it overrides the value that was originally associated with the entity. The theme ARN must exist in the same Amazon Web Services account where you create the dashboard.</p>
30 pub theme_arn: ::std::option::Option<::std::string::String>,
31 /// <p>The definition of a dashboard.</p>
32 /// <p>A definition is the data model of all features in a Dashboard, Template, or Analysis.</p>
33 pub definition: ::std::option::Option<crate::types::DashboardVersionDefinition>,
34 /// <p>The option to relax the validation needed to update a dashboard with definition objects. This skips the validation step for specific errors.</p>
35 pub validation_strategy: ::std::option::Option<crate::types::ValidationStrategy>,
36}
37impl UpdateDashboardInput {
38 /// <p>The ID of the Amazon Web Services account that contains the dashboard that you're updating.</p>
39 pub fn aws_account_id(&self) -> ::std::option::Option<&str> {
40 self.aws_account_id.as_deref()
41 }
42 /// <p>The ID for the dashboard.</p>
43 pub fn dashboard_id(&self) -> ::std::option::Option<&str> {
44 self.dashboard_id.as_deref()
45 }
46 /// <p>The display name of the dashboard.</p>
47 pub fn name(&self) -> ::std::option::Option<&str> {
48 self.name.as_deref()
49 }
50 /// <p>The entity that you are using as a source when you update the dashboard. In <code>SourceEntity</code>, you specify the type of object you're using as source. You can only update a dashboard from a template, so you use a <code>SourceTemplate</code> entity. If you need to update a dashboard from an analysis, first convert the analysis to a template by using the <code> <a href="https://docs.aws.amazon.com/quicksight/latest/APIReference/API_CreateTemplate.html">CreateTemplate</a> </code> API operation. For <code>SourceTemplate</code>, specify the Amazon Resource Name (ARN) of the source template. The <code>SourceTemplate</code> ARN can contain any Amazon Web Services account and any Amazon QuickSight-supported Amazon Web Services Region.</p>
51 /// <p>Use the <code>DataSetReferences</code> entity within <code>SourceTemplate</code> to list the replacement datasets for the placeholders listed in the original. The schema in each dataset must match its placeholder.</p>
52 pub fn source_entity(&self) -> ::std::option::Option<&crate::types::DashboardSourceEntity> {
53 self.source_entity.as_ref()
54 }
55 /// <p>A structure that contains the parameters of the dashboard. These are parameter overrides for a dashboard. A dashboard can have any type of parameters, and some parameters might accept multiple values.</p>
56 pub fn parameters(&self) -> ::std::option::Option<&crate::types::Parameters> {
57 self.parameters.as_ref()
58 }
59 /// <p>A description for the first version of the dashboard being created.</p>
60 pub fn version_description(&self) -> ::std::option::Option<&str> {
61 self.version_description.as_deref()
62 }
63 /// <p>Options for publishing the dashboard when you create it:</p>
64 /// <ul>
65 /// <li>
66 /// <p><code>AvailabilityStatus</code> for <code>AdHocFilteringOption</code> - This status can be either <code>ENABLED</code> or <code>DISABLED</code>. When this is set to <code>DISABLED</code>, Amazon QuickSight disables the left filter pane on the published dashboard, which can be used for ad hoc (one-time) filtering. This option is <code>ENABLED</code> by default.</p></li>
67 /// <li>
68 /// <p><code>AvailabilityStatus</code> for <code>ExportToCSVOption</code> - This status can be either <code>ENABLED</code> or <code>DISABLED</code>. The visual option to export data to .CSV format isn't enabled when this is set to <code>DISABLED</code>. This option is <code>ENABLED</code> by default.</p></li>
69 /// <li>
70 /// <p><code>VisibilityState</code> for <code>SheetControlsOption</code> - This visibility state can be either <code>COLLAPSED</code> or <code>EXPANDED</code>. This option is <code>COLLAPSED</code> by default.</p></li>
71 /// </ul>
72 pub fn dashboard_publish_options(&self) -> ::std::option::Option<&crate::types::DashboardPublishOptions> {
73 self.dashboard_publish_options.as_ref()
74 }
75 /// <p>The Amazon Resource Name (ARN) of the theme that is being used for this dashboard. If you add a value for this field, it overrides the value that was originally associated with the entity. The theme ARN must exist in the same Amazon Web Services account where you create the dashboard.</p>
76 pub fn theme_arn(&self) -> ::std::option::Option<&str> {
77 self.theme_arn.as_deref()
78 }
79 /// <p>The definition of a dashboard.</p>
80 /// <p>A definition is the data model of all features in a Dashboard, Template, or Analysis.</p>
81 pub fn definition(&self) -> ::std::option::Option<&crate::types::DashboardVersionDefinition> {
82 self.definition.as_ref()
83 }
84 /// <p>The option to relax the validation needed to update a dashboard with definition objects. This skips the validation step for specific errors.</p>
85 pub fn validation_strategy(&self) -> ::std::option::Option<&crate::types::ValidationStrategy> {
86 self.validation_strategy.as_ref()
87 }
88}
89impl UpdateDashboardInput {
90 /// Creates a new builder-style object to manufacture [`UpdateDashboardInput`](crate::operation::update_dashboard::UpdateDashboardInput).
91 pub fn builder() -> crate::operation::update_dashboard::builders::UpdateDashboardInputBuilder {
92 crate::operation::update_dashboard::builders::UpdateDashboardInputBuilder::default()
93 }
94}
95
96/// A builder for [`UpdateDashboardInput`](crate::operation::update_dashboard::UpdateDashboardInput).
97#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
98#[non_exhaustive]
99pub struct UpdateDashboardInputBuilder {
100 pub(crate) aws_account_id: ::std::option::Option<::std::string::String>,
101 pub(crate) dashboard_id: ::std::option::Option<::std::string::String>,
102 pub(crate) name: ::std::option::Option<::std::string::String>,
103 pub(crate) source_entity: ::std::option::Option<crate::types::DashboardSourceEntity>,
104 pub(crate) parameters: ::std::option::Option<crate::types::Parameters>,
105 pub(crate) version_description: ::std::option::Option<::std::string::String>,
106 pub(crate) dashboard_publish_options: ::std::option::Option<crate::types::DashboardPublishOptions>,
107 pub(crate) theme_arn: ::std::option::Option<::std::string::String>,
108 pub(crate) definition: ::std::option::Option<crate::types::DashboardVersionDefinition>,
109 pub(crate) validation_strategy: ::std::option::Option<crate::types::ValidationStrategy>,
110}
111impl UpdateDashboardInputBuilder {
112 /// <p>The ID of the Amazon Web Services account that contains the dashboard that you're updating.</p>
113 /// This field is required.
114 pub fn aws_account_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
115 self.aws_account_id = ::std::option::Option::Some(input.into());
116 self
117 }
118 /// <p>The ID of the Amazon Web Services account that contains the dashboard that you're updating.</p>
119 pub fn set_aws_account_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
120 self.aws_account_id = input;
121 self
122 }
123 /// <p>The ID of the Amazon Web Services account that contains the dashboard that you're updating.</p>
124 pub fn get_aws_account_id(&self) -> &::std::option::Option<::std::string::String> {
125 &self.aws_account_id
126 }
127 /// <p>The ID for the dashboard.</p>
128 /// This field is required.
129 pub fn dashboard_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
130 self.dashboard_id = ::std::option::Option::Some(input.into());
131 self
132 }
133 /// <p>The ID for the dashboard.</p>
134 pub fn set_dashboard_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
135 self.dashboard_id = input;
136 self
137 }
138 /// <p>The ID for the dashboard.</p>
139 pub fn get_dashboard_id(&self) -> &::std::option::Option<::std::string::String> {
140 &self.dashboard_id
141 }
142 /// <p>The display name of the dashboard.</p>
143 /// This field is required.
144 pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
145 self.name = ::std::option::Option::Some(input.into());
146 self
147 }
148 /// <p>The display name of the dashboard.</p>
149 pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
150 self.name = input;
151 self
152 }
153 /// <p>The display name of the dashboard.</p>
154 pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
155 &self.name
156 }
157 /// <p>The entity that you are using as a source when you update the dashboard. In <code>SourceEntity</code>, you specify the type of object you're using as source. You can only update a dashboard from a template, so you use a <code>SourceTemplate</code> entity. If you need to update a dashboard from an analysis, first convert the analysis to a template by using the <code> <a href="https://docs.aws.amazon.com/quicksight/latest/APIReference/API_CreateTemplate.html">CreateTemplate</a> </code> API operation. For <code>SourceTemplate</code>, specify the Amazon Resource Name (ARN) of the source template. The <code>SourceTemplate</code> ARN can contain any Amazon Web Services account and any Amazon QuickSight-supported Amazon Web Services Region.</p>
158 /// <p>Use the <code>DataSetReferences</code> entity within <code>SourceTemplate</code> to list the replacement datasets for the placeholders listed in the original. The schema in each dataset must match its placeholder.</p>
159 pub fn source_entity(mut self, input: crate::types::DashboardSourceEntity) -> Self {
160 self.source_entity = ::std::option::Option::Some(input);
161 self
162 }
163 /// <p>The entity that you are using as a source when you update the dashboard. In <code>SourceEntity</code>, you specify the type of object you're using as source. You can only update a dashboard from a template, so you use a <code>SourceTemplate</code> entity. If you need to update a dashboard from an analysis, first convert the analysis to a template by using the <code> <a href="https://docs.aws.amazon.com/quicksight/latest/APIReference/API_CreateTemplate.html">CreateTemplate</a> </code> API operation. For <code>SourceTemplate</code>, specify the Amazon Resource Name (ARN) of the source template. The <code>SourceTemplate</code> ARN can contain any Amazon Web Services account and any Amazon QuickSight-supported Amazon Web Services Region.</p>
164 /// <p>Use the <code>DataSetReferences</code> entity within <code>SourceTemplate</code> to list the replacement datasets for the placeholders listed in the original. The schema in each dataset must match its placeholder.</p>
165 pub fn set_source_entity(mut self, input: ::std::option::Option<crate::types::DashboardSourceEntity>) -> Self {
166 self.source_entity = input;
167 self
168 }
169 /// <p>The entity that you are using as a source when you update the dashboard. In <code>SourceEntity</code>, you specify the type of object you're using as source. You can only update a dashboard from a template, so you use a <code>SourceTemplate</code> entity. If you need to update a dashboard from an analysis, first convert the analysis to a template by using the <code> <a href="https://docs.aws.amazon.com/quicksight/latest/APIReference/API_CreateTemplate.html">CreateTemplate</a> </code> API operation. For <code>SourceTemplate</code>, specify the Amazon Resource Name (ARN) of the source template. The <code>SourceTemplate</code> ARN can contain any Amazon Web Services account and any Amazon QuickSight-supported Amazon Web Services Region.</p>
170 /// <p>Use the <code>DataSetReferences</code> entity within <code>SourceTemplate</code> to list the replacement datasets for the placeholders listed in the original. The schema in each dataset must match its placeholder.</p>
171 pub fn get_source_entity(&self) -> &::std::option::Option<crate::types::DashboardSourceEntity> {
172 &self.source_entity
173 }
174 /// <p>A structure that contains the parameters of the dashboard. These are parameter overrides for a dashboard. A dashboard can have any type of parameters, and some parameters might accept multiple values.</p>
175 pub fn parameters(mut self, input: crate::types::Parameters) -> Self {
176 self.parameters = ::std::option::Option::Some(input);
177 self
178 }
179 /// <p>A structure that contains the parameters of the dashboard. These are parameter overrides for a dashboard. A dashboard can have any type of parameters, and some parameters might accept multiple values.</p>
180 pub fn set_parameters(mut self, input: ::std::option::Option<crate::types::Parameters>) -> Self {
181 self.parameters = input;
182 self
183 }
184 /// <p>A structure that contains the parameters of the dashboard. These are parameter overrides for a dashboard. A dashboard can have any type of parameters, and some parameters might accept multiple values.</p>
185 pub fn get_parameters(&self) -> &::std::option::Option<crate::types::Parameters> {
186 &self.parameters
187 }
188 /// <p>A description for the first version of the dashboard being created.</p>
189 pub fn version_description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
190 self.version_description = ::std::option::Option::Some(input.into());
191 self
192 }
193 /// <p>A description for the first version of the dashboard being created.</p>
194 pub fn set_version_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
195 self.version_description = input;
196 self
197 }
198 /// <p>A description for the first version of the dashboard being created.</p>
199 pub fn get_version_description(&self) -> &::std::option::Option<::std::string::String> {
200 &self.version_description
201 }
202 /// <p>Options for publishing the dashboard when you create it:</p>
203 /// <ul>
204 /// <li>
205 /// <p><code>AvailabilityStatus</code> for <code>AdHocFilteringOption</code> - This status can be either <code>ENABLED</code> or <code>DISABLED</code>. When this is set to <code>DISABLED</code>, Amazon QuickSight disables the left filter pane on the published dashboard, which can be used for ad hoc (one-time) filtering. This option is <code>ENABLED</code> by default.</p></li>
206 /// <li>
207 /// <p><code>AvailabilityStatus</code> for <code>ExportToCSVOption</code> - This status can be either <code>ENABLED</code> or <code>DISABLED</code>. The visual option to export data to .CSV format isn't enabled when this is set to <code>DISABLED</code>. This option is <code>ENABLED</code> by default.</p></li>
208 /// <li>
209 /// <p><code>VisibilityState</code> for <code>SheetControlsOption</code> - This visibility state can be either <code>COLLAPSED</code> or <code>EXPANDED</code>. This option is <code>COLLAPSED</code> by default.</p></li>
210 /// </ul>
211 pub fn dashboard_publish_options(mut self, input: crate::types::DashboardPublishOptions) -> Self {
212 self.dashboard_publish_options = ::std::option::Option::Some(input);
213 self
214 }
215 /// <p>Options for publishing the dashboard when you create it:</p>
216 /// <ul>
217 /// <li>
218 /// <p><code>AvailabilityStatus</code> for <code>AdHocFilteringOption</code> - This status can be either <code>ENABLED</code> or <code>DISABLED</code>. When this is set to <code>DISABLED</code>, Amazon QuickSight disables the left filter pane on the published dashboard, which can be used for ad hoc (one-time) filtering. This option is <code>ENABLED</code> by default.</p></li>
219 /// <li>
220 /// <p><code>AvailabilityStatus</code> for <code>ExportToCSVOption</code> - This status can be either <code>ENABLED</code> or <code>DISABLED</code>. The visual option to export data to .CSV format isn't enabled when this is set to <code>DISABLED</code>. This option is <code>ENABLED</code> by default.</p></li>
221 /// <li>
222 /// <p><code>VisibilityState</code> for <code>SheetControlsOption</code> - This visibility state can be either <code>COLLAPSED</code> or <code>EXPANDED</code>. This option is <code>COLLAPSED</code> by default.</p></li>
223 /// </ul>
224 pub fn set_dashboard_publish_options(mut self, input: ::std::option::Option<crate::types::DashboardPublishOptions>) -> Self {
225 self.dashboard_publish_options = input;
226 self
227 }
228 /// <p>Options for publishing the dashboard when you create it:</p>
229 /// <ul>
230 /// <li>
231 /// <p><code>AvailabilityStatus</code> for <code>AdHocFilteringOption</code> - This status can be either <code>ENABLED</code> or <code>DISABLED</code>. When this is set to <code>DISABLED</code>, Amazon QuickSight disables the left filter pane on the published dashboard, which can be used for ad hoc (one-time) filtering. This option is <code>ENABLED</code> by default.</p></li>
232 /// <li>
233 /// <p><code>AvailabilityStatus</code> for <code>ExportToCSVOption</code> - This status can be either <code>ENABLED</code> or <code>DISABLED</code>. The visual option to export data to .CSV format isn't enabled when this is set to <code>DISABLED</code>. This option is <code>ENABLED</code> by default.</p></li>
234 /// <li>
235 /// <p><code>VisibilityState</code> for <code>SheetControlsOption</code> - This visibility state can be either <code>COLLAPSED</code> or <code>EXPANDED</code>. This option is <code>COLLAPSED</code> by default.</p></li>
236 /// </ul>
237 pub fn get_dashboard_publish_options(&self) -> &::std::option::Option<crate::types::DashboardPublishOptions> {
238 &self.dashboard_publish_options
239 }
240 /// <p>The Amazon Resource Name (ARN) of the theme that is being used for this dashboard. If you add a value for this field, it overrides the value that was originally associated with the entity. The theme ARN must exist in the same Amazon Web Services account where you create the dashboard.</p>
241 pub fn theme_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
242 self.theme_arn = ::std::option::Option::Some(input.into());
243 self
244 }
245 /// <p>The Amazon Resource Name (ARN) of the theme that is being used for this dashboard. If you add a value for this field, it overrides the value that was originally associated with the entity. The theme ARN must exist in the same Amazon Web Services account where you create the dashboard.</p>
246 pub fn set_theme_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
247 self.theme_arn = input;
248 self
249 }
250 /// <p>The Amazon Resource Name (ARN) of the theme that is being used for this dashboard. If you add a value for this field, it overrides the value that was originally associated with the entity. The theme ARN must exist in the same Amazon Web Services account where you create the dashboard.</p>
251 pub fn get_theme_arn(&self) -> &::std::option::Option<::std::string::String> {
252 &self.theme_arn
253 }
254 /// <p>The definition of a dashboard.</p>
255 /// <p>A definition is the data model of all features in a Dashboard, Template, or Analysis.</p>
256 pub fn definition(mut self, input: crate::types::DashboardVersionDefinition) -> Self {
257 self.definition = ::std::option::Option::Some(input);
258 self
259 }
260 /// <p>The definition of a dashboard.</p>
261 /// <p>A definition is the data model of all features in a Dashboard, Template, or Analysis.</p>
262 pub fn set_definition(mut self, input: ::std::option::Option<crate::types::DashboardVersionDefinition>) -> Self {
263 self.definition = input;
264 self
265 }
266 /// <p>The definition of a dashboard.</p>
267 /// <p>A definition is the data model of all features in a Dashboard, Template, or Analysis.</p>
268 pub fn get_definition(&self) -> &::std::option::Option<crate::types::DashboardVersionDefinition> {
269 &self.definition
270 }
271 /// <p>The option to relax the validation needed to update a dashboard with definition objects. This skips the validation step for specific errors.</p>
272 pub fn validation_strategy(mut self, input: crate::types::ValidationStrategy) -> Self {
273 self.validation_strategy = ::std::option::Option::Some(input);
274 self
275 }
276 /// <p>The option to relax the validation needed to update a dashboard with definition objects. This skips the validation step for specific errors.</p>
277 pub fn set_validation_strategy(mut self, input: ::std::option::Option<crate::types::ValidationStrategy>) -> Self {
278 self.validation_strategy = input;
279 self
280 }
281 /// <p>The option to relax the validation needed to update a dashboard with definition objects. This skips the validation step for specific errors.</p>
282 pub fn get_validation_strategy(&self) -> &::std::option::Option<crate::types::ValidationStrategy> {
283 &self.validation_strategy
284 }
285 /// Consumes the builder and constructs a [`UpdateDashboardInput`](crate::operation::update_dashboard::UpdateDashboardInput).
286 pub fn build(
287 self,
288 ) -> ::std::result::Result<crate::operation::update_dashboard::UpdateDashboardInput, ::aws_smithy_types::error::operation::BuildError> {
289 ::std::result::Result::Ok(crate::operation::update_dashboard::UpdateDashboardInput {
290 aws_account_id: self.aws_account_id,
291 dashboard_id: self.dashboard_id,
292 name: self.name,
293 source_entity: self.source_entity,
294 parameters: self.parameters,
295 version_description: self.version_description,
296 dashboard_publish_options: self.dashboard_publish_options,
297 theme_arn: self.theme_arn,
298 definition: self.definition,
299 validation_strategy: self.validation_strategy,
300 })
301 }
302}