#[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 CheckLiveStatusResponse {
    #[builder(custom(type = super::CheckStatus, convert = Box::new))]
    #[serde(rename = "status")]
    status: Box<super::CheckStatus>,
    #[serde(rename = "checkRid")]
    check_rid: super::super::super::rids::api::CheckRid,
    #[builder(default, into)]
    #[serde(
        rename = "checkParameterIndex",
        skip_serializing_if = "Option::is_none",
        default
    )]
    check_parameter_index: Option<i32>,
}
impl CheckLiveStatusResponse {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(
        status: super::CheckStatus,
        check_rid: super::super::super::rids::api::CheckRid,
    ) -> Self {
        Self::builder().status(status).check_rid(check_rid).build()
    }
    #[inline]
    pub fn status(&self) -> &super::CheckStatus {
        &*self.status
    }
    #[inline]
    pub fn check_rid(&self) -> &super::super::super::rids::api::CheckRid {
        &self.check_rid
    }
    /// Checks can define a single range computation which can evaluate over multiple implementations of a context.
    /// The check implementation index will correspond to the implementation index of the check condition.
    #[inline]
    pub fn check_parameter_index(&self) -> Option<i32> {
        self.check_parameter_index.as_ref().map(|o| *o)
    }
}
