aws_sdk_qbusiness/types/
_group_summary.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2
3/// <p>Summary information for groups.</p>
4#[non_exhaustive]
5#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
6pub struct GroupSummary {
7    /// <p>The name of the group the summary information is for.</p>
8    pub group_name: ::std::option::Option<::std::string::String>,
9}
10impl GroupSummary {
11    /// <p>The name of the group the summary information is for.</p>
12    pub fn group_name(&self) -> ::std::option::Option<&str> {
13        self.group_name.as_deref()
14    }
15}
16impl GroupSummary {
17    /// Creates a new builder-style object to manufacture [`GroupSummary`](crate::types::GroupSummary).
18    pub fn builder() -> crate::types::builders::GroupSummaryBuilder {
19        crate::types::builders::GroupSummaryBuilder::default()
20    }
21}
22
23/// A builder for [`GroupSummary`](crate::types::GroupSummary).
24#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
25#[non_exhaustive]
26pub struct GroupSummaryBuilder {
27    pub(crate) group_name: ::std::option::Option<::std::string::String>,
28}
29impl GroupSummaryBuilder {
30    /// <p>The name of the group the summary information is for.</p>
31    pub fn group_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
32        self.group_name = ::std::option::Option::Some(input.into());
33        self
34    }
35    /// <p>The name of the group the summary information is for.</p>
36    pub fn set_group_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
37        self.group_name = input;
38        self
39    }
40    /// <p>The name of the group the summary information is for.</p>
41    pub fn get_group_name(&self) -> &::std::option::Option<::std::string::String> {
42        &self.group_name
43    }
44    /// Consumes the builder and constructs a [`GroupSummary`](crate::types::GroupSummary).
45    pub fn build(self) -> crate::types::GroupSummary {
46        crate::types::GroupSummary { group_name: self.group_name }
47    }
48}