aws-sdk-databasemigration 1.112.0

AWS SDK for AWS Database Migration Service
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 DeleteMigrationProjectInput {
    /// <p>The name or Amazon Resource Name (ARN) of the migration project to delete.</p>
    pub migration_project_identifier: ::std::option::Option<::std::string::String>,
}
impl DeleteMigrationProjectInput {
    /// <p>The name or Amazon Resource Name (ARN) of the migration project to delete.</p>
    pub fn migration_project_identifier(&self) -> ::std::option::Option<&str> {
        self.migration_project_identifier.as_deref()
    }
}
impl DeleteMigrationProjectInput {
    /// Creates a new builder-style object to manufacture [`DeleteMigrationProjectInput`](crate::operation::delete_migration_project::DeleteMigrationProjectInput).
    pub fn builder() -> crate::operation::delete_migration_project::builders::DeleteMigrationProjectInputBuilder {
        crate::operation::delete_migration_project::builders::DeleteMigrationProjectInputBuilder::default()
    }
}

/// A builder for [`DeleteMigrationProjectInput`](crate::operation::delete_migration_project::DeleteMigrationProjectInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeleteMigrationProjectInputBuilder {
    pub(crate) migration_project_identifier: ::std::option::Option<::std::string::String>,
}
impl DeleteMigrationProjectInputBuilder {
    /// <p>The name or Amazon Resource Name (ARN) of the migration project to delete.</p>
    /// This field is required.
    pub fn migration_project_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.migration_project_identifier = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The name or Amazon Resource Name (ARN) of the migration project to delete.</p>
    pub fn set_migration_project_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.migration_project_identifier = input;
        self
    }
    /// <p>The name or Amazon Resource Name (ARN) of the migration project to delete.</p>
    pub fn get_migration_project_identifier(&self) -> &::std::option::Option<::std::string::String> {
        &self.migration_project_identifier
    }
    /// Consumes the builder and constructs a [`DeleteMigrationProjectInput`](crate::operation::delete_migration_project::DeleteMigrationProjectInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<
        crate::operation::delete_migration_project::DeleteMigrationProjectInput,
        ::aws_smithy_types::error::operation::BuildError,
    > {
        ::std::result::Result::Ok(crate::operation::delete_migration_project::DeleteMigrationProjectInput {
            migration_project_identifier: self.migration_project_identifier,
        })
    }
}