aws_sdk_quicksight/types/
_asset_bundle_import_job_override_validation_strategy.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2
3/// <p>An optional parameter that overrides the validation strategy for all analyses and dashboards before the resource is imported.</p>
4#[non_exhaustive]
5#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
6pub struct AssetBundleImportJobOverrideValidationStrategy {
7    /// <p>A Boolean value that indicates whether to import all analyses and dashboards under strict or lenient mode.</p>
8    pub strict_mode_for_all_resources: bool,
9}
10impl AssetBundleImportJobOverrideValidationStrategy {
11    /// <p>A Boolean value that indicates whether to import all analyses and dashboards under strict or lenient mode.</p>
12    pub fn strict_mode_for_all_resources(&self) -> bool {
13        self.strict_mode_for_all_resources
14    }
15}
16impl AssetBundleImportJobOverrideValidationStrategy {
17    /// Creates a new builder-style object to manufacture [`AssetBundleImportJobOverrideValidationStrategy`](crate::types::AssetBundleImportJobOverrideValidationStrategy).
18    pub fn builder() -> crate::types::builders::AssetBundleImportJobOverrideValidationStrategyBuilder {
19        crate::types::builders::AssetBundleImportJobOverrideValidationStrategyBuilder::default()
20    }
21}
22
23/// A builder for [`AssetBundleImportJobOverrideValidationStrategy`](crate::types::AssetBundleImportJobOverrideValidationStrategy).
24#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
25#[non_exhaustive]
26pub struct AssetBundleImportJobOverrideValidationStrategyBuilder {
27    pub(crate) strict_mode_for_all_resources: ::std::option::Option<bool>,
28}
29impl AssetBundleImportJobOverrideValidationStrategyBuilder {
30    /// <p>A Boolean value that indicates whether to import all analyses and dashboards under strict or lenient mode.</p>
31    pub fn strict_mode_for_all_resources(mut self, input: bool) -> Self {
32        self.strict_mode_for_all_resources = ::std::option::Option::Some(input);
33        self
34    }
35    /// <p>A Boolean value that indicates whether to import all analyses and dashboards under strict or lenient mode.</p>
36    pub fn set_strict_mode_for_all_resources(mut self, input: ::std::option::Option<bool>) -> Self {
37        self.strict_mode_for_all_resources = input;
38        self
39    }
40    /// <p>A Boolean value that indicates whether to import all analyses and dashboards under strict or lenient mode.</p>
41    pub fn get_strict_mode_for_all_resources(&self) -> &::std::option::Option<bool> {
42        &self.strict_mode_for_all_resources
43    }
44    /// Consumes the builder and constructs a [`AssetBundleImportJobOverrideValidationStrategy`](crate::types::AssetBundleImportJobOverrideValidationStrategy).
45    pub fn build(self) -> crate::types::AssetBundleImportJobOverrideValidationStrategy {
46        crate::types::AssetBundleImportJobOverrideValidationStrategy {
47            strict_mode_for_all_resources: self.strict_mode_for_all_resources.unwrap_or_default(),
48        }
49    }
50}