#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct BackendDefaults {
pub client_policy: ::std::option::Option<crate::types::ClientPolicy>,
}
impl BackendDefaults {
pub fn client_policy(&self) -> ::std::option::Option<&crate::types::ClientPolicy> {
self.client_policy.as_ref()
}
}
impl BackendDefaults {
pub fn builder() -> crate::types::builders::BackendDefaultsBuilder {
crate::types::builders::BackendDefaultsBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct BackendDefaultsBuilder {
pub(crate) client_policy: ::std::option::Option<crate::types::ClientPolicy>,
}
impl BackendDefaultsBuilder {
pub fn client_policy(mut self, input: crate::types::ClientPolicy) -> Self {
self.client_policy = ::std::option::Option::Some(input);
self
}
pub fn set_client_policy(mut self, input: ::std::option::Option<crate::types::ClientPolicy>) -> Self {
self.client_policy = input;
self
}
pub fn get_client_policy(&self) -> &::std::option::Option<crate::types::ClientPolicy> {
&self.client_policy
}
pub fn build(self) -> crate::types::BackendDefaults {
crate::types::BackendDefaults {
client_policy: self.client_policy,
}
}
}