#[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 NominalScrapingConfig {
    #[builder(default, list(item(type = super::NominalChannelNameComponent)))]
    #[serde(
        rename = "channelNameComponents",
        skip_serializing_if = "Vec::is_empty",
        default
    )]
    channel_name_components: Vec<super::NominalChannelNameComponent>,
    #[builder(into)]
    #[serde(rename = "separator")]
    separator: String,
}
impl NominalScrapingConfig {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(separator: impl Into<String>) -> Self {
        Self::builder().separator(separator).build()
    }
    /// channelNameComponents will be combined, together with separator, to form
    /// a fully qualified channel name.
    #[inline]
    pub fn channel_name_components(&self) -> &[super::NominalChannelNameComponent] {
        &*self.channel_name_components
    }
    #[inline]
    pub fn separator(&self) -> &str {
        &*self.separator
    }
}
