pub use crate::operation::update_backend_job::_update_backend_job_output::UpdateBackendJobOutputBuilder;
pub use crate::operation::update_backend_job::_update_backend_job_input::UpdateBackendJobInputBuilder;
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
pub struct UpdateBackendJobFluentBuilder {
handle: ::std::sync::Arc<crate::client::Handle>,
inner: crate::operation::update_backend_job::builders::UpdateBackendJobInputBuilder,
}
impl UpdateBackendJobFluentBuilder {
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::update_backend_job::UpdateBackendJob,
::aws_http::retry::AwsResponseRetryClassifier,
>,
::aws_smithy_http::result::SdkError<
crate::operation::update_backend_job::UpdateBackendJobError,
>,
> {
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::update_backend_job::UpdateBackendJobOutput,
::aws_smithy_http::result::SdkError<
crate::operation::update_backend_job::UpdateBackendJobError,
>,
> {
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::update_backend_job::UpdateBackendJobOutput,
::aws_smithy_http::result::SdkError<
crate::operation::update_backend_job::UpdateBackendJobError,
>,
> {
self.send_middleware().await
}
pub async fn customize(
self,
) -> ::std::result::Result<
crate::client::customize::CustomizableOperation<
crate::operation::update_backend_job::UpdateBackendJob,
::aws_http::retry::AwsResponseRetryClassifier,
>,
::aws_smithy_http::result::SdkError<
crate::operation::update_backend_job::UpdateBackendJobError,
>,
> {
self.customize_middleware().await
}
pub fn app_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.app_id(input.into());
self
}
pub fn set_app_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_app_id(input);
self
}
pub fn backend_environment_name(
mut self,
input: impl ::std::convert::Into<::std::string::String>,
) -> Self {
self.inner = self.inner.backend_environment_name(input.into());
self
}
pub fn set_backend_environment_name(
mut self,
input: ::std::option::Option<::std::string::String>,
) -> Self {
self.inner = self.inner.set_backend_environment_name(input);
self
}
pub fn job_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.job_id(input.into());
self
}
pub fn set_job_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_job_id(input);
self
}
pub fn operation(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.operation(input.into());
self
}
pub fn set_operation(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_operation(input);
self
}
pub fn status(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.status(input.into());
self
}
pub fn set_status(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_status(input);
self
}
}