#[derive(
    Debug,
    Clone,
    conjure_object::serde::Serialize,
    conjure_object::serde::Deserialize,
    PartialEq,
    Eq,
    PartialOrd,
    Ord,
    Hash
)]
#[serde(crate = "conjure_object::serde")]
#[conjure_object::private::staged_builder::staged_builder]
#[builder(crate = conjure_object::private::staged_builder, update, inline)]
pub struct InfluxScrapingConfig {
    #[builder(default, list(item(type = super::InfluxScrapingFilter)))]
    #[serde(rename = "filter", skip_serializing_if = "Vec::is_empty", default)]
    filter: Vec<super::InfluxScrapingFilter>,
    #[builder(
        custom(type = super::InfluxSeriesArchetypeConstructionConfig, convert = Box::new)
    )]
    #[serde(rename = "seriesArchetypeConstruction")]
    series_archetype_construction: Box<super::InfluxSeriesArchetypeConstructionConfig>,
}
impl InfluxScrapingConfig {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(
        series_archetype_construction: super::InfluxSeriesArchetypeConstructionConfig,
    ) -> Self {
        Self::builder()
            .series_archetype_construction(series_archetype_construction)
            .build()
    }
    /// Filters are ANDed together
    #[inline]
    pub fn filter(&self) -> &[super::InfluxScrapingFilter] {
        &*self.filter
    }
    #[inline]
    pub fn series_archetype_construction(
        &self,
    ) -> &super::InfluxSeriesArchetypeConstructionConfig {
        &*self.series_archetype_construction
    }
}
