aws_sdk_quicksight/operation/delete_theme/
_delete_theme_input.rs1#[allow(missing_docs)] #[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct DeleteThemeInput {
6 pub aws_account_id: ::std::option::Option<::std::string::String>,
8 pub theme_id: ::std::option::Option<::std::string::String>,
10 pub version_number: ::std::option::Option<i64>,
13}
14impl DeleteThemeInput {
15 pub fn aws_account_id(&self) -> ::std::option::Option<&str> {
17 self.aws_account_id.as_deref()
18 }
19 pub fn theme_id(&self) -> ::std::option::Option<&str> {
21 self.theme_id.as_deref()
22 }
23 pub fn version_number(&self) -> ::std::option::Option<i64> {
26 self.version_number
27 }
28}
29impl DeleteThemeInput {
30 pub fn builder() -> crate::operation::delete_theme::builders::DeleteThemeInputBuilder {
32 crate::operation::delete_theme::builders::DeleteThemeInputBuilder::default()
33 }
34}
35
36#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
38#[non_exhaustive]
39pub struct DeleteThemeInputBuilder {
40 pub(crate) aws_account_id: ::std::option::Option<::std::string::String>,
41 pub(crate) theme_id: ::std::option::Option<::std::string::String>,
42 pub(crate) version_number: ::std::option::Option<i64>,
43}
44impl DeleteThemeInputBuilder {
45 pub fn aws_account_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
48 self.aws_account_id = ::std::option::Option::Some(input.into());
49 self
50 }
51 pub fn set_aws_account_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
53 self.aws_account_id = input;
54 self
55 }
56 pub fn get_aws_account_id(&self) -> &::std::option::Option<::std::string::String> {
58 &self.aws_account_id
59 }
60 pub fn theme_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
63 self.theme_id = ::std::option::Option::Some(input.into());
64 self
65 }
66 pub fn set_theme_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
68 self.theme_id = input;
69 self
70 }
71 pub fn get_theme_id(&self) -> &::std::option::Option<::std::string::String> {
73 &self.theme_id
74 }
75 pub fn version_number(mut self, input: i64) -> Self {
78 self.version_number = ::std::option::Option::Some(input);
79 self
80 }
81 pub fn set_version_number(mut self, input: ::std::option::Option<i64>) -> Self {
84 self.version_number = input;
85 self
86 }
87 pub fn get_version_number(&self) -> &::std::option::Option<i64> {
90 &self.version_number
91 }
92 pub fn build(self) -> ::std::result::Result<crate::operation::delete_theme::DeleteThemeInput, ::aws_smithy_types::error::operation::BuildError> {
94 ::std::result::Result::Ok(crate::operation::delete_theme::DeleteThemeInput {
95 aws_account_id: self.aws_account_id,
96 theme_id: self.theme_id,
97 version_number: self.version_number,
98 })
99 }
100}