#[derive(
    Debug,
    Clone,
    conjure_object::serde::Serialize,
    conjure_object::serde::Deserialize,
    conjure_object::private::DeriveWith
)]
#[serde(crate = "conjure_object::serde")]
#[derive_with(PartialEq, Eq, PartialOrd, Ord, Hash)]
#[conjure_object::private::staged_builder::staged_builder]
#[builder(crate = conjure_object::private::staged_builder, update, inline)]
pub struct UnresolvedChecklistVariable {
    #[serde(rename = "name")]
    name: super::super::super::compute::api::VariableName,
    #[builder(default, into)]
    #[serde(rename = "displayName", skip_serializing_if = "Option::is_none", default)]
    display_name: Option<String>,
    #[builder(custom(type = super::UnresolvedVariableLocator, convert = Box::new))]
    #[serde(rename = "value")]
    value: Box<super::UnresolvedVariableLocator>,
}
impl UnresolvedChecklistVariable {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(
        name: super::super::super::compute::api::VariableName,
        value: super::UnresolvedVariableLocator,
    ) -> Self {
        Self::builder().name(name).value(value).build()
    }
    #[inline]
    pub fn name(&self) -> &super::super::super::compute::api::VariableName {
        &self.name
    }
    #[inline]
    pub fn display_name(&self) -> Option<&str> {
        self.display_name.as_ref().map(|o| &**o)
    }
    #[inline]
    pub fn value(&self) -> &super::UnresolvedVariableLocator {
        &*self.value
    }
}
