aws_sdk_quicksight/operation/update_folder/
_update_folder_input.rs1#[allow(missing_docs)] #[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct UpdateFolderInput {
6 pub aws_account_id: ::std::option::Option<::std::string::String>,
8 pub folder_id: ::std::option::Option<::std::string::String>,
10 pub name: ::std::option::Option<::std::string::String>,
12}
13impl UpdateFolderInput {
14 pub fn aws_account_id(&self) -> ::std::option::Option<&str> {
16 self.aws_account_id.as_deref()
17 }
18 pub fn folder_id(&self) -> ::std::option::Option<&str> {
20 self.folder_id.as_deref()
21 }
22 pub fn name(&self) -> ::std::option::Option<&str> {
24 self.name.as_deref()
25 }
26}
27impl UpdateFolderInput {
28 pub fn builder() -> crate::operation::update_folder::builders::UpdateFolderInputBuilder {
30 crate::operation::update_folder::builders::UpdateFolderInputBuilder::default()
31 }
32}
33
34#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
36#[non_exhaustive]
37pub struct UpdateFolderInputBuilder {
38 pub(crate) aws_account_id: ::std::option::Option<::std::string::String>,
39 pub(crate) folder_id: ::std::option::Option<::std::string::String>,
40 pub(crate) name: ::std::option::Option<::std::string::String>,
41}
42impl UpdateFolderInputBuilder {
43 pub fn aws_account_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
46 self.aws_account_id = ::std::option::Option::Some(input.into());
47 self
48 }
49 pub fn set_aws_account_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
51 self.aws_account_id = input;
52 self
53 }
54 pub fn get_aws_account_id(&self) -> &::std::option::Option<::std::string::String> {
56 &self.aws_account_id
57 }
58 pub fn folder_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
61 self.folder_id = ::std::option::Option::Some(input.into());
62 self
63 }
64 pub fn set_folder_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
66 self.folder_id = input;
67 self
68 }
69 pub fn get_folder_id(&self) -> &::std::option::Option<::std::string::String> {
71 &self.folder_id
72 }
73 pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
76 self.name = ::std::option::Option::Some(input.into());
77 self
78 }
79 pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
81 self.name = input;
82 self
83 }
84 pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
86 &self.name
87 }
88 pub fn build(
90 self,
91 ) -> ::std::result::Result<crate::operation::update_folder::UpdateFolderInput, ::aws_smithy_types::error::operation::BuildError> {
92 ::std::result::Result::Ok(crate::operation::update_folder::UpdateFolderInput {
93 aws_account_id: self.aws_account_id,
94 folder_id: self.folder_id,
95 name: self.name,
96 })
97 }
98}