aws-sdk-medialive 1.149.0

AWS SDK for AWS Elemental MediaLive
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
pub use crate::operation::update_channel::_update_channel_input::UpdateChannelInputBuilder;

pub use crate::operation::update_channel::_update_channel_output::UpdateChannelOutputBuilder;

impl crate::operation::update_channel::builders::UpdateChannelInputBuilder {
    /// Sends a request with this input using the given client.
    pub async fn send_with(
        self,
        client: &crate::Client,
    ) -> ::std::result::Result<
        crate::operation::update_channel::UpdateChannelOutput,
        ::aws_smithy_runtime_api::client::result::SdkError<
            crate::operation::update_channel::UpdateChannelError,
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
        >,
    > {
        let mut fluent_builder = client.update_channel();
        fluent_builder.inner = self;
        fluent_builder.send().await
    }
}
/// Fluent builder constructing a request to `UpdateChannel`.
///
/// Updates a channel.
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
pub struct UpdateChannelFluentBuilder {
    handle: ::std::sync::Arc<crate::client::Handle>,
    inner: crate::operation::update_channel::builders::UpdateChannelInputBuilder,
    config_override: ::std::option::Option<crate::config::Builder>,
}
impl
    crate::client::customize::internal::CustomizableSend<
        crate::operation::update_channel::UpdateChannelOutput,
        crate::operation::update_channel::UpdateChannelError,
    > for UpdateChannelFluentBuilder
{
    fn send(
        self,
        config_override: crate::config::Builder,
    ) -> crate::client::customize::internal::BoxFuture<
        crate::client::customize::internal::SendResult<
            crate::operation::update_channel::UpdateChannelOutput,
            crate::operation::update_channel::UpdateChannelError,
        >,
    > {
        ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
    }
}
impl UpdateChannelFluentBuilder {
    /// Creates a new `UpdateChannelFluentBuilder`.
    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,
        }
    }
    /// Access the UpdateChannel as a reference.
    pub fn as_input(&self) -> &crate::operation::update_channel::builders::UpdateChannelInputBuilder {
        &self.inner
    }
    /// Sends the request and returns the response.
    ///
    /// If an error occurs, an `SdkError` will be returned with additional details that
    /// can be matched against.
    ///
    /// By default, any retryable failures will be retried twice. Retry behavior
    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
    /// set when configuring the client.
    pub async fn send(
        self,
    ) -> ::std::result::Result<
        crate::operation::update_channel::UpdateChannelOutput,
        ::aws_smithy_runtime_api::client::result::SdkError<
            crate::operation::update_channel::UpdateChannelError,
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
        >,
    > {
        let input = self
            .inner
            .build()
            .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
        let runtime_plugins = crate::operation::update_channel::UpdateChannel::operation_runtime_plugins(
            self.handle.runtime_plugins.clone(),
            &self.handle.conf,
            self.config_override,
        );
        crate::operation::update_channel::UpdateChannel::orchestrate(&runtime_plugins, input).await
    }

    /// Consumes this builder, creating a customizable operation that can be modified before being sent.
    pub fn customize(
        self,
    ) -> crate::client::customize::CustomizableOperation<
        crate::operation::update_channel::UpdateChannelOutput,
        crate::operation::update_channel::UpdateChannelError,
        Self,
    > {
        crate::client::customize::CustomizableOperation::new(self)
    }
    pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
        self.set_config_override(::std::option::Option::Some(config_override.into()));
        self
    }

    pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
        self.config_override = config_override;
        self
    }
    /// Specification of CDI inputs for this channel
    pub fn cdi_input_specification(mut self, input: crate::types::CdiInputSpecification) -> Self {
        self.inner = self.inner.cdi_input_specification(input);
        self
    }
    /// Specification of CDI inputs for this channel
    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
    }
    /// Specification of CDI inputs for this channel
    pub fn get_cdi_input_specification(&self) -> &::std::option::Option<crate::types::CdiInputSpecification> {
        self.inner.get_cdi_input_specification()
    }
    /// channel ID
    pub fn channel_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.inner = self.inner.channel_id(input.into());
        self
    }
    /// channel ID
    pub fn set_channel_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.inner = self.inner.set_channel_id(input);
        self
    }
    /// channel ID
    pub fn get_channel_id(&self) -> &::std::option::Option<::std::string::String> {
        self.inner.get_channel_id()
    }
    ///
    /// Appends an item to `Destinations`.
    ///
    /// To override the contents of this collection use [`set_destinations`](Self::set_destinations).
    ///
    /// A list of output destinations for this channel.
    pub fn destinations(mut self, input: crate::types::OutputDestination) -> Self {
        self.inner = self.inner.destinations(input);
        self
    }
    /// A list of output destinations for this channel.
    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
    }
    /// A list of output destinations for this channel.
    pub fn get_destinations(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::OutputDestination>> {
        self.inner.get_destinations()
    }
    /// The encoder settings for this channel.
    pub fn encoder_settings(mut self, input: crate::types::EncoderSettings) -> Self {
        self.inner = self.inner.encoder_settings(input);
        self
    }
    /// The encoder settings for this channel.
    pub fn set_encoder_settings(mut self, input: ::std::option::Option<crate::types::EncoderSettings>) -> Self {
        self.inner = self.inner.set_encoder_settings(input);
        self
    }
    /// The encoder settings for this channel.
    pub fn get_encoder_settings(&self) -> &::std::option::Option<crate::types::EncoderSettings> {
        self.inner.get_encoder_settings()
    }
    ///
    /// Appends an item to `InputAttachments`.
    ///
    /// To override the contents of this collection use [`set_input_attachments`](Self::set_input_attachments).
    ///
    /// Placeholder documentation for __listOfInputAttachment
    pub fn input_attachments(mut self, input: crate::types::InputAttachment) -> Self {
        self.inner = self.inner.input_attachments(input);
        self
    }
    /// Placeholder documentation for __listOfInputAttachment
    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
    }
    /// Placeholder documentation for __listOfInputAttachment
    pub fn get_input_attachments(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::InputAttachment>> {
        self.inner.get_input_attachments()
    }
    /// Specification of network and file inputs for this channel
    pub fn input_specification(mut self, input: crate::types::InputSpecification) -> Self {
        self.inner = self.inner.input_specification(input);
        self
    }
    /// Specification of network and file inputs for this channel
    pub fn set_input_specification(mut self, input: ::std::option::Option<crate::types::InputSpecification>) -> Self {
        self.inner = self.inner.set_input_specification(input);
        self
    }
    /// Specification of network and file inputs for this channel
    pub fn get_input_specification(&self) -> &::std::option::Option<crate::types::InputSpecification> {
        self.inner.get_input_specification()
    }
    /// The log level to write to CloudWatch Logs.
    pub fn log_level(mut self, input: crate::types::LogLevel) -> Self {
        self.inner = self.inner.log_level(input);
        self
    }
    /// The log level to write to CloudWatch Logs.
    pub fn set_log_level(mut self, input: ::std::option::Option<crate::types::LogLevel>) -> Self {
        self.inner = self.inner.set_log_level(input);
        self
    }
    /// The log level to write to CloudWatch Logs.
    pub fn get_log_level(&self) -> &::std::option::Option<crate::types::LogLevel> {
        self.inner.get_log_level()
    }
    /// Maintenance settings for this channel.
    pub fn maintenance(mut self, input: crate::types::MaintenanceUpdateSettings) -> Self {
        self.inner = self.inner.maintenance(input);
        self
    }
    /// Maintenance settings for this channel.
    pub fn set_maintenance(mut self, input: ::std::option::Option<crate::types::MaintenanceUpdateSettings>) -> Self {
        self.inner = self.inner.set_maintenance(input);
        self
    }
    /// Maintenance settings for this channel.
    pub fn get_maintenance(&self) -> &::std::option::Option<crate::types::MaintenanceUpdateSettings> {
        self.inner.get_maintenance()
    }
    /// The name of the channel.
    pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.inner = self.inner.name(input.into());
        self
    }
    /// The name of the channel.
    pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.inner = self.inner.set_name(input);
        self
    }
    /// The name of the channel.
    pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
        self.inner.get_name()
    }
    /// An optional Amazon Resource Name (ARN) of the role to assume when running the Channel. If you do not specify this on an update call but the role was previously set that role will be removed.
    pub fn role_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.inner = self.inner.role_arn(input.into());
        self
    }
    /// An optional Amazon Resource Name (ARN) of the role to assume when running the Channel. If you do not specify this on an update call but the role was previously set that role will be removed.
    pub fn set_role_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.inner = self.inner.set_role_arn(input);
        self
    }
    /// An optional Amazon Resource Name (ARN) of the role to assume when running the Channel. If you do not specify this on an update call but the role was previously set that role will be removed.
    pub fn get_role_arn(&self) -> &::std::option::Option<::std::string::String> {
        self.inner.get_role_arn()
    }
    /// Channel engine version for this channel
    pub fn channel_engine_version(mut self, input: crate::types::ChannelEngineVersionRequest) -> Self {
        self.inner = self.inner.channel_engine_version(input);
        self
    }
    /// Channel engine version for this channel
    pub fn set_channel_engine_version(mut self, input: ::std::option::Option<crate::types::ChannelEngineVersionRequest>) -> Self {
        self.inner = self.inner.set_channel_engine_version(input);
        self
    }
    /// Channel engine version for this channel
    pub fn get_channel_engine_version(&self) -> &::std::option::Option<crate::types::ChannelEngineVersionRequest> {
        self.inner.get_channel_engine_version()
    }
    /// Placeholder documentation for __boolean
    pub fn dry_run(mut self, input: bool) -> Self {
        self.inner = self.inner.dry_run(input);
        self
    }
    /// Placeholder documentation for __boolean
    pub fn set_dry_run(mut self, input: ::std::option::Option<bool>) -> Self {
        self.inner = self.inner.set_dry_run(input);
        self
    }
    /// Placeholder documentation for __boolean
    pub fn get_dry_run(&self) -> &::std::option::Option<bool> {
        self.inner.get_dry_run()
    }
    /// The Elemental Anywhere settings for this channel.
    pub fn anywhere_settings(mut self, input: crate::types::AnywhereSettings) -> Self {
        self.inner = self.inner.anywhere_settings(input);
        self
    }
    /// The Elemental Anywhere settings for this channel.
    pub fn set_anywhere_settings(mut self, input: ::std::option::Option<crate::types::AnywhereSettings>) -> Self {
        self.inner = self.inner.set_anywhere_settings(input);
        self
    }
    /// The Elemental Anywhere settings for this channel.
    pub fn get_anywhere_settings(&self) -> &::std::option::Option<crate::types::AnywhereSettings> {
        self.inner.get_anywhere_settings()
    }
    /// The linked channel settings for the channel.
    pub fn linked_channel_settings(mut self, input: crate::types::LinkedChannelSettings) -> Self {
        self.inner = self.inner.linked_channel_settings(input);
        self
    }
    /// The linked channel settings for the channel.
    pub fn set_linked_channel_settings(mut self, input: ::std::option::Option<crate::types::LinkedChannelSettings>) -> Self {
        self.inner = self.inner.set_linked_channel_settings(input);
        self
    }
    /// The linked channel settings for the channel.
    pub fn get_linked_channel_settings(&self) -> &::std::option::Option<crate::types::LinkedChannelSettings> {
        self.inner.get_linked_channel_settings()
    }
    ///
    /// Appends an item to `ChannelSecurityGroups`.
    ///
    /// To override the contents of this collection use [`set_channel_security_groups`](Self::set_channel_security_groups).
    ///
    /// A list of IDs for all the Input Security Groups attached to the channel.
    pub fn channel_security_groups(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.inner = self.inner.channel_security_groups(input.into());
        self
    }
    /// A list of IDs for all the Input Security Groups attached to the channel.
    pub fn set_channel_security_groups(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
        self.inner = self.inner.set_channel_security_groups(input);
        self
    }
    /// A list of IDs for all the Input Security Groups attached to the channel.
    pub fn get_channel_security_groups(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
        self.inner.get_channel_security_groups()
    }
    /// Include this setting to include Elemental Inference features in this channel.
    pub fn inference_settings(mut self, input: crate::types::InferenceSettings) -> Self {
        self.inner = self.inner.inference_settings(input);
        self
    }
    /// Include this setting to include Elemental Inference features in this channel.
    pub fn set_inference_settings(mut self, input: ::std::option::Option<crate::types::InferenceSettings>) -> Self {
        self.inner = self.inner.set_inference_settings(input);
        self
    }
    /// Include this setting to include Elemental Inference features in this channel.
    pub fn get_inference_settings(&self) -> &::std::option::Option<crate::types::InferenceSettings> {
        self.inner.get_inference_settings()
    }
    /// When using MediaConnect Router as the source of a MediaLive input there's a special handoff that occurs when a router output is created. This group of settings is set on your behalf by the MediaConnect Router service using this set of settings. This setting object can only by used by that service.
    pub fn special_router_settings(mut self, input: crate::types::SpecialRouterSettings) -> Self {
        self.inner = self.inner.special_router_settings(input);
        self
    }
    /// When using MediaConnect Router as the source of a MediaLive input there's a special handoff that occurs when a router output is created. This group of settings is set on your behalf by the MediaConnect Router service using this set of settings. This setting object can only by used by that service.
    pub fn set_special_router_settings(mut self, input: ::std::option::Option<crate::types::SpecialRouterSettings>) -> Self {
        self.inner = self.inner.set_special_router_settings(input);
        self
    }
    /// When using MediaConnect Router as the source of a MediaLive input there's a special handoff that occurs when a router output is created. This group of settings is set on your behalf by the MediaConnect Router service using this set of settings. This setting object can only by used by that service.
    pub fn get_special_router_settings(&self) -> &::std::option::Option<crate::types::SpecialRouterSettings> {
        self.inner.get_special_router_settings()
    }
}