pub use crate::operation::generate_mapping::_generate_mapping_output::GenerateMappingOutputBuilder;
pub use crate::operation::generate_mapping::_generate_mapping_input::GenerateMappingInputBuilder;
impl crate::operation::generate_mapping::builders::GenerateMappingInputBuilder {
pub async fn send_with(
self,
client: &crate::Client,
) -> ::std::result::Result<
crate::operation::generate_mapping::GenerateMappingOutput,
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::generate_mapping::GenerateMappingError,
::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
>,
> {
let mut fluent_builder = client.generate_mapping();
fluent_builder.inner = self;
fluent_builder.send().await
}
}
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
pub struct GenerateMappingFluentBuilder {
handle: ::std::sync::Arc<crate::client::Handle>,
inner: crate::operation::generate_mapping::builders::GenerateMappingInputBuilder,
config_override: ::std::option::Option<crate::config::Builder>,
}
impl
crate::client::customize::internal::CustomizableSend<
crate::operation::generate_mapping::GenerateMappingOutput,
crate::operation::generate_mapping::GenerateMappingError,
> for GenerateMappingFluentBuilder
{
fn send(
self,
config_override: crate::config::Builder,
) -> crate::client::customize::internal::BoxFuture<
crate::client::customize::internal::SendResult<
crate::operation::generate_mapping::GenerateMappingOutput,
crate::operation::generate_mapping::GenerateMappingError,
>,
> {
::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
}
}
impl GenerateMappingFluentBuilder {
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::generate_mapping::builders::GenerateMappingInputBuilder {
&self.inner
}
pub async fn send(
self,
) -> ::std::result::Result<
crate::operation::generate_mapping::GenerateMappingOutput,
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::generate_mapping::GenerateMappingError,
::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::generate_mapping::GenerateMapping::operation_runtime_plugins(
self.handle.runtime_plugins.clone(),
&self.handle.conf,
self.config_override,
);
crate::operation::generate_mapping::GenerateMapping::orchestrate(&runtime_plugins, input).await
}
pub fn customize(
self,
) -> crate::client::customize::CustomizableOperation<
crate::operation::generate_mapping::GenerateMappingOutput,
crate::operation::generate_mapping::GenerateMappingError,
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 input_file_content(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.input_file_content(input.into());
self
}
pub fn set_input_file_content(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_input_file_content(input);
self
}
pub fn get_input_file_content(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_input_file_content()
}
pub fn output_file_content(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.output_file_content(input.into());
self
}
pub fn set_output_file_content(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_output_file_content(input);
self
}
pub fn get_output_file_content(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_output_file_content()
}
pub fn mapping_type(mut self, input: crate::types::MappingType) -> Self {
self.inner = self.inner.mapping_type(input);
self
}
pub fn set_mapping_type(mut self, input: ::std::option::Option<crate::types::MappingType>) -> Self {
self.inner = self.inner.set_mapping_type(input);
self
}
pub fn get_mapping_type(&self) -> &::std::option::Option<crate::types::MappingType> {
self.inner.get_mapping_type()
}
}