#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct ResponseTimeRootCauseEntity {
pub name: ::std::option::Option<::std::string::String>,
pub coverage: ::std::option::Option<f64>,
pub remote: ::std::option::Option<bool>,
}
impl ResponseTimeRootCauseEntity {
pub fn name(&self) -> ::std::option::Option<&str> {
self.name.as_deref()
}
pub fn coverage(&self) -> ::std::option::Option<f64> {
self.coverage
}
pub fn remote(&self) -> ::std::option::Option<bool> {
self.remote
}
}
impl ResponseTimeRootCauseEntity {
pub fn builder() -> crate::types::builders::ResponseTimeRootCauseEntityBuilder {
crate::types::builders::ResponseTimeRootCauseEntityBuilder::default()
}
}
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct ResponseTimeRootCauseEntityBuilder {
pub(crate) name: ::std::option::Option<::std::string::String>,
pub(crate) coverage: ::std::option::Option<f64>,
pub(crate) remote: ::std::option::Option<bool>,
}
impl ResponseTimeRootCauseEntityBuilder {
pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.name = ::std::option::Option::Some(input.into());
self
}
pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.name = input;
self
}
pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
&self.name
}
pub fn coverage(mut self, input: f64) -> Self {
self.coverage = ::std::option::Option::Some(input);
self
}
pub fn set_coverage(mut self, input: ::std::option::Option<f64>) -> Self {
self.coverage = input;
self
}
pub fn get_coverage(&self) -> &::std::option::Option<f64> {
&self.coverage
}
pub fn remote(mut self, input: bool) -> Self {
self.remote = ::std::option::Option::Some(input);
self
}
pub fn set_remote(mut self, input: ::std::option::Option<bool>) -> Self {
self.remote = input;
self
}
pub fn get_remote(&self) -> &::std::option::Option<bool> {
&self.remote
}
pub fn build(self) -> crate::types::ResponseTimeRootCauseEntity {
crate::types::ResponseTimeRootCauseEntity {
name: self.name,
coverage: self.coverage,
remote: self.remote,
}
}
}