pub use crate::operation::start_mailbox_export_job::_start_mailbox_export_job_output::StartMailboxExportJobOutputBuilder;
pub use crate::operation::start_mailbox_export_job::_start_mailbox_export_job_input::StartMailboxExportJobInputBuilder;
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
pub struct StartMailboxExportJobFluentBuilder {
handle: ::std::sync::Arc<crate::client::Handle>,
inner: crate::operation::start_mailbox_export_job::builders::StartMailboxExportJobInputBuilder,
}
impl StartMailboxExportJobFluentBuilder {
pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
Self {
handle,
inner: ::std::default::Default::default(),
}
}
#[doc(hidden)]
pub async fn customize_middleware(
self,
) -> ::std::result::Result<
crate::client::customize::CustomizableOperation<
crate::operation::start_mailbox_export_job::StartMailboxExportJob,
::aws_http::retry::AwsResponseRetryClassifier,
>,
::aws_smithy_http::result::SdkError<
crate::operation::start_mailbox_export_job::StartMailboxExportJobError,
>,
> {
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)?;
::std::result::Result::Ok(crate::client::customize::CustomizableOperation {
handle,
operation,
})
}
#[doc(hidden)]
pub async fn send_middleware(
self,
) -> ::std::result::Result<
crate::operation::start_mailbox_export_job::StartMailboxExportJobOutput,
::aws_smithy_http::result::SdkError<
crate::operation::start_mailbox_export_job::StartMailboxExportJobError,
>,
> {
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 async fn send(
self,
) -> ::std::result::Result<
crate::operation::start_mailbox_export_job::StartMailboxExportJobOutput,
::aws_smithy_http::result::SdkError<
crate::operation::start_mailbox_export_job::StartMailboxExportJobError,
>,
> {
self.send_middleware().await
}
pub async fn customize(
self,
) -> ::std::result::Result<
crate::client::customize::CustomizableOperation<
crate::operation::start_mailbox_export_job::StartMailboxExportJob,
::aws_http::retry::AwsResponseRetryClassifier,
>,
::aws_smithy_http::result::SdkError<
crate::operation::start_mailbox_export_job::StartMailboxExportJobError,
>,
> {
self.customize_middleware().await
}
pub fn client_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.client_token(input.into());
self
}
pub fn set_client_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_client_token(input);
self
}
pub fn organization_id(
mut self,
input: impl ::std::convert::Into<::std::string::String>,
) -> Self {
self.inner = self.inner.organization_id(input.into());
self
}
pub fn set_organization_id(
mut self,
input: ::std::option::Option<::std::string::String>,
) -> Self {
self.inner = self.inner.set_organization_id(input);
self
}
pub fn entity_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.entity_id(input.into());
self
}
pub fn set_entity_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_entity_id(input);
self
}
pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.description(input.into());
self
}
pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_description(input);
self
}
pub fn role_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.role_arn(input.into());
self
}
pub fn set_role_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_role_arn(input);
self
}
pub fn kms_key_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.kms_key_arn(input.into());
self
}
pub fn set_kms_key_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_kms_key_arn(input);
self
}
pub fn s3_bucket_name(
mut self,
input: impl ::std::convert::Into<::std::string::String>,
) -> Self {
self.inner = self.inner.s3_bucket_name(input.into());
self
}
pub fn set_s3_bucket_name(
mut self,
input: ::std::option::Option<::std::string::String>,
) -> Self {
self.inner = self.inner.set_s3_bucket_name(input);
self
}
pub fn s3_prefix(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.s3_prefix(input.into());
self
}
pub fn set_s3_prefix(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_s3_prefix(input);
self
}
}