pub use crate::operation::update_flow_media_stream::_update_flow_media_stream_output::UpdateFlowMediaStreamOutputBuilder;
pub use crate::operation::update_flow_media_stream::_update_flow_media_stream_input::UpdateFlowMediaStreamInputBuilder;
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct UpdateFlowMediaStreamFluentBuilder {
handle: std::sync::Arc<crate::client::Handle>,
inner: crate::operation::update_flow_media_stream::builders::UpdateFlowMediaStreamInputBuilder,
}
impl UpdateFlowMediaStreamFluentBuilder {
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_flow_media_stream::UpdateFlowMediaStream,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<
crate::operation::update_flow_media_stream::UpdateFlowMediaStreamError,
>,
> {
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_flow_media_stream::UpdateFlowMediaStreamOutput,
aws_smithy_http::result::SdkError<
crate::operation::update_flow_media_stream::UpdateFlowMediaStreamError,
>,
> {
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 attributes(mut self, input: crate::types::MediaStreamAttributesRequest) -> Self {
self.inner = self.inner.attributes(input);
self
}
pub fn set_attributes(
mut self,
input: std::option::Option<crate::types::MediaStreamAttributesRequest>,
) -> Self {
self.inner = self.inner.set_attributes(input);
self
}
pub fn clock_rate(mut self, input: i32) -> Self {
self.inner = self.inner.clock_rate(input);
self
}
pub fn set_clock_rate(mut self, input: std::option::Option<i32>) -> Self {
self.inner = self.inner.set_clock_rate(input);
self
}
pub fn description(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.description(input.into());
self
}
pub fn set_description(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_description(input);
self
}
pub fn flow_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.flow_arn(input.into());
self
}
pub fn set_flow_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_flow_arn(input);
self
}
pub fn media_stream_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.media_stream_name(input.into());
self
}
pub fn set_media_stream_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_media_stream_name(input);
self
}
pub fn media_stream_type(mut self, input: crate::types::MediaStreamType) -> Self {
self.inner = self.inner.media_stream_type(input);
self
}
pub fn set_media_stream_type(
mut self,
input: std::option::Option<crate::types::MediaStreamType>,
) -> Self {
self.inner = self.inner.set_media_stream_type(input);
self
}
pub fn video_format(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.video_format(input.into());
self
}
pub fn set_video_format(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_video_format(input);
self
}
}