pub use crate::operation::start_migration::_start_migration_output::StartMigrationOutputBuilder;
pub use crate::operation::start_migration::_start_migration_input::StartMigrationInputBuilder;
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct StartMigrationFluentBuilder {
handle: std::sync::Arc<crate::client::Handle>,
inner: crate::operation::start_migration::builders::StartMigrationInputBuilder,
}
impl StartMigrationFluentBuilder {
pub(crate) fn new(handle: std::sync::Arc<crate::client::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
pub async fn customize(
self,
) -> std::result::Result<
crate::client::customize::CustomizableOperation<
crate::operation::start_migration::StartMigration,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::operation::start_migration::StartMigrationError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::client::customize::CustomizableOperation { handle, operation })
}
pub async fn send(
self,
) -> std::result::Result<
crate::operation::start_migration::StartMigrationOutput,
aws_smithy_http::result::SdkError<crate::operation::start_migration::StartMigrationError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}
pub fn replication_group_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.replication_group_id(input.into());
self
}
pub fn set_replication_group_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_replication_group_id(input);
self
}
pub fn customer_node_endpoint_list(
mut self,
input: crate::types::CustomerNodeEndpoint,
) -> Self {
self.inner = self.inner.customer_node_endpoint_list(input);
self
}
pub fn set_customer_node_endpoint_list(
mut self,
input: std::option::Option<std::vec::Vec<crate::types::CustomerNodeEndpoint>>,
) -> Self {
self.inner = self.inner.set_customer_node_endpoint_list(input);
self
}
}