aws-sdk-docdbelastic 0.5.0

AWS SDK for Amazon DocumentDB Elastic Clusters
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 DeleteClusterSnapshotOutput {
    /// <p>Returns information about the newly deleted Elastic DocumentDB snapshot.</p>
    #[doc(hidden)]
    pub snapshot: std::option::Option<crate::types::ClusterSnapshot>,
    _request_id: Option<String>,
}
impl DeleteClusterSnapshotOutput {
    /// <p>Returns information about the newly deleted Elastic DocumentDB snapshot.</p>
    pub fn snapshot(&self) -> std::option::Option<&crate::types::ClusterSnapshot> {
        self.snapshot.as_ref()
    }
}
impl aws_http::request_id::RequestId for DeleteClusterSnapshotOutput {
    fn request_id(&self) -> Option<&str> {
        self._request_id.as_deref()
    }
}
impl DeleteClusterSnapshotOutput {
    /// Creates a new builder-style object to manufacture [`DeleteClusterSnapshotOutput`](crate::operation::delete_cluster_snapshot::DeleteClusterSnapshotOutput).
    pub fn builder(
    ) -> crate::operation::delete_cluster_snapshot::builders::DeleteClusterSnapshotOutputBuilder
    {
        crate::operation::delete_cluster_snapshot::builders::DeleteClusterSnapshotOutputBuilder::default()
    }
}

/// A builder for [`DeleteClusterSnapshotOutput`](crate::operation::delete_cluster_snapshot::DeleteClusterSnapshotOutput).
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct DeleteClusterSnapshotOutputBuilder {
    pub(crate) snapshot: std::option::Option<crate::types::ClusterSnapshot>,
    _request_id: Option<String>,
}
impl DeleteClusterSnapshotOutputBuilder {
    /// <p>Returns information about the newly deleted Elastic DocumentDB snapshot.</p>
    pub fn snapshot(mut self, input: crate::types::ClusterSnapshot) -> Self {
        self.snapshot = Some(input);
        self
    }
    /// <p>Returns information about the newly deleted Elastic DocumentDB snapshot.</p>
    pub fn set_snapshot(
        mut self,
        input: std::option::Option<crate::types::ClusterSnapshot>,
    ) -> Self {
        self.snapshot = input;
        self
    }
    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 [`DeleteClusterSnapshotOutput`](crate::operation::delete_cluster_snapshot::DeleteClusterSnapshotOutput).
    pub fn build(self) -> crate::operation::delete_cluster_snapshot::DeleteClusterSnapshotOutput {
        crate::operation::delete_cluster_snapshot::DeleteClusterSnapshotOutput {
            snapshot: self.snapshot,
            _request_id: self._request_id,
        }
    }
}