aws_sdk_mediaconvert/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    ///   - [`category(impl Into<String>)`](crate::operation::create_preset::builders::CreatePresetFluentBuilder::category) / [`set_category(Option<String>)`](crate::operation::create_preset::builders::CreatePresetFluentBuilder::set_category):<br>required: **false**<br>Optional. A category for the preset you are creating.<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>Optional. A description of the preset you are creating.<br>
8    ///   - [`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>The name of the preset you are creating.<br>
9    ///   - [`settings(PresetSettings)`](crate::operation::create_preset::builders::CreatePresetFluentBuilder::settings) / [`set_settings(Option<PresetSettings>)`](crate::operation::create_preset::builders::CreatePresetFluentBuilder::set_settings):<br>required: **true**<br>Settings for preset<br>
10    ///   - [`tags(impl Into<String>, impl Into<String>)`](crate::operation::create_preset::builders::CreatePresetFluentBuilder::tags) / [`set_tags(Option<HashMap::<String, String>>)`](crate::operation::create_preset::builders::CreatePresetFluentBuilder::set_tags):<br>required: **false**<br>The tags that you want to add to the resource. You can tag resources with a key-value pair or with only a key.<br>
11    /// - On success, responds with [`CreatePresetOutput`](crate::operation::create_preset::CreatePresetOutput) with field(s):
12    ///   - [`preset(Option<Preset>)`](crate::operation::create_preset::CreatePresetOutput::preset): A preset is a collection of preconfigured media conversion settings that you want MediaConvert to apply to the output during the conversion process.
13    /// - On failure, responds with [`SdkError<CreatePresetError>`](crate::operation::create_preset::CreatePresetError)
14    pub fn create_preset(&self) -> crate::operation::create_preset::builders::CreatePresetFluentBuilder {
15        crate::operation::create_preset::builders::CreatePresetFluentBuilder::new(self.handle.clone())
16    }
17}