#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetHostInput {
#[doc(hidden)]
pub host_arn: ::std::option::Option<::std::string::String>,
}
impl GetHostInput {
pub fn host_arn(&self) -> ::std::option::Option<&str> {
self.host_arn.as_deref()
}
}
impl GetHostInput {
pub fn builder() -> crate::operation::get_host::builders::GetHostInputBuilder {
crate::operation::get_host::builders::GetHostInputBuilder::default()
}
}
#[non_exhaustive]
#[derive(
::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug,
)]
pub struct GetHostInputBuilder {
pub(crate) host_arn: ::std::option::Option<::std::string::String>,
}
impl GetHostInputBuilder {
pub fn host_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.host_arn = ::std::option::Option::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,
) -> ::std::result::Result<
crate::operation::get_host::GetHostInput,
::aws_smithy_http::operation::error::BuildError,
> {
::std::result::Result::Ok(crate::operation::get_host::GetHostInput {
host_arn: self.host_arn,
})
}
}