aws-sdk-medialive 0.26.0

AWS SDK for AWS Elemental MediaLive
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// Placeholder documentation for DeleteScheduleRequest
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DeleteScheduleInput {
    /// Id of the channel whose schedule is being deleted.
    #[doc(hidden)]
    pub channel_id: std::option::Option<std::string::String>,
}
impl DeleteScheduleInput {
    /// Id of the channel whose schedule is being deleted.
    pub fn channel_id(&self) -> std::option::Option<&str> {
        self.channel_id.as_deref()
    }
}
impl DeleteScheduleInput {
    /// Creates a new builder-style object to manufacture [`DeleteScheduleInput`](crate::operation::delete_schedule::DeleteScheduleInput).
    pub fn builder() -> crate::operation::delete_schedule::builders::DeleteScheduleInputBuilder {
        crate::operation::delete_schedule::builders::DeleteScheduleInputBuilder::default()
    }
}

/// A builder for [`DeleteScheduleInput`](crate::operation::delete_schedule::DeleteScheduleInput).
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct DeleteScheduleInputBuilder {
    pub(crate) channel_id: std::option::Option<std::string::String>,
}
impl DeleteScheduleInputBuilder {
    /// Id of the channel whose schedule is being deleted.
    pub fn channel_id(mut self, input: impl Into<std::string::String>) -> Self {
        self.channel_id = Some(input.into());
        self
    }
    /// Id of the channel whose schedule is being deleted.
    pub fn set_channel_id(mut self, input: std::option::Option<std::string::String>) -> Self {
        self.channel_id = input;
        self
    }
    /// Consumes the builder and constructs a [`DeleteScheduleInput`](crate::operation::delete_schedule::DeleteScheduleInput).
    pub fn build(
        self,
    ) -> Result<
        crate::operation::delete_schedule::DeleteScheduleInput,
        aws_smithy_http::operation::error::BuildError,
    > {
        Ok(crate::operation::delete_schedule::DeleteScheduleInput {
            channel_id: self.channel_id,
        })
    }
}