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 DeleteDataMigrationOutput {
    /// <p>The deleted data migration.</p>
    pub data_migration: ::std::option::Option<crate::types::DataMigration>,
    _request_id: Option<String>,
}
impl DeleteDataMigrationOutput {
    /// <p>The deleted data migration.</p>
    pub fn data_migration(&self) -> ::std::option::Option<&crate::types::DataMigration> {
        self.data_migration.as_ref()
    }
}
impl ::aws_types::request_id::RequestId for DeleteDataMigrationOutput {
    fn request_id(&self) -> Option<&str> {
        self._request_id.as_deref()
    }
}
impl DeleteDataMigrationOutput {
    /// Creates a new builder-style object to manufacture [`DeleteDataMigrationOutput`](crate::operation::delete_data_migration::DeleteDataMigrationOutput).
    pub fn builder() -> crate::operation::delete_data_migration::builders::DeleteDataMigrationOutputBuilder {
        crate::operation::delete_data_migration::builders::DeleteDataMigrationOutputBuilder::default()
    }
}

/// A builder for [`DeleteDataMigrationOutput`](crate::operation::delete_data_migration::DeleteDataMigrationOutput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeleteDataMigrationOutputBuilder {
    pub(crate) data_migration: ::std::option::Option<crate::types::DataMigration>,
    _request_id: Option<String>,
}
impl DeleteDataMigrationOutputBuilder {
    /// <p>The deleted data migration.</p>
    pub fn data_migration(mut self, input: crate::types::DataMigration) -> Self {
        self.data_migration = ::std::option::Option::Some(input);
        self
    }
    /// <p>The deleted data migration.</p>
    pub fn set_data_migration(mut self, input: ::std::option::Option<crate::types::DataMigration>) -> Self {
        self.data_migration = input;
        self
    }
    /// <p>The deleted data migration.</p>
    pub fn get_data_migration(&self) -> &::std::option::Option<crate::types::DataMigration> {
        &self.data_migration
    }
    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
        self._request_id = Some(request_id.into());
        self
    }

    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
        self._request_id = request_id;
        self
    }
    /// Consumes the builder and constructs a [`DeleteDataMigrationOutput`](crate::operation::delete_data_migration::DeleteDataMigrationOutput).
    pub fn build(self) -> crate::operation::delete_data_migration::DeleteDataMigrationOutput {
        crate::operation::delete_data_migration::DeleteDataMigrationOutput {
            data_migration: self.data_migration,
            _request_id: self._request_id,
        }
    }
}