#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DeleteDataLakeInput {
pub regions: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
}
impl DeleteDataLakeInput {
pub fn regions(&self) -> &[::std::string::String] {
self.regions.as_deref().unwrap_or_default()
}
}
impl DeleteDataLakeInput {
pub fn builder() -> crate::operation::delete_data_lake::builders::DeleteDataLakeInputBuilder {
crate::operation::delete_data_lake::builders::DeleteDataLakeInputBuilder::default()
}
}
#[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 {
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
}
pub fn set_regions(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
self.regions = input;
self
}
pub fn get_regions(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
&self.regions
}
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 })
}
}