#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct MeshServiceDiscovery {
pub ip_preference: ::std::option::Option<crate::types::IpPreference>,
}
impl MeshServiceDiscovery {
pub fn ip_preference(&self) -> ::std::option::Option<&crate::types::IpPreference> {
self.ip_preference.as_ref()
}
}
impl MeshServiceDiscovery {
pub fn builder() -> crate::types::builders::MeshServiceDiscoveryBuilder {
crate::types::builders::MeshServiceDiscoveryBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct MeshServiceDiscoveryBuilder {
pub(crate) ip_preference: ::std::option::Option<crate::types::IpPreference>,
}
impl MeshServiceDiscoveryBuilder {
pub fn ip_preference(mut self, input: crate::types::IpPreference) -> Self {
self.ip_preference = ::std::option::Option::Some(input);
self
}
pub fn set_ip_preference(mut self, input: ::std::option::Option<crate::types::IpPreference>) -> Self {
self.ip_preference = input;
self
}
pub fn get_ip_preference(&self) -> &::std::option::Option<crate::types::IpPreference> {
&self.ip_preference
}
pub fn build(self) -> crate::types::MeshServiceDiscovery {
crate::types::MeshServiceDiscovery {
ip_preference: self.ip_preference,
}
}
}