aws-sdk-lexmodelbuilding 1.102.0

AWS SDK for Amazon Lex Model Building Service
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[deprecated(note = "Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.", since = "2025-09-08")]
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetMigrationInput {
    /// <p>The unique identifier of the migration to view. The <code>migrationID</code> is returned by the operation.</p>
    pub migration_id: ::std::option::Option<::std::string::String>,
}
impl GetMigrationInput {
    /// <p>The unique identifier of the migration to view. The <code>migrationID</code> is returned by the operation.</p>
    pub fn migration_id(&self) -> ::std::option::Option<&str> {
        self.migration_id.as_deref()
    }
}
impl GetMigrationInput {
    /// Creates a new builder-style object to manufacture [`GetMigrationInput`](crate::operation::get_migration::GetMigrationInput).
    pub fn builder() -> crate::operation::get_migration::builders::GetMigrationInputBuilder {
        crate::operation::get_migration::builders::GetMigrationInputBuilder::default()
    }
}

/// A builder for [`GetMigrationInput`](crate::operation::get_migration::GetMigrationInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetMigrationInputBuilder {
    pub(crate) migration_id: ::std::option::Option<::std::string::String>,
}
impl GetMigrationInputBuilder {
    /// <p>The unique identifier of the migration to view. The <code>migrationID</code> is returned by the operation.</p>
    /// This field is required.
    pub fn migration_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.migration_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The unique identifier of the migration to view. The <code>migrationID</code> is returned by the operation.</p>
    pub fn set_migration_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.migration_id = input;
        self
    }
    /// <p>The unique identifier of the migration to view. The <code>migrationID</code> is returned by the operation.</p>
    pub fn get_migration_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.migration_id
    }
    /// Consumes the builder and constructs a [`GetMigrationInput`](crate::operation::get_migration::GetMigrationInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::get_migration::GetMigrationInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::get_migration::GetMigrationInput {
            migration_id: self.migration_id,
        })
    }
}