1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`GetClip`](crate::operation::get_clip::builders::GetClipFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`stream_name(impl Into<String>)`](crate::operation::get_clip::builders::GetClipFluentBuilder::stream_name) / [`set_stream_name(Option<String>)`](crate::operation::get_clip::builders::GetClipFluentBuilder::set_stream_name):<br>required: **false**<br><p>The name of the stream for which to retrieve the media clip. </p>  <p>You must specify either the StreamName or the StreamARN. </p><br>
    ///   - [`stream_arn(impl Into<String>)`](crate::operation::get_clip::builders::GetClipFluentBuilder::stream_arn) / [`set_stream_arn(Option<String>)`](crate::operation::get_clip::builders::GetClipFluentBuilder::set_stream_arn):<br>required: **false**<br><p>The Amazon Resource Name (ARN) of the stream for which to retrieve the media clip. </p>  <p>You must specify either the StreamName or the StreamARN. </p><br>
    ///   - [`clip_fragment_selector(ClipFragmentSelector)`](crate::operation::get_clip::builders::GetClipFluentBuilder::clip_fragment_selector) / [`set_clip_fragment_selector(Option<ClipFragmentSelector>)`](crate::operation::get_clip::builders::GetClipFluentBuilder::set_clip_fragment_selector):<br>required: **true**<br><p>The time range of the requested clip and the source of the timestamps.</p><br>
    /// - On success, responds with [`GetClipOutput`](crate::operation::get_clip::GetClipOutput) with field(s):
    ///   - [`content_type(Option<String>)`](crate::operation::get_clip::GetClipOutput::content_type): <p>The content type of the media in the requested clip.</p>
    ///   - [`payload(ByteStream)`](crate::operation::get_clip::GetClipOutput::payload): <p>Traditional MP4 file that contains the media clip from the specified video stream. The output will contain the first 100 MB or the first 200 fragments from the specified start timestamp. For more information, see <a href="https://docs.aws.amazon.com/kinesisvideostreams/latest/dg/limits.html">Kinesis Video Streams Limits</a>. </p>
    /// - On failure, responds with [`SdkError<GetClipError>`](crate::operation::get_clip::GetClipError)
    pub fn get_clip(&self) -> crate::operation::get_clip::builders::GetClipFluentBuilder {
        crate::operation::get_clip::builders::GetClipFluentBuilder::new(self.handle.clone())
    }
}