aws-sdk-securitylake 1.108.0

AWS SDK for Amazon Security Lake
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 DeleteDataLakeInput {
    /// <p>The list of Regions where Security Lake is enabled.</p>
    pub regions: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
}
impl DeleteDataLakeInput {
    /// <p>The list of Regions where Security Lake is enabled.</p>
    ///
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.regions.is_none()`.
    pub fn regions(&self) -> &[::std::string::String] {
        self.regions.as_deref().unwrap_or_default()
    }
}
impl DeleteDataLakeInput {
    /// Creates a new builder-style object to manufacture [`DeleteDataLakeInput`](crate::operation::delete_data_lake::DeleteDataLakeInput).
    pub fn builder() -> crate::operation::delete_data_lake::builders::DeleteDataLakeInputBuilder {
        crate::operation::delete_data_lake::builders::DeleteDataLakeInputBuilder::default()
    }
}

/// A builder for [`DeleteDataLakeInput`](crate::operation::delete_data_lake::DeleteDataLakeInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeleteDataLakeInputBuilder {
    pub(crate) regions: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
}
impl DeleteDataLakeInputBuilder {
    /// Appends an item to `regions`.
    ///
    /// To override the contents of this collection use [`set_regions`](Self::set_regions).
    ///
    /// <p>The list of Regions where Security Lake is enabled.</p>
    pub fn regions(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        let mut v = self.regions.unwrap_or_default();
        v.push(input.into());
        self.regions = ::std::option::Option::Some(v);
        self
    }
    /// <p>The list of Regions where Security Lake is enabled.</p>
    pub fn set_regions(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
        self.regions = input;
        self
    }
    /// <p>The list of Regions where Security Lake is enabled.</p>
    pub fn get_regions(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
        &self.regions
    }
    /// Consumes the builder and constructs a [`DeleteDataLakeInput`](crate::operation::delete_data_lake::DeleteDataLakeInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::delete_data_lake::DeleteDataLakeInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::delete_data_lake::DeleteDataLakeInput { regions: self.regions })
    }
}