/// The settings for a raw bit flag map visualisation.
#[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 BitFlagMapRawVisualisation {
    #[builder(default, into)]
    #[serde(rename = "highColor", skip_serializing_if = "Option::is_none", default)]
    high_color: Option<super::super::super::api::HexColor>,
    #[builder(default, into)]
    #[serde(rename = "lowColor", skip_serializing_if = "Option::is_none", default)]
    low_color: Option<super::super::super::api::HexColor>,
    #[builder(default, list(item(type = super::BitFlag)))]
    #[serde(rename = "bitFlags", skip_serializing_if = "Vec::is_empty", default)]
    bit_flags: Vec<super::BitFlag>,
}
impl BitFlagMapRawVisualisation {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new() -> Self {
        Self::builder().build()
    }
    /// The color when any bit is high
    #[inline]
    pub fn high_color(&self) -> Option<&super::super::super::api::HexColor> {
        self.high_color.as_ref().map(|o| &*o)
    }
    /// The color when all bits are low
    #[inline]
    pub fn low_color(&self) -> Option<&super::super::super::api::HexColor> {
        self.low_color.as_ref().map(|o| &*o)
    }
    #[inline]
    pub fn bit_flags(&self) -> &[super::BitFlag] {
        &*self.bit_flags
    }
}
