#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct UpdateHostInput {
pub host_arn: ::std::option::Option<::std::string::String>,
pub provider_endpoint: ::std::option::Option<::std::string::String>,
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()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
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 ::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 get_host_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.host_arn
}
pub fn provider_endpoint(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.provider_endpoint = ::std::option::Option::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 get_provider_endpoint(&self) -> &::std::option::Option<::std::string::String> {
&self.provider_endpoint
}
pub fn vpc_configuration(mut self, input: crate::types::VpcConfiguration) -> Self {
self.vpc_configuration = ::std::option::Option::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 get_vpc_configuration(&self) -> &::std::option::Option<crate::types::VpcConfiguration> {
&self.vpc_configuration
}
pub fn build(self) -> ::std::result::Result<crate::operation::update_host::UpdateHostInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::update_host::UpdateHostInput {
host_arn: self.host_arn,
provider_endpoint: self.provider_endpoint,
vpc_configuration: self.vpc_configuration,
})
}
}