/// For example, for config of the form {components: [measurement, field, tag: vehicle], separator: "."} will construct a
/// channel that looks like vehicle_a.measurement.field. Tags will automatically be specified inside of the archetype.
#[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 InfluxSeriesArchetypeConstructionConfig {
    #[builder(default, list(item(type = super::InfluxChannelNameComponent)))]
    #[serde(
        rename = "channelNameComponents",
        skip_serializing_if = "Vec::is_empty",
        default
    )]
    channel_name_components: Vec<super::InfluxChannelNameComponent>,
    #[builder(into)]
    #[serde(rename = "separator")]
    separator: String,
}
impl InfluxSeriesArchetypeConstructionConfig {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(separator: impl Into<String>) -> Self {
        Self::builder().separator(separator).build()
    }
    #[inline]
    pub fn channel_name_components(&self) -> &[super::InfluxChannelNameComponent] {
        &*self.channel_name_components
    }
    #[inline]
    pub fn separator(&self) -> &str {
        &*self.separator
    }
}
