aws_sdk_workdocs/operation/initiate_document_version_upload/
builders.rspub use crate::operation::initiate_document_version_upload::_initiate_document_version_upload_output::InitiateDocumentVersionUploadOutputBuilder;
pub use crate::operation::initiate_document_version_upload::_initiate_document_version_upload_input::InitiateDocumentVersionUploadInputBuilder;
impl crate::operation::initiate_document_version_upload::builders::InitiateDocumentVersionUploadInputBuilder {
pub async fn send_with(
self,
client: &crate::Client,
) -> ::std::result::Result<
crate::operation::initiate_document_version_upload::InitiateDocumentVersionUploadOutput,
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::initiate_document_version_upload::InitiateDocumentVersionUploadError,
::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
>,
> {
let mut fluent_builder = client.initiate_document_version_upload();
fluent_builder.inner = self;
fluent_builder.send().await
}
}
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
pub struct InitiateDocumentVersionUploadFluentBuilder {
handle: ::std::sync::Arc<crate::client::Handle>,
inner: crate::operation::initiate_document_version_upload::builders::InitiateDocumentVersionUploadInputBuilder,
config_override: ::std::option::Option<crate::config::Builder>,
}
impl
crate::client::customize::internal::CustomizableSend<
crate::operation::initiate_document_version_upload::InitiateDocumentVersionUploadOutput,
crate::operation::initiate_document_version_upload::InitiateDocumentVersionUploadError,
> for InitiateDocumentVersionUploadFluentBuilder
{
fn send(
self,
config_override: crate::config::Builder,
) -> crate::client::customize::internal::BoxFuture<
crate::client::customize::internal::SendResult<
crate::operation::initiate_document_version_upload::InitiateDocumentVersionUploadOutput,
crate::operation::initiate_document_version_upload::InitiateDocumentVersionUploadError,
>,
> {
::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
}
}
impl InitiateDocumentVersionUploadFluentBuilder {
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::initiate_document_version_upload::builders::InitiateDocumentVersionUploadInputBuilder {
&self.inner
}
pub async fn send(
self,
) -> ::std::result::Result<
crate::operation::initiate_document_version_upload::InitiateDocumentVersionUploadOutput,
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::initiate_document_version_upload::InitiateDocumentVersionUploadError,
::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::initiate_document_version_upload::InitiateDocumentVersionUpload::operation_runtime_plugins(
self.handle.runtime_plugins.clone(),
&self.handle.conf,
self.config_override,
);
crate::operation::initiate_document_version_upload::InitiateDocumentVersionUpload::orchestrate(&runtime_plugins, input).await
}
pub fn customize(
self,
) -> crate::client::customize::CustomizableOperation<
crate::operation::initiate_document_version_upload::InitiateDocumentVersionUploadOutput,
crate::operation::initiate_document_version_upload::InitiateDocumentVersionUploadError,
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 authentication_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.authentication_token(input.into());
self
}
pub fn set_authentication_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_authentication_token(input);
self
}
pub fn get_authentication_token(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_authentication_token()
}
pub fn id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.id(input.into());
self
}
pub fn set_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_id(input);
self
}
pub fn get_id(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_id()
}
pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.name(input.into());
self
}
pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_name(input);
self
}
pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_name()
}
pub fn content_created_timestamp(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.inner = self.inner.content_created_timestamp(input);
self
}
pub fn set_content_created_timestamp(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.inner = self.inner.set_content_created_timestamp(input);
self
}
pub fn get_content_created_timestamp(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
self.inner.get_content_created_timestamp()
}
pub fn content_modified_timestamp(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.inner = self.inner.content_modified_timestamp(input);
self
}
pub fn set_content_modified_timestamp(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.inner = self.inner.set_content_modified_timestamp(input);
self
}
pub fn get_content_modified_timestamp(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
self.inner.get_content_modified_timestamp()
}
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 document_size_in_bytes(mut self, input: i64) -> Self {
self.inner = self.inner.document_size_in_bytes(input);
self
}
pub fn set_document_size_in_bytes(mut self, input: ::std::option::Option<i64>) -> Self {
self.inner = self.inner.set_document_size_in_bytes(input);
self
}
pub fn get_document_size_in_bytes(&self) -> &::std::option::Option<i64> {
self.inner.get_document_size_in_bytes()
}
pub fn parent_folder_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.parent_folder_id(input.into());
self
}
pub fn set_parent_folder_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_parent_folder_id(input);
self
}
pub fn get_parent_folder_id(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_parent_folder_id()
}
}