aws_sdk_elastictranscoder/client/
create_preset.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`CreatePreset`](crate::operation::create_preset::builders::CreatePresetFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`name(impl Into<String>)`](crate::operation::create_preset::builders::CreatePresetFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::create_preset::builders::CreatePresetFluentBuilder::set_name):<br>required: **true**<br><p>The name of the preset. We recommend that the name be unique within the AWS account, but uniqueness is not enforced.</p><br>
7    ///   - [`description(impl Into<String>)`](crate::operation::create_preset::builders::CreatePresetFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::create_preset::builders::CreatePresetFluentBuilder::set_description):<br>required: **false**<br><p>A description of the preset.</p><br>
8    ///   - [`container(impl Into<String>)`](crate::operation::create_preset::builders::CreatePresetFluentBuilder::container) / [`set_container(Option<String>)`](crate::operation::create_preset::builders::CreatePresetFluentBuilder::set_container):<br>required: **true**<br><p>The container type for the output file. Valid values include <code>flac</code>, <code>flv</code>, <code>fmp4</code>, <code>gif</code>, <code>mp3</code>, <code>mp4</code>, <code>mpg</code>, <code>mxf</code>, <code>oga</code>, <code>ogg</code>, <code>ts</code>, and <code>webm</code>.</p><br>
9    ///   - [`video(VideoParameters)`](crate::operation::create_preset::builders::CreatePresetFluentBuilder::video) / [`set_video(Option<VideoParameters>)`](crate::operation::create_preset::builders::CreatePresetFluentBuilder::set_video):<br>required: **false**<br><p>A section of the request body that specifies the video parameters.</p><br>
10    ///   - [`audio(AudioParameters)`](crate::operation::create_preset::builders::CreatePresetFluentBuilder::audio) / [`set_audio(Option<AudioParameters>)`](crate::operation::create_preset::builders::CreatePresetFluentBuilder::set_audio):<br>required: **false**<br><p>A section of the request body that specifies the audio parameters.</p><br>
11    ///   - [`thumbnails(Thumbnails)`](crate::operation::create_preset::builders::CreatePresetFluentBuilder::thumbnails) / [`set_thumbnails(Option<Thumbnails>)`](crate::operation::create_preset::builders::CreatePresetFluentBuilder::set_thumbnails):<br>required: **false**<br><p>A section of the request body that specifies the thumbnail parameters, if any.</p><br>
12    /// - On success, responds with [`CreatePresetOutput`](crate::operation::create_preset::CreatePresetOutput) with field(s):
13    ///   - [`preset(Option<Preset>)`](crate::operation::create_preset::CreatePresetOutput::preset): <p>A section of the response body that provides information about the preset that is created.</p>
14    ///   - [`warning(Option<String>)`](crate::operation::create_preset::CreatePresetOutput::warning): <p>If the preset settings don't comply with the standards for the video codec but Elastic Transcoder created the preset, this message explains the reason the preset settings don't meet the standard. Elastic Transcoder created the preset because the settings might produce acceptable output.</p>
15    /// - On failure, responds with [`SdkError<CreatePresetError>`](crate::operation::create_preset::CreatePresetError)
16    pub fn create_preset(&self) -> crate::operation::create_preset::builders::CreatePresetFluentBuilder {
17        crate::operation::create_preset::builders::CreatePresetFluentBuilder::new(self.handle.clone())
18    }
19}