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>Information about the source streaming video. </p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct StreamProcessorInput {
    /// <p>The Kinesis video stream input stream for the source streaming video.</p>
    pub kinesis_video_stream: ::std::option::Option<crate::types::KinesisVideoStream>,
}
impl StreamProcessorInput {
    /// <p>The Kinesis video stream input stream for the source streaming video.</p>
    pub fn kinesis_video_stream(&self) -> ::std::option::Option<&crate::types::KinesisVideoStream> {
        self.kinesis_video_stream.as_ref()
    }
}
impl StreamProcessorInput {
    /// Creates a new builder-style object to manufacture [`StreamProcessorInput`](crate::types::StreamProcessorInput).
    pub fn builder() -> crate::types::builders::StreamProcessorInputBuilder {
        crate::types::builders::StreamProcessorInputBuilder::default()
    }
}

/// A builder for [`StreamProcessorInput`](crate::types::StreamProcessorInput).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct StreamProcessorInputBuilder {
    pub(crate) kinesis_video_stream: ::std::option::Option<crate::types::KinesisVideoStream>,
}
impl StreamProcessorInputBuilder {
    /// <p>The Kinesis video stream input stream for the source streaming video.</p>
    pub fn kinesis_video_stream(mut self, input: crate::types::KinesisVideoStream) -> Self {
        self.kinesis_video_stream = ::std::option::Option::Some(input);
        self
    }
    /// <p>The Kinesis video stream input stream for the source streaming video.</p>
    pub fn set_kinesis_video_stream(mut self, input: ::std::option::Option<crate::types::KinesisVideoStream>) -> Self {
        self.kinesis_video_stream = input;
        self
    }
    /// <p>The Kinesis video stream input stream for the source streaming video.</p>
    pub fn get_kinesis_video_stream(&self) -> &::std::option::Option<crate::types::KinesisVideoStream> {
        &self.kinesis_video_stream
    }
    /// Consumes the builder and constructs a [`StreamProcessorInput`](crate::types::StreamProcessorInput).
    pub fn build(self) -> crate::types::StreamProcessorInput {
        crate::types::StreamProcessorInput {
            kinesis_video_stream: self.kinesis_video_stream,
        }
    }
}