aws_sdk_wisdom/operation/start_content_upload/
builders.rspub use crate::operation::start_content_upload::_start_content_upload_output::StartContentUploadOutputBuilder;
pub use crate::operation::start_content_upload::_start_content_upload_input::StartContentUploadInputBuilder;
impl crate::operation::start_content_upload::builders::StartContentUploadInputBuilder {
pub async fn send_with(
self,
client: &crate::Client,
) -> ::std::result::Result<
crate::operation::start_content_upload::StartContentUploadOutput,
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::start_content_upload::StartContentUploadError,
::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
>,
> {
let mut fluent_builder = client.start_content_upload();
fluent_builder.inner = self;
fluent_builder.send().await
}
}
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
pub struct StartContentUploadFluentBuilder {
handle: ::std::sync::Arc<crate::client::Handle>,
inner: crate::operation::start_content_upload::builders::StartContentUploadInputBuilder,
config_override: ::std::option::Option<crate::config::Builder>,
}
impl
crate::client::customize::internal::CustomizableSend<
crate::operation::start_content_upload::StartContentUploadOutput,
crate::operation::start_content_upload::StartContentUploadError,
> for StartContentUploadFluentBuilder
{
fn send(
self,
config_override: crate::config::Builder,
) -> crate::client::customize::internal::BoxFuture<
crate::client::customize::internal::SendResult<
crate::operation::start_content_upload::StartContentUploadOutput,
crate::operation::start_content_upload::StartContentUploadError,
>,
> {
::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
}
}
impl StartContentUploadFluentBuilder {
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::start_content_upload::builders::StartContentUploadInputBuilder {
&self.inner
}
pub async fn send(
self,
) -> ::std::result::Result<
crate::operation::start_content_upload::StartContentUploadOutput,
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::start_content_upload::StartContentUploadError,
::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::start_content_upload::StartContentUpload::operation_runtime_plugins(
self.handle.runtime_plugins.clone(),
&self.handle.conf,
self.config_override,
);
crate::operation::start_content_upload::StartContentUpload::orchestrate(&runtime_plugins, input).await
}
pub fn customize(
self,
) -> crate::client::customize::CustomizableOperation<
crate::operation::start_content_upload::StartContentUploadOutput,
crate::operation::start_content_upload::StartContentUploadError,
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 knowledge_base_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.knowledge_base_id(input.into());
self
}
pub fn set_knowledge_base_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_knowledge_base_id(input);
self
}
pub fn get_knowledge_base_id(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_knowledge_base_id()
}
pub fn content_type(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.content_type(input.into());
self
}
pub fn set_content_type(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_content_type(input);
self
}
pub fn get_content_type(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_content_type()
}
pub fn presigned_url_time_to_live(mut self, input: i32) -> Self {
self.inner = self.inner.presigned_url_time_to_live(input);
self
}
pub fn set_presigned_url_time_to_live(mut self, input: ::std::option::Option<i32>) -> Self {
self.inner = self.inner.set_presigned_url_time_to_live(input);
self
}
pub fn get_presigned_url_time_to_live(&self) -> &::std::option::Option<i32> {
self.inner.get_presigned_url_time_to_live()
}
}