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