aws_sdk_quicksight/operation/update_group/
_update_group_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 UpdateGroupInput {
6    /// <p>The name of the group that you want to update.</p>
7    pub group_name: ::std::option::Option<::std::string::String>,
8    /// <p>The description for the group that you want to update.</p>
9    pub description: ::std::option::Option<::std::string::String>,
10    /// <p>The ID for the Amazon Web Services account that the group is in. Currently, you use the ID for the Amazon Web Services account that contains your Amazon QuickSight account.</p>
11    pub aws_account_id: ::std::option::Option<::std::string::String>,
12    /// <p>The namespace of the group that you want to update.</p>
13    pub namespace: ::std::option::Option<::std::string::String>,
14}
15impl UpdateGroupInput {
16    /// <p>The name of the group that you want to update.</p>
17    pub fn group_name(&self) -> ::std::option::Option<&str> {
18        self.group_name.as_deref()
19    }
20    /// <p>The description for the group that you want to update.</p>
21    pub fn description(&self) -> ::std::option::Option<&str> {
22        self.description.as_deref()
23    }
24    /// <p>The ID for the Amazon Web Services account that the group is in. Currently, you use the ID for the Amazon Web Services account that contains your Amazon QuickSight account.</p>
25    pub fn aws_account_id(&self) -> ::std::option::Option<&str> {
26        self.aws_account_id.as_deref()
27    }
28    /// <p>The namespace of the group that you want to update.</p>
29    pub fn namespace(&self) -> ::std::option::Option<&str> {
30        self.namespace.as_deref()
31    }
32}
33impl UpdateGroupInput {
34    /// Creates a new builder-style object to manufacture [`UpdateGroupInput`](crate::operation::update_group::UpdateGroupInput).
35    pub fn builder() -> crate::operation::update_group::builders::UpdateGroupInputBuilder {
36        crate::operation::update_group::builders::UpdateGroupInputBuilder::default()
37    }
38}
39
40/// A builder for [`UpdateGroupInput`](crate::operation::update_group::UpdateGroupInput).
41#[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    /// <p>The name of the group that you want to update.</p>
51    /// This field is required.
52    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    /// <p>The name of the group that you want to update.</p>
57    pub fn set_group_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
58        self.group_name = input;
59        self
60    }
61    /// <p>The name of the group that you want to update.</p>
62    pub fn get_group_name(&self) -> &::std::option::Option<::std::string::String> {
63        &self.group_name
64    }
65    /// <p>The description for the group that you want to update.</p>
66    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    /// <p>The description for the group that you want to update.</p>
71    pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
72        self.description = input;
73        self
74    }
75    /// <p>The description for the group that you want to update.</p>
76    pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
77        &self.description
78    }
79    /// <p>The ID for the Amazon Web Services account that the group is in. Currently, you use the ID for the Amazon Web Services account that contains your Amazon QuickSight account.</p>
80    /// This field is required.
81    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    /// <p>The ID for the Amazon Web Services account that the group is in. Currently, you use the ID for the Amazon Web Services account that contains your Amazon QuickSight account.</p>
86    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    /// <p>The ID for the Amazon Web Services account that the group is in. Currently, you use the ID for the Amazon Web Services account that contains your Amazon QuickSight account.</p>
91    pub fn get_aws_account_id(&self) -> &::std::option::Option<::std::string::String> {
92        &self.aws_account_id
93    }
94    /// <p>The namespace of the group that you want to update.</p>
95    /// This field is required.
96    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    /// <p>The namespace of the group that you want to update.</p>
101    pub fn set_namespace(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
102        self.namespace = input;
103        self
104    }
105    /// <p>The namespace of the group that you want to update.</p>
106    pub fn get_namespace(&self) -> &::std::option::Option<::std::string::String> {
107        &self.namespace
108    }
109    /// Consumes the builder and constructs a [`UpdateGroupInput`](crate::operation::update_group::UpdateGroupInput).
110    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}