aws_sdk_databasemigration/operation/create_data_migration/
builders.rspub use crate::operation::create_data_migration::_create_data_migration_output::CreateDataMigrationOutputBuilder;
pub use crate::operation::create_data_migration::_create_data_migration_input::CreateDataMigrationInputBuilder;
impl crate::operation::create_data_migration::builders::CreateDataMigrationInputBuilder {
pub async fn send_with(
self,
client: &crate::Client,
) -> ::std::result::Result<
crate::operation::create_data_migration::CreateDataMigrationOutput,
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::create_data_migration::CreateDataMigrationError,
::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
>,
> {
let mut fluent_builder = client.create_data_migration();
fluent_builder.inner = self;
fluent_builder.send().await
}
}
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
pub struct CreateDataMigrationFluentBuilder {
handle: ::std::sync::Arc<crate::client::Handle>,
inner: crate::operation::create_data_migration::builders::CreateDataMigrationInputBuilder,
config_override: ::std::option::Option<crate::config::Builder>,
}
impl
crate::client::customize::internal::CustomizableSend<
crate::operation::create_data_migration::CreateDataMigrationOutput,
crate::operation::create_data_migration::CreateDataMigrationError,
> for CreateDataMigrationFluentBuilder
{
fn send(
self,
config_override: crate::config::Builder,
) -> crate::client::customize::internal::BoxFuture<
crate::client::customize::internal::SendResult<
crate::operation::create_data_migration::CreateDataMigrationOutput,
crate::operation::create_data_migration::CreateDataMigrationError,
>,
> {
::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
}
}
impl CreateDataMigrationFluentBuilder {
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::create_data_migration::builders::CreateDataMigrationInputBuilder {
&self.inner
}
pub async fn send(
self,
) -> ::std::result::Result<
crate::operation::create_data_migration::CreateDataMigrationOutput,
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::create_data_migration::CreateDataMigrationError,
::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::create_data_migration::CreateDataMigration::operation_runtime_plugins(
self.handle.runtime_plugins.clone(),
&self.handle.conf,
self.config_override,
);
crate::operation::create_data_migration::CreateDataMigration::orchestrate(&runtime_plugins, input).await
}
pub fn customize(
self,
) -> crate::client::customize::CustomizableOperation<
crate::operation::create_data_migration::CreateDataMigrationOutput,
crate::operation::create_data_migration::CreateDataMigrationError,
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 data_migration_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.data_migration_name(input.into());
self
}
pub fn set_data_migration_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_data_migration_name(input);
self
}
pub fn get_data_migration_name(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_data_migration_name()
}
pub fn migration_project_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.migration_project_identifier(input.into());
self
}
pub fn set_migration_project_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_migration_project_identifier(input);
self
}
pub fn get_migration_project_identifier(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_migration_project_identifier()
}
pub fn data_migration_type(mut self, input: crate::types::MigrationTypeValue) -> Self {
self.inner = self.inner.data_migration_type(input);
self
}
pub fn set_data_migration_type(mut self, input: ::std::option::Option<crate::types::MigrationTypeValue>) -> Self {
self.inner = self.inner.set_data_migration_type(input);
self
}
pub fn get_data_migration_type(&self) -> &::std::option::Option<crate::types::MigrationTypeValue> {
self.inner.get_data_migration_type()
}
pub fn service_access_role_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.service_access_role_arn(input.into());
self
}
pub fn set_service_access_role_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_service_access_role_arn(input);
self
}
pub fn get_service_access_role_arn(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_service_access_role_arn()
}
pub fn enable_cloudwatch_logs(mut self, input: bool) -> Self {
self.inner = self.inner.enable_cloudwatch_logs(input);
self
}
pub fn set_enable_cloudwatch_logs(mut self, input: ::std::option::Option<bool>) -> Self {
self.inner = self.inner.set_enable_cloudwatch_logs(input);
self
}
pub fn get_enable_cloudwatch_logs(&self) -> &::std::option::Option<bool> {
self.inner.get_enable_cloudwatch_logs()
}
pub fn source_data_settings(mut self, input: crate::types::SourceDataSetting) -> Self {
self.inner = self.inner.source_data_settings(input);
self
}
pub fn set_source_data_settings(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::SourceDataSetting>>) -> Self {
self.inner = self.inner.set_source_data_settings(input);
self
}
pub fn get_source_data_settings(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::SourceDataSetting>> {
self.inner.get_source_data_settings()
}
pub fn number_of_jobs(mut self, input: i32) -> Self {
self.inner = self.inner.number_of_jobs(input);
self
}
pub fn set_number_of_jobs(mut self, input: ::std::option::Option<i32>) -> Self {
self.inner = self.inner.set_number_of_jobs(input);
self
}
pub fn get_number_of_jobs(&self) -> &::std::option::Option<i32> {
self.inner.get_number_of_jobs()
}
pub fn tags(mut self, input: crate::types::Tag) -> Self {
self.inner = self.inner.tags(input);
self
}
pub fn set_tags(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Tag>>) -> Self {
self.inner = self.inner.set_tags(input);
self
}
pub fn get_tags(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Tag>> {
self.inner.get_tags()
}
pub fn selection_rules(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.selection_rules(input.into());
self
}
pub fn set_selection_rules(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_selection_rules(input);
self
}
pub fn get_selection_rules(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_selection_rules()
}
}