#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct CreateSnapshotsOutput {
    pub snapshots: ::std::option::Option<::std::vec::Vec<crate::types::SnapshotInfo>>,
    _request_id: Option<String>,
}
impl CreateSnapshotsOutput {
    pub fn snapshots(&self) -> &[crate::types::SnapshotInfo] {
        self.snapshots.as_deref().unwrap_or_default()
    }
}
impl ::aws_types::request_id::RequestId for CreateSnapshotsOutput {
    fn request_id(&self) -> Option<&str> {
        self._request_id.as_deref()
    }
}
impl CreateSnapshotsOutput {
    pub fn builder() -> crate::operation::create_snapshots::builders::CreateSnapshotsOutputBuilder {
        crate::operation::create_snapshots::builders::CreateSnapshotsOutputBuilder::default()
    }
}
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct CreateSnapshotsOutputBuilder {
    pub(crate) snapshots: ::std::option::Option<::std::vec::Vec<crate::types::SnapshotInfo>>,
    _request_id: Option<String>,
}
impl CreateSnapshotsOutputBuilder {
    pub fn snapshots(mut self, input: crate::types::SnapshotInfo) -> Self {
        let mut v = self.snapshots.unwrap_or_default();
        v.push(input);
        self.snapshots = ::std::option::Option::Some(v);
        self
    }
    pub fn set_snapshots(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::SnapshotInfo>>) -> Self {
        self.snapshots = input;
        self
    }
    pub fn get_snapshots(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::SnapshotInfo>> {
        &self.snapshots
    }
    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
    }
    pub fn build(self) -> crate::operation::create_snapshots::CreateSnapshotsOutput {
        crate::operation::create_snapshots::CreateSnapshotsOutput {
            snapshots: self.snapshots,
            _request_id: self._request_id,
        }
    }
}