aws-sdk-mediaconvert 1.70.0

AWS SDK for AWS Elemental MediaConvert
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DeletePresetInput {
    /// The name of the preset to be deleted.
    pub name: ::std::option::Option<::std::string::String>,
}
impl DeletePresetInput {
    /// The name of the preset to be deleted.
    pub fn name(&self) -> ::std::option::Option<&str> {
        self.name.as_deref()
    }
}
impl DeletePresetInput {
    /// Creates a new builder-style object to manufacture [`DeletePresetInput`](crate::operation::delete_preset::DeletePresetInput).
    pub fn builder() -> crate::operation::delete_preset::builders::DeletePresetInputBuilder {
        crate::operation::delete_preset::builders::DeletePresetInputBuilder::default()
    }
}

/// A builder for [`DeletePresetInput`](crate::operation::delete_preset::DeletePresetInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeletePresetInputBuilder {
    pub(crate) name: ::std::option::Option<::std::string::String>,
}
impl DeletePresetInputBuilder {
    /// The name of the preset to be deleted.
    /// This field is required.
    pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.name = ::std::option::Option::Some(input.into());
        self
    }
    /// The name of the preset to be deleted.
    pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.name = input;
        self
    }
    /// The name of the preset to be deleted.
    pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.name
    }
    /// Consumes the builder and constructs a [`DeletePresetInput`](crate::operation::delete_preset::DeletePresetInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::delete_preset::DeletePresetInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::delete_preset::DeletePresetInput { name: self.name })
    }
}