1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// <p>Summary of the details of a <code>ChannelModerator</code>.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct ChannelModeratorSummary {
    /// <p>The data for a moderator.</p>
    pub moderator: ::std::option::Option<crate::types::Identity>,
}
impl ChannelModeratorSummary {
    /// <p>The data for a moderator.</p>
    pub fn moderator(&self) -> ::std::option::Option<&crate::types::Identity> {
        self.moderator.as_ref()
    }
}
impl ChannelModeratorSummary {
    /// Creates a new builder-style object to manufacture [`ChannelModeratorSummary`](crate::types::ChannelModeratorSummary).
    pub fn builder() -> crate::types::builders::ChannelModeratorSummaryBuilder {
        crate::types::builders::ChannelModeratorSummaryBuilder::default()
    }
}

/// A builder for [`ChannelModeratorSummary`](crate::types::ChannelModeratorSummary).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct ChannelModeratorSummaryBuilder {
    pub(crate) moderator: ::std::option::Option<crate::types::Identity>,
}
impl ChannelModeratorSummaryBuilder {
    /// <p>The data for a moderator.</p>
    pub fn moderator(mut self, input: crate::types::Identity) -> Self {
        self.moderator = ::std::option::Option::Some(input);
        self
    }
    /// <p>The data for a moderator.</p>
    pub fn set_moderator(mut self, input: ::std::option::Option<crate::types::Identity>) -> Self {
        self.moderator = input;
        self
    }
    /// <p>The data for a moderator.</p>
    pub fn get_moderator(&self) -> &::std::option::Option<crate::types::Identity> {
        &self.moderator
    }
    /// Consumes the builder and constructs a [`ChannelModeratorSummary`](crate::types::ChannelModeratorSummary).
    pub fn build(self) -> crate::types::ChannelModeratorSummary {
        crate::types::ChannelModeratorSummary { moderator: self.moderator }
    }
}