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