aws-sdk-lexmodelsv2 1.110.0

AWS SDK for Amazon Lex Model Building V2
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 DeleteExportInput {
    /// <p>The unique identifier of the export to delete.</p>
    pub export_id: ::std::option::Option<::std::string::String>,
}
impl DeleteExportInput {
    /// <p>The unique identifier of the export to delete.</p>
    pub fn export_id(&self) -> ::std::option::Option<&str> {
        self.export_id.as_deref()
    }
}
impl DeleteExportInput {
    /// Creates a new builder-style object to manufacture [`DeleteExportInput`](crate::operation::delete_export::DeleteExportInput).
    pub fn builder() -> crate::operation::delete_export::builders::DeleteExportInputBuilder {
        crate::operation::delete_export::builders::DeleteExportInputBuilder::default()
    }
}

/// A builder for [`DeleteExportInput`](crate::operation::delete_export::DeleteExportInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeleteExportInputBuilder {
    pub(crate) export_id: ::std::option::Option<::std::string::String>,
}
impl DeleteExportInputBuilder {
    /// <p>The unique identifier of the export to delete.</p>
    /// This field is required.
    pub fn export_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.export_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The unique identifier of the export to delete.</p>
    pub fn set_export_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.export_id = input;
        self
    }
    /// <p>The unique identifier of the export to delete.</p>
    pub fn get_export_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.export_id
    }
    /// Consumes the builder and constructs a [`DeleteExportInput`](crate::operation::delete_export::DeleteExportInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::delete_export::DeleteExportInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::delete_export::DeleteExportInput { export_id: self.export_id })
    }
}