aws_sdk_quicksight/operation/delete_theme/
_delete_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 DeleteThemeInput {
6    /// <p>The ID of the Amazon Web Services account that contains the theme that you're deleting.</p>
7    pub aws_account_id: ::std::option::Option<::std::string::String>,
8    /// <p>An ID for the theme that you want to delete.</p>
9    pub theme_id: ::std::option::Option<::std::string::String>,
10    /// <p>The version of the theme that you want to delete.</p>
11    /// <p><b>Note:</b> If you don't provide a version number, you're using this call to <code>DeleteTheme</code> to delete all versions of the theme.</p>
12    pub version_number: ::std::option::Option<i64>,
13}
14impl DeleteThemeInput {
15    /// <p>The ID of the Amazon Web Services account that contains the theme that you're deleting.</p>
16    pub fn aws_account_id(&self) -> ::std::option::Option<&str> {
17        self.aws_account_id.as_deref()
18    }
19    /// <p>An ID for the theme that you want to delete.</p>
20    pub fn theme_id(&self) -> ::std::option::Option<&str> {
21        self.theme_id.as_deref()
22    }
23    /// <p>The version of the theme that you want to delete.</p>
24    /// <p><b>Note:</b> If you don't provide a version number, you're using this call to <code>DeleteTheme</code> to delete all versions of the theme.</p>
25    pub fn version_number(&self) -> ::std::option::Option<i64> {
26        self.version_number
27    }
28}
29impl DeleteThemeInput {
30    /// Creates a new builder-style object to manufacture [`DeleteThemeInput`](crate::operation::delete_theme::DeleteThemeInput).
31    pub fn builder() -> crate::operation::delete_theme::builders::DeleteThemeInputBuilder {
32        crate::operation::delete_theme::builders::DeleteThemeInputBuilder::default()
33    }
34}
35
36/// A builder for [`DeleteThemeInput`](crate::operation::delete_theme::DeleteThemeInput).
37#[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    /// <p>The ID of the Amazon Web Services account that contains the theme that you're deleting.</p>
46    /// This field is required.
47    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    /// <p>The ID of the Amazon Web Services account that contains the theme that you're deleting.</p>
52    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    /// <p>The ID of the Amazon Web Services account that contains the theme that you're deleting.</p>
57    pub fn get_aws_account_id(&self) -> &::std::option::Option<::std::string::String> {
58        &self.aws_account_id
59    }
60    /// <p>An ID for the theme that you want to delete.</p>
61    /// This field is required.
62    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    /// <p>An ID for the theme that you want to delete.</p>
67    pub fn set_theme_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
68        self.theme_id = input;
69        self
70    }
71    /// <p>An ID for the theme that you want to delete.</p>
72    pub fn get_theme_id(&self) -> &::std::option::Option<::std::string::String> {
73        &self.theme_id
74    }
75    /// <p>The version of the theme that you want to delete.</p>
76    /// <p><b>Note:</b> If you don't provide a version number, you're using this call to <code>DeleteTheme</code> to delete all versions of the theme.</p>
77    pub fn version_number(mut self, input: i64) -> Self {
78        self.version_number = ::std::option::Option::Some(input);
79        self
80    }
81    /// <p>The version of the theme that you want to delete.</p>
82    /// <p><b>Note:</b> If you don't provide a version number, you're using this call to <code>DeleteTheme</code> to delete all versions of the theme.</p>
83    pub fn set_version_number(mut self, input: ::std::option::Option<i64>) -> Self {
84        self.version_number = input;
85        self
86    }
87    /// <p>The version of the theme that you want to delete.</p>
88    /// <p><b>Note:</b> If you don't provide a version number, you're using this call to <code>DeleteTheme</code> to delete all versions of the theme.</p>
89    pub fn get_version_number(&self) -> &::std::option::Option<i64> {
90        &self.version_number
91    }
92    /// Consumes the builder and constructs a [`DeleteThemeInput`](crate::operation::delete_theme::DeleteThemeInput).
93    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}