aws-sdk-translate 0.27.0

AWS SDK for Amazon Translate
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 DeleteTerminologyInput {
    /// <p>The name of the custom terminology being deleted. </p>
    #[doc(hidden)]
    pub name: std::option::Option<std::string::String>,
}
impl DeleteTerminologyInput {
    /// <p>The name of the custom terminology being deleted. </p>
    pub fn name(&self) -> std::option::Option<&str> {
        self.name.as_deref()
    }
}
impl DeleteTerminologyInput {
    /// Creates a new builder-style object to manufacture [`DeleteTerminologyInput`](crate::operation::delete_terminology::DeleteTerminologyInput).
    pub fn builder() -> crate::operation::delete_terminology::builders::DeleteTerminologyInputBuilder
    {
        crate::operation::delete_terminology::builders::DeleteTerminologyInputBuilder::default()
    }
}

/// A builder for [`DeleteTerminologyInput`](crate::operation::delete_terminology::DeleteTerminologyInput).
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct DeleteTerminologyInputBuilder {
    pub(crate) name: std::option::Option<std::string::String>,
}
impl DeleteTerminologyInputBuilder {
    /// <p>The name of the custom terminology being deleted. </p>
    pub fn name(mut self, input: impl Into<std::string::String>) -> Self {
        self.name = Some(input.into());
        self
    }
    /// <p>The name of the custom terminology being deleted. </p>
    pub fn set_name(mut self, input: std::option::Option<std::string::String>) -> Self {
        self.name = input;
        self
    }
    /// Consumes the builder and constructs a [`DeleteTerminologyInput`](crate::operation::delete_terminology::DeleteTerminologyInput).
    pub fn build(
        self,
    ) -> Result<
        crate::operation::delete_terminology::DeleteTerminologyInput,
        aws_smithy_http::operation::error::BuildError,
    > {
        Ok(crate::operation::delete_terminology::DeleteTerminologyInput { name: self.name })
    }
}