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