aws_sdk_quicksight/operation/describe_group/
_describe_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 DescribeGroupInput {
6    /// <p>The name of the group that you want to describe.</p>
7    pub group_name: ::std::option::Option<::std::string::String>,
8    /// <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 Quick Sight account.</p>
9    pub aws_account_id: ::std::option::Option<::std::string::String>,
10    /// <p>The namespace of the group that you want described.</p>
11    pub namespace: ::std::option::Option<::std::string::String>,
12}
13impl DescribeGroupInput {
14    /// <p>The name of the group that you want to describe.</p>
15    pub fn group_name(&self) -> ::std::option::Option<&str> {
16        self.group_name.as_deref()
17    }
18    /// <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 Quick Sight account.</p>
19    pub fn aws_account_id(&self) -> ::std::option::Option<&str> {
20        self.aws_account_id.as_deref()
21    }
22    /// <p>The namespace of the group that you want described.</p>
23    pub fn namespace(&self) -> ::std::option::Option<&str> {
24        self.namespace.as_deref()
25    }
26}
27impl DescribeGroupInput {
28    /// Creates a new builder-style object to manufacture [`DescribeGroupInput`](crate::operation::describe_group::DescribeGroupInput).
29    pub fn builder() -> crate::operation::describe_group::builders::DescribeGroupInputBuilder {
30        crate::operation::describe_group::builders::DescribeGroupInputBuilder::default()
31    }
32}
33
34/// A builder for [`DescribeGroupInput`](crate::operation::describe_group::DescribeGroupInput).
35#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
36#[non_exhaustive]
37pub struct DescribeGroupInputBuilder {
38    pub(crate) group_name: ::std::option::Option<::std::string::String>,
39    pub(crate) aws_account_id: ::std::option::Option<::std::string::String>,
40    pub(crate) namespace: ::std::option::Option<::std::string::String>,
41}
42impl DescribeGroupInputBuilder {
43    /// <p>The name of the group that you want to describe.</p>
44    /// This field is required.
45    pub fn group_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
46        self.group_name = ::std::option::Option::Some(input.into());
47        self
48    }
49    /// <p>The name of the group that you want to describe.</p>
50    pub fn set_group_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
51        self.group_name = input;
52        self
53    }
54    /// <p>The name of the group that you want to describe.</p>
55    pub fn get_group_name(&self) -> &::std::option::Option<::std::string::String> {
56        &self.group_name
57    }
58    /// <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 Quick Sight account.</p>
59    /// This field is required.
60    pub fn aws_account_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
61        self.aws_account_id = ::std::option::Option::Some(input.into());
62        self
63    }
64    /// <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 Quick Sight account.</p>
65    pub fn set_aws_account_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
66        self.aws_account_id = input;
67        self
68    }
69    /// <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 Quick Sight account.</p>
70    pub fn get_aws_account_id(&self) -> &::std::option::Option<::std::string::String> {
71        &self.aws_account_id
72    }
73    /// <p>The namespace of the group that you want described.</p>
74    /// This field is required.
75    pub fn namespace(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
76        self.namespace = ::std::option::Option::Some(input.into());
77        self
78    }
79    /// <p>The namespace of the group that you want described.</p>
80    pub fn set_namespace(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
81        self.namespace = input;
82        self
83    }
84    /// <p>The namespace of the group that you want described.</p>
85    pub fn get_namespace(&self) -> &::std::option::Option<::std::string::String> {
86        &self.namespace
87    }
88    /// Consumes the builder and constructs a [`DescribeGroupInput`](crate::operation::describe_group::DescribeGroupInput).
89    pub fn build(
90        self,
91    ) -> ::std::result::Result<crate::operation::describe_group::DescribeGroupInput, ::aws_smithy_types::error::operation::BuildError> {
92        ::std::result::Result::Ok(crate::operation::describe_group::DescribeGroupInput {
93            group_name: self.group_name,
94            aws_account_id: self.aws_account_id,
95            namespace: self.namespace,
96        })
97    }
98}