aws_sdk_quicksight/operation/update_group/
_update_group_input.rs1#[allow(missing_docs)] #[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct UpdateGroupInput {
6 pub group_name: ::std::option::Option<::std::string::String>,
8 pub description: ::std::option::Option<::std::string::String>,
10 pub aws_account_id: ::std::option::Option<::std::string::String>,
12 pub namespace: ::std::option::Option<::std::string::String>,
14}
15impl UpdateGroupInput {
16 pub fn group_name(&self) -> ::std::option::Option<&str> {
18 self.group_name.as_deref()
19 }
20 pub fn description(&self) -> ::std::option::Option<&str> {
22 self.description.as_deref()
23 }
24 pub fn aws_account_id(&self) -> ::std::option::Option<&str> {
26 self.aws_account_id.as_deref()
27 }
28 pub fn namespace(&self) -> ::std::option::Option<&str> {
30 self.namespace.as_deref()
31 }
32}
33impl UpdateGroupInput {
34 pub fn builder() -> crate::operation::update_group::builders::UpdateGroupInputBuilder {
36 crate::operation::update_group::builders::UpdateGroupInputBuilder::default()
37 }
38}
39
40#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
42#[non_exhaustive]
43pub struct UpdateGroupInputBuilder {
44 pub(crate) group_name: ::std::option::Option<::std::string::String>,
45 pub(crate) description: ::std::option::Option<::std::string::String>,
46 pub(crate) aws_account_id: ::std::option::Option<::std::string::String>,
47 pub(crate) namespace: ::std::option::Option<::std::string::String>,
48}
49impl UpdateGroupInputBuilder {
50 pub fn group_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
53 self.group_name = ::std::option::Option::Some(input.into());
54 self
55 }
56 pub fn set_group_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
58 self.group_name = input;
59 self
60 }
61 pub fn get_group_name(&self) -> &::std::option::Option<::std::string::String> {
63 &self.group_name
64 }
65 pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
67 self.description = ::std::option::Option::Some(input.into());
68 self
69 }
70 pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
72 self.description = input;
73 self
74 }
75 pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
77 &self.description
78 }
79 pub fn aws_account_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
82 self.aws_account_id = ::std::option::Option::Some(input.into());
83 self
84 }
85 pub fn set_aws_account_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
87 self.aws_account_id = input;
88 self
89 }
90 pub fn get_aws_account_id(&self) -> &::std::option::Option<::std::string::String> {
92 &self.aws_account_id
93 }
94 pub fn namespace(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
97 self.namespace = ::std::option::Option::Some(input.into());
98 self
99 }
100 pub fn set_namespace(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
102 self.namespace = input;
103 self
104 }
105 pub fn get_namespace(&self) -> &::std::option::Option<::std::string::String> {
107 &self.namespace
108 }
109 pub fn build(self) -> ::std::result::Result<crate::operation::update_group::UpdateGroupInput, ::aws_smithy_types::error::operation::BuildError> {
111 ::std::result::Result::Ok(crate::operation::update_group::UpdateGroupInput {
112 group_name: self.group_name,
113 description: self.description,
114 aws_account_id: self.aws_account_id,
115 namespace: self.namespace,
116 })
117 }
118}