#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct UpdateHostInput {
#[doc(hidden)]
pub host_arn: std::option::Option<std::string::String>,
#[doc(hidden)]
pub provider_endpoint: std::option::Option<std::string::String>,
#[doc(hidden)]
pub vpc_configuration: std::option::Option<crate::types::VpcConfiguration>,
}
impl UpdateHostInput {
pub fn host_arn(&self) -> std::option::Option<&str> {
self.host_arn.as_deref()
}
pub fn provider_endpoint(&self) -> std::option::Option<&str> {
self.provider_endpoint.as_deref()
}
pub fn vpc_configuration(&self) -> std::option::Option<&crate::types::VpcConfiguration> {
self.vpc_configuration.as_ref()
}
}
impl UpdateHostInput {
pub fn builder() -> crate::operation::update_host::builders::UpdateHostInputBuilder {
crate::operation::update_host::builders::UpdateHostInputBuilder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct UpdateHostInputBuilder {
pub(crate) host_arn: std::option::Option<std::string::String>,
pub(crate) provider_endpoint: std::option::Option<std::string::String>,
pub(crate) vpc_configuration: std::option::Option<crate::types::VpcConfiguration>,
}
impl UpdateHostInputBuilder {
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 provider_endpoint(mut self, input: impl Into<std::string::String>) -> Self {
self.provider_endpoint = Some(input.into());
self
}
pub fn set_provider_endpoint(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.provider_endpoint = input;
self
}
pub fn vpc_configuration(mut self, input: crate::types::VpcConfiguration) -> Self {
self.vpc_configuration = Some(input);
self
}
pub fn set_vpc_configuration(
mut self,
input: std::option::Option<crate::types::VpcConfiguration>,
) -> Self {
self.vpc_configuration = input;
self
}
pub fn build(
self,
) -> Result<
crate::operation::update_host::UpdateHostInput,
aws_smithy_http::operation::error::BuildError,
> {
Ok(crate::operation::update_host::UpdateHostInput {
host_arn: self.host_arn,
provider_endpoint: self.provider_endpoint,
vpc_configuration: self.vpc_configuration,
})
}
}