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