pub use crate::operation::update_stream_processor::_update_stream_processor_output::UpdateStreamProcessorOutputBuilder;
pub use crate::operation::update_stream_processor::_update_stream_processor_input::UpdateStreamProcessorInputBuilder;
impl UpdateStreamProcessorInputBuilder {
pub async fn send_with(
self,
client: &crate::Client,
) -> ::std::result::Result<
crate::operation::update_stream_processor::UpdateStreamProcessorOutput,
::aws_smithy_http::result::SdkError<
crate::operation::update_stream_processor::UpdateStreamProcessorError,
::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
>,
> {
let mut fluent_builder = client.update_stream_processor();
fluent_builder.inner = self;
fluent_builder.send().await
}
}
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
pub struct UpdateStreamProcessorFluentBuilder {
handle: ::std::sync::Arc<crate::client::Handle>,
inner: crate::operation::update_stream_processor::builders::UpdateStreamProcessorInputBuilder,
config_override: ::std::option::Option<crate::config::Builder>,
}
impl UpdateStreamProcessorFluentBuilder {
pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
Self {
handle,
inner: ::std::default::Default::default(),
config_override: ::std::option::Option::None,
}
}
pub fn as_input(&self) -> &crate::operation::update_stream_processor::builders::UpdateStreamProcessorInputBuilder {
&self.inner
}
pub async fn send(
self,
) -> ::std::result::Result<
crate::operation::update_stream_processor::UpdateStreamProcessorOutput,
::aws_smithy_http::result::SdkError<
crate::operation::update_stream_processor::UpdateStreamProcessorError,
::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
>,
> {
let input = self.inner.build().map_err(::aws_smithy_http::result::SdkError::construction_failure)?;
let runtime_plugins = crate::operation::update_stream_processor::UpdateStreamProcessor::operation_runtime_plugins(
self.handle.runtime_plugins.clone(),
&self.handle.conf,
self.config_override,
);
crate::operation::update_stream_processor::UpdateStreamProcessor::orchestrate(&runtime_plugins, input).await
}
pub async fn customize(
self,
) -> ::std::result::Result<
crate::client::customize::orchestrator::CustomizableOperation<
crate::operation::update_stream_processor::UpdateStreamProcessorOutput,
crate::operation::update_stream_processor::UpdateStreamProcessorError,
>,
::aws_smithy_http::result::SdkError<crate::operation::update_stream_processor::UpdateStreamProcessorError>,
> {
::std::result::Result::Ok(crate::client::customize::orchestrator::CustomizableOperation {
customizable_send: ::std::boxed::Box::new(move |config_override| {
::std::boxed::Box::pin(async { self.config_override(config_override).send().await })
}),
config_override: None,
interceptors: vec![],
runtime_plugins: vec![],
})
}
pub(crate) fn config_override(mut self, config_override: impl Into<crate::config::Builder>) -> Self {
self.set_config_override(Some(config_override.into()));
self
}
pub(crate) fn set_config_override(&mut self, config_override: Option<crate::config::Builder>) -> &mut Self {
self.config_override = config_override;
self
}
pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.name(input.into());
self
}
pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_name(input);
self
}
pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_name()
}
pub fn settings_for_update(mut self, input: crate::types::StreamProcessorSettingsForUpdate) -> Self {
self.inner = self.inner.settings_for_update(input);
self
}
pub fn set_settings_for_update(mut self, input: ::std::option::Option<crate::types::StreamProcessorSettingsForUpdate>) -> Self {
self.inner = self.inner.set_settings_for_update(input);
self
}
pub fn get_settings_for_update(&self) -> &::std::option::Option<crate::types::StreamProcessorSettingsForUpdate> {
self.inner.get_settings_for_update()
}
pub fn regions_of_interest_for_update(mut self, input: crate::types::RegionOfInterest) -> Self {
self.inner = self.inner.regions_of_interest_for_update(input);
self
}
pub fn set_regions_of_interest_for_update(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::RegionOfInterest>>) -> Self {
self.inner = self.inner.set_regions_of_interest_for_update(input);
self
}
pub fn get_regions_of_interest_for_update(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::RegionOfInterest>> {
self.inner.get_regions_of_interest_for_update()
}
pub fn data_sharing_preference_for_update(mut self, input: crate::types::StreamProcessorDataSharingPreference) -> Self {
self.inner = self.inner.data_sharing_preference_for_update(input);
self
}
pub fn set_data_sharing_preference_for_update(
mut self,
input: ::std::option::Option<crate::types::StreamProcessorDataSharingPreference>,
) -> Self {
self.inner = self.inner.set_data_sharing_preference_for_update(input);
self
}
pub fn get_data_sharing_preference_for_update(&self) -> &::std::option::Option<crate::types::StreamProcessorDataSharingPreference> {
self.inner.get_data_sharing_preference_for_update()
}
pub fn parameters_to_delete(mut self, input: crate::types::StreamProcessorParameterToDelete) -> Self {
self.inner = self.inner.parameters_to_delete(input);
self
}
pub fn set_parameters_to_delete(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::StreamProcessorParameterToDelete>>) -> Self {
self.inner = self.inner.set_parameters_to_delete(input);
self
}
pub fn get_parameters_to_delete(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::StreamProcessorParameterToDelete>> {
self.inner.get_parameters_to_delete()
}
}