#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ReleaseHostsInput {
#[doc(hidden)]
pub host_ids: std::option::Option<std::vec::Vec<std::string::String>>,
}
impl ReleaseHostsInput {
pub fn host_ids(&self) -> std::option::Option<&[std::string::String]> {
self.host_ids.as_deref()
}
}
impl ReleaseHostsInput {
pub fn builder() -> crate::operation::release_hosts::builders::ReleaseHostsInputBuilder {
crate::operation::release_hosts::builders::ReleaseHostsInputBuilder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct ReleaseHostsInputBuilder {
pub(crate) host_ids: std::option::Option<std::vec::Vec<std::string::String>>,
}
impl ReleaseHostsInputBuilder {
pub fn host_ids(mut self, input: impl Into<std::string::String>) -> Self {
let mut v = self.host_ids.unwrap_or_default();
v.push(input.into());
self.host_ids = Some(v);
self
}
pub fn set_host_ids(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.host_ids = input;
self
}
pub fn build(
self,
) -> Result<
crate::operation::release_hosts::ReleaseHostsInput,
aws_smithy_http::operation::error::BuildError,
> {
Ok(crate::operation::release_hosts::ReleaseHostsInput {
host_ids: self.host_ids,
})
}
}