pub use crate::operation::update_channel::_update_channel_output::UpdateChannelOutputBuilder;
pub use crate::operation::update_channel::_update_channel_input::UpdateChannelInputBuilder;
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct UpdateChannelFluentBuilder {
handle: std::sync::Arc<crate::client::Handle>,
inner: crate::operation::update_channel::builders::UpdateChannelInputBuilder,
}
impl UpdateChannelFluentBuilder {
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_channel::UpdateChannel,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::operation::update_channel::UpdateChannelError>,
> {
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_channel::UpdateChannelOutput,
aws_smithy_http::result::SdkError<crate::operation::update_channel::UpdateChannelError>,
> {
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 cdi_input_specification(mut self, input: crate::types::CdiInputSpecification) -> Self {
self.inner = self.inner.cdi_input_specification(input);
self
}
pub fn set_cdi_input_specification(
mut self,
input: std::option::Option<crate::types::CdiInputSpecification>,
) -> Self {
self.inner = self.inner.set_cdi_input_specification(input);
self
}
pub fn channel_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.channel_id(input.into());
self
}
pub fn set_channel_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_channel_id(input);
self
}
pub fn destinations(mut self, input: crate::types::OutputDestination) -> Self {
self.inner = self.inner.destinations(input);
self
}
pub fn set_destinations(
mut self,
input: std::option::Option<std::vec::Vec<crate::types::OutputDestination>>,
) -> Self {
self.inner = self.inner.set_destinations(input);
self
}
pub fn encoder_settings(mut self, input: crate::types::EncoderSettings) -> Self {
self.inner = self.inner.encoder_settings(input);
self
}
pub fn set_encoder_settings(
mut self,
input: std::option::Option<crate::types::EncoderSettings>,
) -> Self {
self.inner = self.inner.set_encoder_settings(input);
self
}
pub fn input_attachments(mut self, input: crate::types::InputAttachment) -> Self {
self.inner = self.inner.input_attachments(input);
self
}
pub fn set_input_attachments(
mut self,
input: std::option::Option<std::vec::Vec<crate::types::InputAttachment>>,
) -> Self {
self.inner = self.inner.set_input_attachments(input);
self
}
pub fn input_specification(mut self, input: crate::types::InputSpecification) -> Self {
self.inner = self.inner.input_specification(input);
self
}
pub fn set_input_specification(
mut self,
input: std::option::Option<crate::types::InputSpecification>,
) -> Self {
self.inner = self.inner.set_input_specification(input);
self
}
pub fn log_level(mut self, input: crate::types::LogLevel) -> Self {
self.inner = self.inner.log_level(input);
self
}
pub fn set_log_level(mut self, input: std::option::Option<crate::types::LogLevel>) -> Self {
self.inner = self.inner.set_log_level(input);
self
}
pub fn maintenance(mut self, input: crate::types::MaintenanceUpdateSettings) -> Self {
self.inner = self.inner.maintenance(input);
self
}
pub fn set_maintenance(
mut self,
input: std::option::Option<crate::types::MaintenanceUpdateSettings>,
) -> Self {
self.inner = self.inner.set_maintenance(input);
self
}
pub fn name(mut self, input: impl 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 role_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.role_arn(input.into());
self
}
pub fn set_role_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_role_arn(input);
self
}
}