pub use crate::operation::update_service_sync_config::_update_service_sync_config_output::UpdateServiceSyncConfigOutputBuilder;
pub use crate::operation::update_service_sync_config::_update_service_sync_config_input::UpdateServiceSyncConfigInputBuilder;
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct UpdateServiceSyncConfigFluentBuilder {
handle: std::sync::Arc<crate::client::Handle>,
inner:
crate::operation::update_service_sync_config::builders::UpdateServiceSyncConfigInputBuilder,
}
impl UpdateServiceSyncConfigFluentBuilder {
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::update_service_sync_config::UpdateServiceSyncConfig,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<
crate::operation::update_service_sync_config::UpdateServiceSyncConfigError,
>,
> {
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::update_service_sync_config::UpdateServiceSyncConfigOutput,
aws_smithy_http::result::SdkError<
crate::operation::update_service_sync_config::UpdateServiceSyncConfigError,
>,
> {
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 service_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.service_name(input.into());
self
}
pub fn set_service_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_service_name(input);
self
}
pub fn repository_provider(mut self, input: crate::types::RepositoryProvider) -> Self {
self.inner = self.inner.repository_provider(input);
self
}
pub fn set_repository_provider(
mut self,
input: std::option::Option<crate::types::RepositoryProvider>,
) -> Self {
self.inner = self.inner.set_repository_provider(input);
self
}
pub fn repository_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.repository_name(input.into());
self
}
pub fn set_repository_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_repository_name(input);
self
}
pub fn branch(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.branch(input.into());
self
}
pub fn set_branch(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_branch(input);
self
}
pub fn file_path(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.file_path(input.into());
self
}
pub fn set_file_path(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_file_path(input);
self
}
}