#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DeleteHapgInput {
#[doc(hidden)]
pub hapg_arn: std::option::Option<std::string::String>,
}
impl DeleteHapgInput {
pub fn hapg_arn(&self) -> std::option::Option<&str> {
self.hapg_arn.as_deref()
}
}
impl DeleteHapgInput {
pub fn builder() -> crate::operation::delete_hapg::builders::DeleteHapgInputBuilder {
crate::operation::delete_hapg::builders::DeleteHapgInputBuilder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct DeleteHapgInputBuilder {
pub(crate) hapg_arn: std::option::Option<std::string::String>,
}
impl DeleteHapgInputBuilder {
pub fn hapg_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.hapg_arn = Some(input.into());
self
}
pub fn set_hapg_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.hapg_arn = input;
self
}
pub fn build(
self,
) -> Result<
crate::operation::delete_hapg::DeleteHapgInput,
aws_smithy_http::operation::error::BuildError,
> {
Ok(crate::operation::delete_hapg::DeleteHapgInput {
hapg_arn: self.hapg_arn,
})
}
}