Skip to main content

aws_sdk_rekognition/types/
_stream_processor_input.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2
3/// <p>Information about the source streaming video.</p>
4#[non_exhaustive]
5#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
6pub struct StreamProcessorInput {
7    /// <p>The Kinesis video stream input stream for the source streaming video.</p>
8    pub kinesis_video_stream: ::std::option::Option<crate::types::KinesisVideoStream>,
9}
10impl StreamProcessorInput {
11    /// <p>The Kinesis video stream input stream for the source streaming video.</p>
12    pub fn kinesis_video_stream(&self) -> ::std::option::Option<&crate::types::KinesisVideoStream> {
13        self.kinesis_video_stream.as_ref()
14    }
15}
16impl StreamProcessorInput {
17    /// Creates a new builder-style object to manufacture [`StreamProcessorInput`](crate::types::StreamProcessorInput).
18    pub fn builder() -> crate::types::builders::StreamProcessorInputBuilder {
19        crate::types::builders::StreamProcessorInputBuilder::default()
20    }
21}
22
23/// A builder for [`StreamProcessorInput`](crate::types::StreamProcessorInput).
24#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
25#[non_exhaustive]
26pub struct StreamProcessorInputBuilder {
27    pub(crate) kinesis_video_stream: ::std::option::Option<crate::types::KinesisVideoStream>,
28}
29impl StreamProcessorInputBuilder {
30    /// <p>The Kinesis video stream input stream for the source streaming video.</p>
31    pub fn kinesis_video_stream(mut self, input: crate::types::KinesisVideoStream) -> Self {
32        self.kinesis_video_stream = ::std::option::Option::Some(input);
33        self
34    }
35    /// <p>The Kinesis video stream input stream for the source streaming video.</p>
36    pub fn set_kinesis_video_stream(mut self, input: ::std::option::Option<crate::types::KinesisVideoStream>) -> Self {
37        self.kinesis_video_stream = input;
38        self
39    }
40    /// <p>The Kinesis video stream input stream for the source streaming video.</p>
41    pub fn get_kinesis_video_stream(&self) -> &::std::option::Option<crate::types::KinesisVideoStream> {
42        &self.kinesis_video_stream
43    }
44    /// Consumes the builder and constructs a [`StreamProcessorInput`](crate::types::StreamProcessorInput).
45    pub fn build(self) -> crate::types::StreamProcessorInput {
46        crate::types::StreamProcessorInput {
47            kinesis_video_stream: self.kinesis_video_stream,
48        }
49    }
50}