#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DescribeHapgInput {
#[doc(hidden)]
pub hapg_arn: std::option::Option<std::string::String>,
}
impl DescribeHapgInput {
pub fn hapg_arn(&self) -> std::option::Option<&str> {
self.hapg_arn.as_deref()
}
}
impl DescribeHapgInput {
pub fn builder() -> crate::operation::describe_hapg::builders::DescribeHapgInputBuilder {
crate::operation::describe_hapg::builders::DescribeHapgInputBuilder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct DescribeHapgInputBuilder {
pub(crate) hapg_arn: std::option::Option<std::string::String>,
}
impl DescribeHapgInputBuilder {
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::describe_hapg::DescribeHapgInput,
aws_smithy_http::operation::error::BuildError,
> {
Ok(crate::operation::describe_hapg::DescribeHapgInput {
hapg_arn: self.hapg_arn,
})
}
}