#[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 AutomaticCheckEvaluationActionLogEntry {
    #[builder(custom(type = super::AutomaticCheckEvaluationAction, convert = Box::new))]
    #[serde(rename = "action")]
    action: Box<super::AutomaticCheckEvaluationAction>,
    #[serde(rename = "timestamp")]
    timestamp: conjure_object::DateTime<conjure_object::Utc>,
}
impl AutomaticCheckEvaluationActionLogEntry {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(
        action: super::AutomaticCheckEvaluationAction,
        timestamp: conjure_object::DateTime<conjure_object::Utc>,
    ) -> Self {
        Self::builder().action(action).timestamp(timestamp).build()
    }
    #[inline]
    pub fn action(&self) -> &super::AutomaticCheckEvaluationAction {
        &*self.action
    }
    #[inline]
    pub fn timestamp(&self) -> conjure_object::DateTime<conjure_object::Utc> {
        self.timestamp
    }
}
