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 Quick Sight-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 Quick Sight 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 /// <li>
28 /// <p><code>AvailabilityStatus</code> for <code>QuickSuiteActionsOption</code> - This status can be either <code>ENABLED</code> or <code>DISABLED</code>. Features related to Actions in Amazon Quick Suite on dashboards are disabled when this is set to <code>DISABLED</code>. This option is <code>DISABLED</code> by default.</p></li>
29 /// <li>
30 /// <p><code>AvailabilityStatus</code> for <code>ExecutiveSummaryOption</code> - This status can be either <code>ENABLED</code> or <code>DISABLED</code>. The option to build an executive summary is disabled when this is set to <code>DISABLED</code>. This option is <code>ENABLED</code> by default.</p></li>
31 /// <li>
32 /// <p><code>AvailabilityStatus</code> for <code>DataStoriesSharingOption</code> - This status can be either <code>ENABLED</code> or <code>DISABLED</code>. The option to share a data story is disabled when this is set to <code>DISABLED</code>. This option is <code>ENABLED</code> by default.</p></li>
33 /// </ul>
34 pub dashboard_publish_options: ::std::option::Option<crate::types::DashboardPublishOptions>,
35 /// <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>
36 pub theme_arn: ::std::option::Option<::std::string::String>,
37 /// <p>The definition of a dashboard.</p>
38 /// <p>A definition is the data model of all features in a Dashboard, Template, or Analysis.</p>
39 pub definition: ::std::option::Option<crate::types::DashboardVersionDefinition>,
40 /// <p>The option to relax the validation needed to update a dashboard with definition objects. This skips the validation step for specific errors.</p>
41 pub validation_strategy: ::std::option::Option<crate::types::ValidationStrategy>,
42}
43impl UpdateDashboardInput {
44 /// <p>The ID of the Amazon Web Services account that contains the dashboard that you're updating.</p>
45 pub fn aws_account_id(&self) -> ::std::option::Option<&str> {
46 self.aws_account_id.as_deref()
47 }
48 /// <p>The ID for the dashboard.</p>
49 pub fn dashboard_id(&self) -> ::std::option::Option<&str> {
50 self.dashboard_id.as_deref()
51 }
52 /// <p>The display name of the dashboard.</p>
53 pub fn name(&self) -> ::std::option::Option<&str> {
54 self.name.as_deref()
55 }
56 /// <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 Quick Sight-supported Amazon Web Services Region.</p>
57 /// <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>
58 pub fn source_entity(&self) -> ::std::option::Option<&crate::types::DashboardSourceEntity> {
59 self.source_entity.as_ref()
60 }
61 /// <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>
62 pub fn parameters(&self) -> ::std::option::Option<&crate::types::Parameters> {
63 self.parameters.as_ref()
64 }
65 /// <p>A description for the first version of the dashboard being created.</p>
66 pub fn version_description(&self) -> ::std::option::Option<&str> {
67 self.version_description.as_deref()
68 }
69 /// <p>Options for publishing the dashboard when you create it:</p>
70 /// <ul>
71 /// <li>
72 /// <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 Quick Sight 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>
73 /// <li>
74 /// <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>
75 /// <li>
76 /// <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>
77 /// <li>
78 /// <p><code>AvailabilityStatus</code> for <code>QuickSuiteActionsOption</code> - This status can be either <code>ENABLED</code> or <code>DISABLED</code>. Features related to Actions in Amazon Quick Suite on dashboards are disabled when this is set to <code>DISABLED</code>. This option is <code>DISABLED</code> by default.</p></li>
79 /// <li>
80 /// <p><code>AvailabilityStatus</code> for <code>ExecutiveSummaryOption</code> - This status can be either <code>ENABLED</code> or <code>DISABLED</code>. The option to build an executive summary is disabled when this is set to <code>DISABLED</code>. This option is <code>ENABLED</code> by default.</p></li>
81 /// <li>
82 /// <p><code>AvailabilityStatus</code> for <code>DataStoriesSharingOption</code> - This status can be either <code>ENABLED</code> or <code>DISABLED</code>. The option to share a data story is disabled when this is set to <code>DISABLED</code>. This option is <code>ENABLED</code> by default.</p></li>
83 /// </ul>
84 pub fn dashboard_publish_options(&self) -> ::std::option::Option<&crate::types::DashboardPublishOptions> {
85 self.dashboard_publish_options.as_ref()
86 }
87 /// <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>
88 pub fn theme_arn(&self) -> ::std::option::Option<&str> {
89 self.theme_arn.as_deref()
90 }
91 /// <p>The definition of a dashboard.</p>
92 /// <p>A definition is the data model of all features in a Dashboard, Template, or Analysis.</p>
93 pub fn definition(&self) -> ::std::option::Option<&crate::types::DashboardVersionDefinition> {
94 self.definition.as_ref()
95 }
96 /// <p>The option to relax the validation needed to update a dashboard with definition objects. This skips the validation step for specific errors.</p>
97 pub fn validation_strategy(&self) -> ::std::option::Option<&crate::types::ValidationStrategy> {
98 self.validation_strategy.as_ref()
99 }
100}
101impl UpdateDashboardInput {
102 /// Creates a new builder-style object to manufacture [`UpdateDashboardInput`](crate::operation::update_dashboard::UpdateDashboardInput).
103 pub fn builder() -> crate::operation::update_dashboard::builders::UpdateDashboardInputBuilder {
104 crate::operation::update_dashboard::builders::UpdateDashboardInputBuilder::default()
105 }
106}
107
108/// A builder for [`UpdateDashboardInput`](crate::operation::update_dashboard::UpdateDashboardInput).
109#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
110#[non_exhaustive]
111pub struct UpdateDashboardInputBuilder {
112 pub(crate) aws_account_id: ::std::option::Option<::std::string::String>,
113 pub(crate) dashboard_id: ::std::option::Option<::std::string::String>,
114 pub(crate) name: ::std::option::Option<::std::string::String>,
115 pub(crate) source_entity: ::std::option::Option<crate::types::DashboardSourceEntity>,
116 pub(crate) parameters: ::std::option::Option<crate::types::Parameters>,
117 pub(crate) version_description: ::std::option::Option<::std::string::String>,
118 pub(crate) dashboard_publish_options: ::std::option::Option<crate::types::DashboardPublishOptions>,
119 pub(crate) theme_arn: ::std::option::Option<::std::string::String>,
120 pub(crate) definition: ::std::option::Option<crate::types::DashboardVersionDefinition>,
121 pub(crate) validation_strategy: ::std::option::Option<crate::types::ValidationStrategy>,
122}
123impl UpdateDashboardInputBuilder {
124 /// <p>The ID of the Amazon Web Services account that contains the dashboard that you're updating.</p>
125 /// This field is required.
126 pub fn aws_account_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
127 self.aws_account_id = ::std::option::Option::Some(input.into());
128 self
129 }
130 /// <p>The ID of the Amazon Web Services account that contains the dashboard that you're updating.</p>
131 pub fn set_aws_account_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
132 self.aws_account_id = input;
133 self
134 }
135 /// <p>The ID of the Amazon Web Services account that contains the dashboard that you're updating.</p>
136 pub fn get_aws_account_id(&self) -> &::std::option::Option<::std::string::String> {
137 &self.aws_account_id
138 }
139 /// <p>The ID for the dashboard.</p>
140 /// This field is required.
141 pub fn dashboard_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
142 self.dashboard_id = ::std::option::Option::Some(input.into());
143 self
144 }
145 /// <p>The ID for the dashboard.</p>
146 pub fn set_dashboard_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
147 self.dashboard_id = input;
148 self
149 }
150 /// <p>The ID for the dashboard.</p>
151 pub fn get_dashboard_id(&self) -> &::std::option::Option<::std::string::String> {
152 &self.dashboard_id
153 }
154 /// <p>The display name of the dashboard.</p>
155 /// This field is required.
156 pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
157 self.name = ::std::option::Option::Some(input.into());
158 self
159 }
160 /// <p>The display name of the dashboard.</p>
161 pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
162 self.name = input;
163 self
164 }
165 /// <p>The display name of the dashboard.</p>
166 pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
167 &self.name
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 Quick Sight-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 source_entity(mut self, input: crate::types::DashboardSourceEntity) -> Self {
172 self.source_entity = ::std::option::Option::Some(input);
173 self
174 }
175 /// <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 Quick Sight-supported Amazon Web Services Region.</p>
176 /// <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>
177 pub fn set_source_entity(mut self, input: ::std::option::Option<crate::types::DashboardSourceEntity>) -> Self {
178 self.source_entity = input;
179 self
180 }
181 /// <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 Quick Sight-supported Amazon Web Services Region.</p>
182 /// <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>
183 pub fn get_source_entity(&self) -> &::std::option::Option<crate::types::DashboardSourceEntity> {
184 &self.source_entity
185 }
186 /// <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>
187 pub fn parameters(mut self, input: crate::types::Parameters) -> Self {
188 self.parameters = ::std::option::Option::Some(input);
189 self
190 }
191 /// <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>
192 pub fn set_parameters(mut self, input: ::std::option::Option<crate::types::Parameters>) -> Self {
193 self.parameters = input;
194 self
195 }
196 /// <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>
197 pub fn get_parameters(&self) -> &::std::option::Option<crate::types::Parameters> {
198 &self.parameters
199 }
200 /// <p>A description for the first version of the dashboard being created.</p>
201 pub fn version_description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
202 self.version_description = ::std::option::Option::Some(input.into());
203 self
204 }
205 /// <p>A description for the first version of the dashboard being created.</p>
206 pub fn set_version_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
207 self.version_description = input;
208 self
209 }
210 /// <p>A description for the first version of the dashboard being created.</p>
211 pub fn get_version_description(&self) -> &::std::option::Option<::std::string::String> {
212 &self.version_description
213 }
214 /// <p>Options for publishing the dashboard when you create it:</p>
215 /// <ul>
216 /// <li>
217 /// <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 Quick Sight 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>
218 /// <li>
219 /// <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>
220 /// <li>
221 /// <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>
222 /// <li>
223 /// <p><code>AvailabilityStatus</code> for <code>QuickSuiteActionsOption</code> - This status can be either <code>ENABLED</code> or <code>DISABLED</code>. Features related to Actions in Amazon Quick Suite on dashboards are disabled when this is set to <code>DISABLED</code>. This option is <code>DISABLED</code> by default.</p></li>
224 /// <li>
225 /// <p><code>AvailabilityStatus</code> for <code>ExecutiveSummaryOption</code> - This status can be either <code>ENABLED</code> or <code>DISABLED</code>. The option to build an executive summary is disabled when this is set to <code>DISABLED</code>. This option is <code>ENABLED</code> by default.</p></li>
226 /// <li>
227 /// <p><code>AvailabilityStatus</code> for <code>DataStoriesSharingOption</code> - This status can be either <code>ENABLED</code> or <code>DISABLED</code>. The option to share a data story is disabled when this is set to <code>DISABLED</code>. This option is <code>ENABLED</code> by default.</p></li>
228 /// </ul>
229 pub fn dashboard_publish_options(mut self, input: crate::types::DashboardPublishOptions) -> Self {
230 self.dashboard_publish_options = ::std::option::Option::Some(input);
231 self
232 }
233 /// <p>Options for publishing the dashboard when you create it:</p>
234 /// <ul>
235 /// <li>
236 /// <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 Quick Sight 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>
237 /// <li>
238 /// <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>
239 /// <li>
240 /// <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>
241 /// <li>
242 /// <p><code>AvailabilityStatus</code> for <code>QuickSuiteActionsOption</code> - This status can be either <code>ENABLED</code> or <code>DISABLED</code>. Features related to Actions in Amazon Quick Suite on dashboards are disabled when this is set to <code>DISABLED</code>. This option is <code>DISABLED</code> by default.</p></li>
243 /// <li>
244 /// <p><code>AvailabilityStatus</code> for <code>ExecutiveSummaryOption</code> - This status can be either <code>ENABLED</code> or <code>DISABLED</code>. The option to build an executive summary is disabled when this is set to <code>DISABLED</code>. This option is <code>ENABLED</code> by default.</p></li>
245 /// <li>
246 /// <p><code>AvailabilityStatus</code> for <code>DataStoriesSharingOption</code> - This status can be either <code>ENABLED</code> or <code>DISABLED</code>. The option to share a data story is disabled when this is set to <code>DISABLED</code>. This option is <code>ENABLED</code> by default.</p></li>
247 /// </ul>
248 pub fn set_dashboard_publish_options(mut self, input: ::std::option::Option<crate::types::DashboardPublishOptions>) -> Self {
249 self.dashboard_publish_options = input;
250 self
251 }
252 /// <p>Options for publishing the dashboard when you create it:</p>
253 /// <ul>
254 /// <li>
255 /// <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 Quick Sight 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>
256 /// <li>
257 /// <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>
258 /// <li>
259 /// <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>
260 /// <li>
261 /// <p><code>AvailabilityStatus</code> for <code>QuickSuiteActionsOption</code> - This status can be either <code>ENABLED</code> or <code>DISABLED</code>. Features related to Actions in Amazon Quick Suite on dashboards are disabled when this is set to <code>DISABLED</code>. This option is <code>DISABLED</code> by default.</p></li>
262 /// <li>
263 /// <p><code>AvailabilityStatus</code> for <code>ExecutiveSummaryOption</code> - This status can be either <code>ENABLED</code> or <code>DISABLED</code>. The option to build an executive summary is disabled when this is set to <code>DISABLED</code>. This option is <code>ENABLED</code> by default.</p></li>
264 /// <li>
265 /// <p><code>AvailabilityStatus</code> for <code>DataStoriesSharingOption</code> - This status can be either <code>ENABLED</code> or <code>DISABLED</code>. The option to share a data story is disabled when this is set to <code>DISABLED</code>. This option is <code>ENABLED</code> by default.</p></li>
266 /// </ul>
267 pub fn get_dashboard_publish_options(&self) -> &::std::option::Option<crate::types::DashboardPublishOptions> {
268 &self.dashboard_publish_options
269 }
270 /// <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>
271 pub fn theme_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
272 self.theme_arn = ::std::option::Option::Some(input.into());
273 self
274 }
275 /// <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>
276 pub fn set_theme_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
277 self.theme_arn = input;
278 self
279 }
280 /// <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>
281 pub fn get_theme_arn(&self) -> &::std::option::Option<::std::string::String> {
282 &self.theme_arn
283 }
284 /// <p>The definition of a dashboard.</p>
285 /// <p>A definition is the data model of all features in a Dashboard, Template, or Analysis.</p>
286 pub fn definition(mut self, input: crate::types::DashboardVersionDefinition) -> Self {
287 self.definition = ::std::option::Option::Some(input);
288 self
289 }
290 /// <p>The definition of a dashboard.</p>
291 /// <p>A definition is the data model of all features in a Dashboard, Template, or Analysis.</p>
292 pub fn set_definition(mut self, input: ::std::option::Option<crate::types::DashboardVersionDefinition>) -> Self {
293 self.definition = input;
294 self
295 }
296 /// <p>The definition of a dashboard.</p>
297 /// <p>A definition is the data model of all features in a Dashboard, Template, or Analysis.</p>
298 pub fn get_definition(&self) -> &::std::option::Option<crate::types::DashboardVersionDefinition> {
299 &self.definition
300 }
301 /// <p>The option to relax the validation needed to update a dashboard with definition objects. This skips the validation step for specific errors.</p>
302 pub fn validation_strategy(mut self, input: crate::types::ValidationStrategy) -> Self {
303 self.validation_strategy = ::std::option::Option::Some(input);
304 self
305 }
306 /// <p>The option to relax the validation needed to update a dashboard with definition objects. This skips the validation step for specific errors.</p>
307 pub fn set_validation_strategy(mut self, input: ::std::option::Option<crate::types::ValidationStrategy>) -> Self {
308 self.validation_strategy = input;
309 self
310 }
311 /// <p>The option to relax the validation needed to update a dashboard with definition objects. This skips the validation step for specific errors.</p>
312 pub fn get_validation_strategy(&self) -> &::std::option::Option<crate::types::ValidationStrategy> {
313 &self.validation_strategy
314 }
315 /// Consumes the builder and constructs a [`UpdateDashboardInput`](crate::operation::update_dashboard::UpdateDashboardInput).
316 pub fn build(
317 self,
318 ) -> ::std::result::Result<crate::operation::update_dashboard::UpdateDashboardInput, ::aws_smithy_types::error::operation::BuildError> {
319 ::std::result::Result::Ok(crate::operation::update_dashboard::UpdateDashboardInput {
320 aws_account_id: self.aws_account_id,
321 dashboard_id: self.dashboard_id,
322 name: self.name,
323 source_entity: self.source_entity,
324 parameters: self.parameters,
325 version_description: self.version_description,
326 dashboard_publish_options: self.dashboard_publish_options,
327 theme_arn: self.theme_arn,
328 definition: self.definition,
329 validation_strategy: self.validation_strategy,
330 })
331 }
332}