aws-sdk-medialive 1.78.0

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

/// Placeholder documentation for BatchUpdateScheduleResponse
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct BatchUpdateScheduleOutput {
    /// Schedule actions created in the schedule.
    pub creates: ::std::option::Option<crate::types::BatchScheduleActionCreateResult>,
    /// Schedule actions deleted from the schedule.
    pub deletes: ::std::option::Option<crate::types::BatchScheduleActionDeleteResult>,
    _request_id: Option<String>,
}
impl BatchUpdateScheduleOutput {
    /// Schedule actions created in the schedule.
    pub fn creates(&self) -> ::std::option::Option<&crate::types::BatchScheduleActionCreateResult> {
        self.creates.as_ref()
    }
    /// Schedule actions deleted from the schedule.
    pub fn deletes(&self) -> ::std::option::Option<&crate::types::BatchScheduleActionDeleteResult> {
        self.deletes.as_ref()
    }
}
impl ::aws_types::request_id::RequestId for BatchUpdateScheduleOutput {
    fn request_id(&self) -> Option<&str> {
        self._request_id.as_deref()
    }
}
impl BatchUpdateScheduleOutput {
    /// Creates a new builder-style object to manufacture [`BatchUpdateScheduleOutput`](crate::operation::batch_update_schedule::BatchUpdateScheduleOutput).
    pub fn builder() -> crate::operation::batch_update_schedule::builders::BatchUpdateScheduleOutputBuilder {
        crate::operation::batch_update_schedule::builders::BatchUpdateScheduleOutputBuilder::default()
    }
}

/// A builder for [`BatchUpdateScheduleOutput`](crate::operation::batch_update_schedule::BatchUpdateScheduleOutput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct BatchUpdateScheduleOutputBuilder {
    pub(crate) creates: ::std::option::Option<crate::types::BatchScheduleActionCreateResult>,
    pub(crate) deletes: ::std::option::Option<crate::types::BatchScheduleActionDeleteResult>,
    _request_id: Option<String>,
}
impl BatchUpdateScheduleOutputBuilder {
    /// Schedule actions created in the schedule.
    pub fn creates(mut self, input: crate::types::BatchScheduleActionCreateResult) -> Self {
        self.creates = ::std::option::Option::Some(input);
        self
    }
    /// Schedule actions created in the schedule.
    pub fn set_creates(mut self, input: ::std::option::Option<crate::types::BatchScheduleActionCreateResult>) -> Self {
        self.creates = input;
        self
    }
    /// Schedule actions created in the schedule.
    pub fn get_creates(&self) -> &::std::option::Option<crate::types::BatchScheduleActionCreateResult> {
        &self.creates
    }
    /// Schedule actions deleted from the schedule.
    pub fn deletes(mut self, input: crate::types::BatchScheduleActionDeleteResult) -> Self {
        self.deletes = ::std::option::Option::Some(input);
        self
    }
    /// Schedule actions deleted from the schedule.
    pub fn set_deletes(mut self, input: ::std::option::Option<crate::types::BatchScheduleActionDeleteResult>) -> Self {
        self.deletes = input;
        self
    }
    /// Schedule actions deleted from the schedule.
    pub fn get_deletes(&self) -> &::std::option::Option<crate::types::BatchScheduleActionDeleteResult> {
        &self.deletes
    }
    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
        self._request_id = Some(request_id.into());
        self
    }

    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
        self._request_id = request_id;
        self
    }
    /// Consumes the builder and constructs a [`BatchUpdateScheduleOutput`](crate::operation::batch_update_schedule::BatchUpdateScheduleOutput).
    pub fn build(self) -> crate::operation::batch_update_schedule::BatchUpdateScheduleOutput {
        crate::operation::batch_update_schedule::BatchUpdateScheduleOutput {
            creates: self.creates,
            deletes: self.deletes,
            _request_id: self._request_id,
        }
    }
}