pub use crate::operation::notify_object_complete::_notify_object_complete_output::NotifyObjectCompleteOutputBuilder;
pub use crate::operation::notify_object_complete::_notify_object_complete_input::NotifyObjectCompleteInputBuilder;
#[derive(std::fmt::Debug)]
pub struct NotifyObjectCompleteFluentBuilder {
handle: std::sync::Arc<crate::client::Handle>,
inner: crate::operation::notify_object_complete::builders::NotifyObjectCompleteInputBuilder,
}
impl NotifyObjectCompleteFluentBuilder {
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::notify_object_complete::NotifyObjectComplete,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<
crate::operation::notify_object_complete::NotifyObjectCompleteError,
>,
> {
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::notify_object_complete::NotifyObjectCompleteOutput,
aws_smithy_http::result::SdkError<
crate::operation::notify_object_complete::NotifyObjectCompleteError,
>,
> {
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 upload_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.upload_id(input.into());
self
}
pub fn set_upload_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_upload_id(input);
self
}
pub fn object_checksum(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.object_checksum(input.into());
self
}
pub fn set_object_checksum(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_object_checksum(input);
self
}
pub fn object_checksum_algorithm(
mut self,
input: crate::types::SummaryChecksumAlgorithm,
) -> Self {
self.inner = self.inner.object_checksum_algorithm(input);
self
}
pub fn set_object_checksum_algorithm(
mut self,
input: std::option::Option<crate::types::SummaryChecksumAlgorithm>,
) -> Self {
self.inner = self.inner.set_object_checksum_algorithm(input);
self
}
pub fn metadata_string(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.metadata_string(input.into());
self
}
pub fn set_metadata_string(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_metadata_string(input);
self
}
pub fn metadata_blob(mut self, input: aws_smithy_http::byte_stream::ByteStream) -> Self {
self.inner = self.inner.metadata_blob(input);
self
}
pub fn set_metadata_blob(
mut self,
input: std::option::Option<aws_smithy_http::byte_stream::ByteStream>,
) -> Self {
self.inner = self.inner.set_metadata_blob(input);
self
}
pub fn metadata_blob_length(mut self, input: i64) -> Self {
self.inner = self.inner.metadata_blob_length(input);
self
}
pub fn set_metadata_blob_length(mut self, input: std::option::Option<i64>) -> Self {
self.inner = self.inner.set_metadata_blob_length(input);
self
}
pub fn metadata_blob_checksum(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.metadata_blob_checksum(input.into());
self
}
pub fn set_metadata_blob_checksum(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_metadata_blob_checksum(input);
self
}
pub fn metadata_blob_checksum_algorithm(
mut self,
input: crate::types::DataChecksumAlgorithm,
) -> Self {
self.inner = self.inner.metadata_blob_checksum_algorithm(input);
self
}
pub fn set_metadata_blob_checksum_algorithm(
mut self,
input: std::option::Option<crate::types::DataChecksumAlgorithm>,
) -> Self {
self.inner = self.inner.set_metadata_blob_checksum_algorithm(input);
self
}
}