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
49
50
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// <p>Source configuration for a specified media capture pipeline.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct SourceConfiguration {
    /// <p>The selected video streams to capture for a specified media capture pipeline. The number of video streams can't exceed 25.</p>
    pub selected_video_streams: ::std::option::Option<crate::types::SelectedVideoStreams>,
}
impl SourceConfiguration {
    /// <p>The selected video streams to capture for a specified media capture pipeline. The number of video streams can't exceed 25.</p>
    pub fn selected_video_streams(&self) -> ::std::option::Option<&crate::types::SelectedVideoStreams> {
        self.selected_video_streams.as_ref()
    }
}
impl SourceConfiguration {
    /// Creates a new builder-style object to manufacture [`SourceConfiguration`](crate::types::SourceConfiguration).
    pub fn builder() -> crate::types::builders::SourceConfigurationBuilder {
        crate::types::builders::SourceConfigurationBuilder::default()
    }
}

/// A builder for [`SourceConfiguration`](crate::types::SourceConfiguration).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct SourceConfigurationBuilder {
    pub(crate) selected_video_streams: ::std::option::Option<crate::types::SelectedVideoStreams>,
}
impl SourceConfigurationBuilder {
    /// <p>The selected video streams to capture for a specified media capture pipeline. The number of video streams can't exceed 25.</p>
    pub fn selected_video_streams(mut self, input: crate::types::SelectedVideoStreams) -> Self {
        self.selected_video_streams = ::std::option::Option::Some(input);
        self
    }
    /// <p>The selected video streams to capture for a specified media capture pipeline. The number of video streams can't exceed 25.</p>
    pub fn set_selected_video_streams(mut self, input: ::std::option::Option<crate::types::SelectedVideoStreams>) -> Self {
        self.selected_video_streams = input;
        self
    }
    /// <p>The selected video streams to capture for a specified media capture pipeline. The number of video streams can't exceed 25.</p>
    pub fn get_selected_video_streams(&self) -> &::std::option::Option<crate::types::SelectedVideoStreams> {
        &self.selected_video_streams
    }
    /// Consumes the builder and constructs a [`SourceConfiguration`](crate::types::SourceConfiguration).
    pub fn build(self) -> crate::types::SourceConfiguration {
        crate::types::SourceConfiguration {
            selected_video_streams: self.selected_video_streams,
        }
    }
}