aws_sdk_quicksight/operation/update_theme/
_update_theme_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 UpdateThemeInput {
6    /// <p>The ID of the Amazon Web Services account that contains the theme that you're updating.</p>
7    pub aws_account_id: ::std::option::Option<::std::string::String>,
8    /// <p>The ID for the theme.</p>
9    pub theme_id: ::std::option::Option<::std::string::String>,
10    /// <p>The name for the theme.</p>
11    pub name: ::std::option::Option<::std::string::String>,
12    /// <p>The theme ID, defined by Amazon QuickSight, that a custom theme inherits from. All themes initially inherit from a default Amazon QuickSight theme.</p>
13    pub base_theme_id: ::std::option::Option<::std::string::String>,
14    /// <p>A description of the theme version that you're updating Every time that you call <code>UpdateTheme</code>, you create a new version of the theme. Each version of the theme maintains a description of the version in <code>VersionDescription</code>.</p>
15    pub version_description: ::std::option::Option<::std::string::String>,
16    /// <p>The theme configuration, which contains the theme display properties.</p>
17    pub configuration: ::std::option::Option<crate::types::ThemeConfiguration>,
18}
19impl UpdateThemeInput {
20    /// <p>The ID of the Amazon Web Services account that contains the theme that you're updating.</p>
21    pub fn aws_account_id(&self) -> ::std::option::Option<&str> {
22        self.aws_account_id.as_deref()
23    }
24    /// <p>The ID for the theme.</p>
25    pub fn theme_id(&self) -> ::std::option::Option<&str> {
26        self.theme_id.as_deref()
27    }
28    /// <p>The name for the theme.</p>
29    pub fn name(&self) -> ::std::option::Option<&str> {
30        self.name.as_deref()
31    }
32    /// <p>The theme ID, defined by Amazon QuickSight, that a custom theme inherits from. All themes initially inherit from a default Amazon QuickSight theme.</p>
33    pub fn base_theme_id(&self) -> ::std::option::Option<&str> {
34        self.base_theme_id.as_deref()
35    }
36    /// <p>A description of the theme version that you're updating Every time that you call <code>UpdateTheme</code>, you create a new version of the theme. Each version of the theme maintains a description of the version in <code>VersionDescription</code>.</p>
37    pub fn version_description(&self) -> ::std::option::Option<&str> {
38        self.version_description.as_deref()
39    }
40    /// <p>The theme configuration, which contains the theme display properties.</p>
41    pub fn configuration(&self) -> ::std::option::Option<&crate::types::ThemeConfiguration> {
42        self.configuration.as_ref()
43    }
44}
45impl UpdateThemeInput {
46    /// Creates a new builder-style object to manufacture [`UpdateThemeInput`](crate::operation::update_theme::UpdateThemeInput).
47    pub fn builder() -> crate::operation::update_theme::builders::UpdateThemeInputBuilder {
48        crate::operation::update_theme::builders::UpdateThemeInputBuilder::default()
49    }
50}
51
52/// A builder for [`UpdateThemeInput`](crate::operation::update_theme::UpdateThemeInput).
53#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
54#[non_exhaustive]
55pub struct UpdateThemeInputBuilder {
56    pub(crate) aws_account_id: ::std::option::Option<::std::string::String>,
57    pub(crate) theme_id: ::std::option::Option<::std::string::String>,
58    pub(crate) name: ::std::option::Option<::std::string::String>,
59    pub(crate) base_theme_id: ::std::option::Option<::std::string::String>,
60    pub(crate) version_description: ::std::option::Option<::std::string::String>,
61    pub(crate) configuration: ::std::option::Option<crate::types::ThemeConfiguration>,
62}
63impl UpdateThemeInputBuilder {
64    /// <p>The ID of the Amazon Web Services account that contains the theme that you're updating.</p>
65    /// This field is required.
66    pub fn aws_account_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
67        self.aws_account_id = ::std::option::Option::Some(input.into());
68        self
69    }
70    /// <p>The ID of the Amazon Web Services account that contains the theme that you're updating.</p>
71    pub fn set_aws_account_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
72        self.aws_account_id = input;
73        self
74    }
75    /// <p>The ID of the Amazon Web Services account that contains the theme that you're updating.</p>
76    pub fn get_aws_account_id(&self) -> &::std::option::Option<::std::string::String> {
77        &self.aws_account_id
78    }
79    /// <p>The ID for the theme.</p>
80    /// This field is required.
81    pub fn theme_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
82        self.theme_id = ::std::option::Option::Some(input.into());
83        self
84    }
85    /// <p>The ID for the theme.</p>
86    pub fn set_theme_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
87        self.theme_id = input;
88        self
89    }
90    /// <p>The ID for the theme.</p>
91    pub fn get_theme_id(&self) -> &::std::option::Option<::std::string::String> {
92        &self.theme_id
93    }
94    /// <p>The name for the theme.</p>
95    pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
96        self.name = ::std::option::Option::Some(input.into());
97        self
98    }
99    /// <p>The name for the theme.</p>
100    pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
101        self.name = input;
102        self
103    }
104    /// <p>The name for the theme.</p>
105    pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
106        &self.name
107    }
108    /// <p>The theme ID, defined by Amazon QuickSight, that a custom theme inherits from. All themes initially inherit from a default Amazon QuickSight theme.</p>
109    /// This field is required.
110    pub fn base_theme_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
111        self.base_theme_id = ::std::option::Option::Some(input.into());
112        self
113    }
114    /// <p>The theme ID, defined by Amazon QuickSight, that a custom theme inherits from. All themes initially inherit from a default Amazon QuickSight theme.</p>
115    pub fn set_base_theme_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
116        self.base_theme_id = input;
117        self
118    }
119    /// <p>The theme ID, defined by Amazon QuickSight, that a custom theme inherits from. All themes initially inherit from a default Amazon QuickSight theme.</p>
120    pub fn get_base_theme_id(&self) -> &::std::option::Option<::std::string::String> {
121        &self.base_theme_id
122    }
123    /// <p>A description of the theme version that you're updating Every time that you call <code>UpdateTheme</code>, you create a new version of the theme. Each version of the theme maintains a description of the version in <code>VersionDescription</code>.</p>
124    pub fn version_description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
125        self.version_description = ::std::option::Option::Some(input.into());
126        self
127    }
128    /// <p>A description of the theme version that you're updating Every time that you call <code>UpdateTheme</code>, you create a new version of the theme. Each version of the theme maintains a description of the version in <code>VersionDescription</code>.</p>
129    pub fn set_version_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
130        self.version_description = input;
131        self
132    }
133    /// <p>A description of the theme version that you're updating Every time that you call <code>UpdateTheme</code>, you create a new version of the theme. Each version of the theme maintains a description of the version in <code>VersionDescription</code>.</p>
134    pub fn get_version_description(&self) -> &::std::option::Option<::std::string::String> {
135        &self.version_description
136    }
137    /// <p>The theme configuration, which contains the theme display properties.</p>
138    pub fn configuration(mut self, input: crate::types::ThemeConfiguration) -> Self {
139        self.configuration = ::std::option::Option::Some(input);
140        self
141    }
142    /// <p>The theme configuration, which contains the theme display properties.</p>
143    pub fn set_configuration(mut self, input: ::std::option::Option<crate::types::ThemeConfiguration>) -> Self {
144        self.configuration = input;
145        self
146    }
147    /// <p>The theme configuration, which contains the theme display properties.</p>
148    pub fn get_configuration(&self) -> &::std::option::Option<crate::types::ThemeConfiguration> {
149        &self.configuration
150    }
151    /// Consumes the builder and constructs a [`UpdateThemeInput`](crate::operation::update_theme::UpdateThemeInput).
152    pub fn build(self) -> ::std::result::Result<crate::operation::update_theme::UpdateThemeInput, ::aws_smithy_types::error::operation::BuildError> {
153        ::std::result::Result::Ok(crate::operation::update_theme::UpdateThemeInput {
154            aws_account_id: self.aws_account_id,
155            theme_id: self.theme_id,
156            name: self.name,
157            base_theme_id: self.base_theme_id,
158            version_description: self.version_description,
159            configuration: self.configuration,
160        })
161    }
162}