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>Object specifying the stream attribute on which to filter.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct StreamFilters {
    /// <p>The stream’s health.</p>
    pub health: ::std::option::Option<crate::types::StreamHealth>,
}
impl StreamFilters {
    /// <p>The stream’s health.</p>
    pub fn health(&self) -> ::std::option::Option<&crate::types::StreamHealth> {
        self.health.as_ref()
    }
}
impl StreamFilters {
    /// Creates a new builder-style object to manufacture [`StreamFilters`](crate::types::StreamFilters).
    pub fn builder() -> crate::types::builders::StreamFiltersBuilder {
        crate::types::builders::StreamFiltersBuilder::default()
    }
}

/// A builder for [`StreamFilters`](crate::types::StreamFilters).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct StreamFiltersBuilder {
    pub(crate) health: ::std::option::Option<crate::types::StreamHealth>,
}
impl StreamFiltersBuilder {
    /// <p>The stream’s health.</p>
    pub fn health(mut self, input: crate::types::StreamHealth) -> Self {
        self.health = ::std::option::Option::Some(input);
        self
    }
    /// <p>The stream’s health.</p>
    pub fn set_health(mut self, input: ::std::option::Option<crate::types::StreamHealth>) -> Self {
        self.health = input;
        self
    }
    /// <p>The stream’s health.</p>
    pub fn get_health(&self) -> &::std::option::Option<crate::types::StreamHealth> {
        &self.health
    }
    /// Consumes the builder and constructs a [`StreamFilters`](crate::types::StreamFilters).
    pub fn build(self) -> crate::types::StreamFilters {
        crate::types::StreamFilters { health: self.health }
    }
}