#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct PredefinedMetricSpecification {
pub predefined_metric_type: ::std::option::Option<::std::string::String>,
}
impl PredefinedMetricSpecification {
pub fn predefined_metric_type(&self) -> ::std::option::Option<&str> {
self.predefined_metric_type.as_deref()
}
}
impl PredefinedMetricSpecification {
pub fn builder() -> crate::types::builders::PredefinedMetricSpecificationBuilder {
crate::types::builders::PredefinedMetricSpecificationBuilder::default()
}
}
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct PredefinedMetricSpecificationBuilder {
pub(crate) predefined_metric_type: ::std::option::Option<::std::string::String>,
}
impl PredefinedMetricSpecificationBuilder {
pub fn predefined_metric_type(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.predefined_metric_type = ::std::option::Option::Some(input.into());
self
}
pub fn set_predefined_metric_type(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.predefined_metric_type = input;
self
}
pub fn get_predefined_metric_type(&self) -> &::std::option::Option<::std::string::String> {
&self.predefined_metric_type
}
pub fn build(self) -> crate::types::PredefinedMetricSpecification {
crate::types::PredefinedMetricSpecification {
predefined_metric_type: self.predefined_metric_type,
}
}
}