aws_sdk_databasemigration/operation/modify_replication_config/
builders.rspub use crate::operation::modify_replication_config::_modify_replication_config_output::ModifyReplicationConfigOutputBuilder;
pub use crate::operation::modify_replication_config::_modify_replication_config_input::ModifyReplicationConfigInputBuilder;
impl crate::operation::modify_replication_config::builders::ModifyReplicationConfigInputBuilder {
pub async fn send_with(
self,
client: &crate::Client,
) -> ::std::result::Result<
crate::operation::modify_replication_config::ModifyReplicationConfigOutput,
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::modify_replication_config::ModifyReplicationConfigError,
::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
>,
> {
let mut fluent_builder = client.modify_replication_config();
fluent_builder.inner = self;
fluent_builder.send().await
}
}
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
pub struct ModifyReplicationConfigFluentBuilder {
handle: ::std::sync::Arc<crate::client::Handle>,
inner: crate::operation::modify_replication_config::builders::ModifyReplicationConfigInputBuilder,
config_override: ::std::option::Option<crate::config::Builder>,
}
impl
crate::client::customize::internal::CustomizableSend<
crate::operation::modify_replication_config::ModifyReplicationConfigOutput,
crate::operation::modify_replication_config::ModifyReplicationConfigError,
> for ModifyReplicationConfigFluentBuilder
{
fn send(
self,
config_override: crate::config::Builder,
) -> crate::client::customize::internal::BoxFuture<
crate::client::customize::internal::SendResult<
crate::operation::modify_replication_config::ModifyReplicationConfigOutput,
crate::operation::modify_replication_config::ModifyReplicationConfigError,
>,
> {
::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
}
}
impl ModifyReplicationConfigFluentBuilder {
pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
Self {
handle,
inner: ::std::default::Default::default(),
config_override: ::std::option::Option::None,
}
}
pub fn as_input(&self) -> &crate::operation::modify_replication_config::builders::ModifyReplicationConfigInputBuilder {
&self.inner
}
pub async fn send(
self,
) -> ::std::result::Result<
crate::operation::modify_replication_config::ModifyReplicationConfigOutput,
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::modify_replication_config::ModifyReplicationConfigError,
::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
>,
> {
let input = self
.inner
.build()
.map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
let runtime_plugins = crate::operation::modify_replication_config::ModifyReplicationConfig::operation_runtime_plugins(
self.handle.runtime_plugins.clone(),
&self.handle.conf,
self.config_override,
);
crate::operation::modify_replication_config::ModifyReplicationConfig::orchestrate(&runtime_plugins, input).await
}
pub fn customize(
self,
) -> crate::client::customize::CustomizableOperation<
crate::operation::modify_replication_config::ModifyReplicationConfigOutput,
crate::operation::modify_replication_config::ModifyReplicationConfigError,
Self,
> {
crate::client::customize::CustomizableOperation::new(self)
}
pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
self.set_config_override(::std::option::Option::Some(config_override.into()));
self
}
pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
self.config_override = config_override;
self
}
pub fn replication_config_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.replication_config_arn(input.into());
self
}
pub fn set_replication_config_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_replication_config_arn(input);
self
}
pub fn get_replication_config_arn(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_replication_config_arn()
}
pub fn replication_config_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.replication_config_identifier(input.into());
self
}
pub fn set_replication_config_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_replication_config_identifier(input);
self
}
pub fn get_replication_config_identifier(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_replication_config_identifier()
}
pub fn replication_type(mut self, input: crate::types::MigrationTypeValue) -> Self {
self.inner = self.inner.replication_type(input);
self
}
pub fn set_replication_type(mut self, input: ::std::option::Option<crate::types::MigrationTypeValue>) -> Self {
self.inner = self.inner.set_replication_type(input);
self
}
pub fn get_replication_type(&self) -> &::std::option::Option<crate::types::MigrationTypeValue> {
self.inner.get_replication_type()
}
pub fn table_mappings(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.table_mappings(input.into());
self
}
pub fn set_table_mappings(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_table_mappings(input);
self
}
pub fn get_table_mappings(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_table_mappings()
}
pub fn replication_settings(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.replication_settings(input.into());
self
}
pub fn set_replication_settings(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_replication_settings(input);
self
}
pub fn get_replication_settings(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_replication_settings()
}
pub fn supplemental_settings(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.supplemental_settings(input.into());
self
}
pub fn set_supplemental_settings(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_supplemental_settings(input);
self
}
pub fn get_supplemental_settings(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_supplemental_settings()
}
pub fn compute_config(mut self, input: crate::types::ComputeConfig) -> Self {
self.inner = self.inner.compute_config(input);
self
}
pub fn set_compute_config(mut self, input: ::std::option::Option<crate::types::ComputeConfig>) -> Self {
self.inner = self.inner.set_compute_config(input);
self
}
pub fn get_compute_config(&self) -> &::std::option::Option<crate::types::ComputeConfig> {
self.inner.get_compute_config()
}
pub fn source_endpoint_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.source_endpoint_arn(input.into());
self
}
pub fn set_source_endpoint_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_source_endpoint_arn(input);
self
}
pub fn get_source_endpoint_arn(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_source_endpoint_arn()
}
pub fn target_endpoint_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.target_endpoint_arn(input.into());
self
}
pub fn set_target_endpoint_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_target_endpoint_arn(input);
self
}
pub fn get_target_endpoint_arn(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_target_endpoint_arn()
}
}