#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DescribeHapgInput {
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()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DescribeHapgInputBuilder {
pub(crate) hapg_arn: ::std::option::Option<::std::string::String>,
}
impl DescribeHapgInputBuilder {
pub fn hapg_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.hapg_arn = ::std::option::Option::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 get_hapg_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.hapg_arn
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::describe_hapg::DescribeHapgInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::describe_hapg::DescribeHapgInput { hapg_arn: self.hapg_arn })
}
}