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 GetParallelDataInput {
    /// <p>The name of the parallel data resource that is being retrieved.</p>
    #[doc(hidden)]
    pub name: std::option::Option<std::string::String>,
}
impl GetParallelDataInput {
    /// <p>The name of the parallel data resource that is being retrieved.</p>
    pub fn name(&self) -> std::option::Option<&str> {
        self.name.as_deref()
    }
}
impl GetParallelDataInput {
    /// Creates a new builder-style object to manufacture [`GetParallelDataInput`](crate::operation::get_parallel_data::GetParallelDataInput).
    pub fn builder() -> crate::operation::get_parallel_data::builders::GetParallelDataInputBuilder {
        crate::operation::get_parallel_data::builders::GetParallelDataInputBuilder::default()
    }
}

/// A builder for [`GetParallelDataInput`](crate::operation::get_parallel_data::GetParallelDataInput).
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct GetParallelDataInputBuilder {
    pub(crate) name: std::option::Option<std::string::String>,
}
impl GetParallelDataInputBuilder {
    /// <p>The name of the parallel data resource that is being retrieved.</p>
    pub fn name(mut self, input: impl Into<std::string::String>) -> Self {
        self.name = Some(input.into());
        self
    }
    /// <p>The name of the parallel data resource that is being retrieved.</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 [`GetParallelDataInput`](crate::operation::get_parallel_data::GetParallelDataInput).
    pub fn build(
        self,
    ) -> Result<
        crate::operation::get_parallel_data::GetParallelDataInput,
        aws_smithy_http::operation::error::BuildError,
    > {
        Ok(crate::operation::get_parallel_data::GetParallelDataInput { name: self.name })
    }
}