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.

/// <p></p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DeleteReplicationConfigInput {
    /// <p>The replication config to delete.</p>
    pub replication_config_arn: ::std::option::Option<::std::string::String>,
}
impl DeleteReplicationConfigInput {
    /// <p>The replication config to delete.</p>
    pub fn replication_config_arn(&self) -> ::std::option::Option<&str> {
        self.replication_config_arn.as_deref()
    }
}
impl DeleteReplicationConfigInput {
    /// Creates a new builder-style object to manufacture [`DeleteReplicationConfigInput`](crate::operation::delete_replication_config::DeleteReplicationConfigInput).
    pub fn builder() -> crate::operation::delete_replication_config::builders::DeleteReplicationConfigInputBuilder {
        crate::operation::delete_replication_config::builders::DeleteReplicationConfigInputBuilder::default()
    }
}

/// A builder for [`DeleteReplicationConfigInput`](crate::operation::delete_replication_config::DeleteReplicationConfigInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeleteReplicationConfigInputBuilder {
    pub(crate) replication_config_arn: ::std::option::Option<::std::string::String>,
}
impl DeleteReplicationConfigInputBuilder {
    /// <p>The replication config to delete.</p>
    /// This field is required.
    pub fn replication_config_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.replication_config_arn = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The replication config to delete.</p>
    pub fn set_replication_config_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.replication_config_arn = input;
        self
    }
    /// <p>The replication config to delete.</p>
    pub fn get_replication_config_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.replication_config_arn
    }
    /// Consumes the builder and constructs a [`DeleteReplicationConfigInput`](crate::operation::delete_replication_config::DeleteReplicationConfigInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<
        crate::operation::delete_replication_config::DeleteReplicationConfigInput,
        ::aws_smithy_types::error::operation::BuildError,
    > {
        ::std::result::Result::Ok(crate::operation::delete_replication_config::DeleteReplicationConfigInput {
            replication_config_arn: self.replication_config_arn,
        })
    }
}