pub use crate::operation::start_object::_start_object_output::StartObjectOutputBuilder;
pub use crate::operation::start_object::_start_object_input::StartObjectInputBuilder;
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct StartObjectFluentBuilder {
handle: std::sync::Arc<crate::client::Handle>,
inner: crate::operation::start_object::builders::StartObjectInputBuilder,
}
impl StartObjectFluentBuilder {
pub(crate) fn new(handle: std::sync::Arc<crate::client::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
pub async fn customize(
self,
) -> std::result::Result<
crate::client::customize::CustomizableOperation<
crate::operation::start_object::StartObject,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::operation::start_object::StartObjectError>,
> {
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)?;
Ok(crate::client::customize::CustomizableOperation { handle, operation })
}
pub async fn send(
self,
) -> std::result::Result<
crate::operation::start_object::StartObjectOutput,
aws_smithy_http::result::SdkError<crate::operation::start_object::StartObjectError>,
> {
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 fn backup_job_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.backup_job_id(input.into());
self
}
pub fn set_backup_job_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_backup_job_id(input);
self
}
pub fn object_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.object_name(input.into());
self
}
pub fn set_object_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_object_name(input);
self
}
pub fn throw_on_duplicate(mut self, input: bool) -> Self {
self.inner = self.inner.throw_on_duplicate(input);
self
}
pub fn set_throw_on_duplicate(mut self, input: std::option::Option<bool>) -> Self {
self.inner = self.inner.set_throw_on_duplicate(input);
self
}
}