#[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 ResolutionFailureMessageFields {
    #[builder(into)]
    #[serde(rename = "checklistTitle")]
    checklist_title: String,
    #[builder(into)]
    #[serde(rename = "assetTitle")]
    asset_title: String,
    #[serde(rename = "checklistRid")]
    checklist_rid: super::super::super::rids::api::ChecklistRid,
    #[serde(rename = "assetRid")]
    asset_rid: super::super::super::rids::api::AssetRid,
    #[serde(rename = "unresolvedChecks")]
    unresolved_checks: i32,
    #[serde(rename = "totalChecks")]
    total_checks: i32,
    #[builder(default, list(item(type = String, into)))]
    #[serde(rename = "labels", skip_serializing_if = "Vec::is_empty", default)]
    labels: Vec<String>,
}
impl ResolutionFailureMessageFields {
    #[inline]
    pub fn checklist_title(&self) -> &str {
        &*self.checklist_title
    }
    #[inline]
    pub fn asset_title(&self) -> &str {
        &*self.asset_title
    }
    #[inline]
    pub fn checklist_rid(&self) -> &super::super::super::rids::api::ChecklistRid {
        &self.checklist_rid
    }
    #[inline]
    pub fn asset_rid(&self) -> &super::super::super::rids::api::AssetRid {
        &self.asset_rid
    }
    #[inline]
    pub fn unresolved_checks(&self) -> i32 {
        self.unresolved_checks
    }
    #[inline]
    pub fn total_checks(&self) -> i32 {
        self.total_checks
    }
    /// Currently exposed as 'tags' on the frontend to match Opsgenie naming. Used by some integrations to filter/route messages.
    #[inline]
    pub fn labels(&self) -> &[String] {
        &*self.labels
    }
}
