aws-sdk-redshift 1.106.0

AWS SDK for Amazon Redshift
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DeleteSnapshotScheduleInput {
    /// <p>A unique identifier of the snapshot schedule to delete.</p>
    pub schedule_identifier: ::std::option::Option<::std::string::String>,
}
impl DeleteSnapshotScheduleInput {
    /// <p>A unique identifier of the snapshot schedule to delete.</p>
    pub fn schedule_identifier(&self) -> ::std::option::Option<&str> {
        self.schedule_identifier.as_deref()
    }
}
impl DeleteSnapshotScheduleInput {
    /// Creates a new builder-style object to manufacture [`DeleteSnapshotScheduleInput`](crate::operation::delete_snapshot_schedule::DeleteSnapshotScheduleInput).
    pub fn builder() -> crate::operation::delete_snapshot_schedule::builders::DeleteSnapshotScheduleInputBuilder {
        crate::operation::delete_snapshot_schedule::builders::DeleteSnapshotScheduleInputBuilder::default()
    }
}

/// A builder for [`DeleteSnapshotScheduleInput`](crate::operation::delete_snapshot_schedule::DeleteSnapshotScheduleInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeleteSnapshotScheduleInputBuilder {
    pub(crate) schedule_identifier: ::std::option::Option<::std::string::String>,
}
impl DeleteSnapshotScheduleInputBuilder {
    /// <p>A unique identifier of the snapshot schedule to delete.</p>
    /// This field is required.
    pub fn schedule_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.schedule_identifier = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>A unique identifier of the snapshot schedule to delete.</p>
    pub fn set_schedule_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.schedule_identifier = input;
        self
    }
    /// <p>A unique identifier of the snapshot schedule to delete.</p>
    pub fn get_schedule_identifier(&self) -> &::std::option::Option<::std::string::String> {
        &self.schedule_identifier
    }
    /// Consumes the builder and constructs a [`DeleteSnapshotScheduleInput`](crate::operation::delete_snapshot_schedule::DeleteSnapshotScheduleInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<
        crate::operation::delete_snapshot_schedule::DeleteSnapshotScheduleInput,
        ::aws_smithy_types::error::operation::BuildError,
    > {
        ::std::result::Result::Ok(crate::operation::delete_snapshot_schedule::DeleteSnapshotScheduleInput {
            schedule_identifier: self.schedule_identifier,
        })
    }
}