#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DeleteAclInput {
pub acl_name: ::std::option::Option<::std::string::String>,
}
impl DeleteAclInput {
pub fn acl_name(&self) -> ::std::option::Option<&str> {
self.acl_name.as_deref()
}
}
impl DeleteAclInput {
pub fn builder() -> crate::operation::delete_acl::builders::DeleteAclInputBuilder {
crate::operation::delete_acl::builders::DeleteAclInputBuilder::default()
}
}
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct DeleteAclInputBuilder {
pub(crate) acl_name: ::std::option::Option<::std::string::String>,
}
impl DeleteAclInputBuilder {
pub fn acl_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.acl_name = ::std::option::Option::Some(input.into());
self
}
pub fn set_acl_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.acl_name = input;
self
}
pub fn get_acl_name(&self) -> &::std::option::Option<::std::string::String> {
&self.acl_name
}
pub fn build(self) -> ::std::result::Result<crate::operation::delete_acl::DeleteAclInput, ::aws_smithy_http::operation::error::BuildError> {
::std::result::Result::Ok(crate::operation::delete_acl::DeleteAclInput { acl_name: self.acl_name })
}
}