// Code generated by oagen. DO NOT EDIT.

#[allow(unused_imports)]
use super::*;
#[allow(unused_imports)]
use crate::enums::*;
use serde::{Deserialize, Serialize};
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct ReviewEvaluation {
    /// Artifact operation that determines the backing record type
    ///
    /// Defaults to `review_trigger_evaluation`.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub operation: Option<String>,
    pub id: String,
    pub workflow_run_id: String,
    pub step_id: String,
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub evaluations: Option<Vec<ConditionEvaluationResult>>,
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub selected_handles: Option<Vec<String>>,
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub matched_branch_id: Option<String>,
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub matched_condition_ids: Option<Vec<String>>,
    /// Defaults to `false`.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub requires_human_review: Option<bool>,
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub reviewer_id: Option<String>,
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub review_decision: Option<ReviewEvaluationReviewDecision>,
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub review_notes: Option<String>,
    /// Defaults to `false`.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub requested_revision: Option<bool>,
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub reviewed_at: Option<String>,
    /// When this artifact was written by the orchestrator.
    pub created_at: String,
}
impl ReviewEvaluation {
    /// Construct a new `ReviewEvaluation` with the required fields set.
    #[allow(deprecated)]
    pub fn new(
        id: impl Into<String>,
        workflow_run_id: impl Into<String>,
        step_id: impl Into<String>,
        created_at: impl Into<String>,
    ) -> Self {
        Self {
            operation: Default::default(),
            id: id.into(),
            workflow_run_id: workflow_run_id.into(),
            step_id: step_id.into(),
            evaluations: Default::default(),
            selected_handles: Default::default(),
            matched_branch_id: Default::default(),
            matched_condition_ids: Default::default(),
            requires_human_review: Default::default(),
            reviewer_id: Default::default(),
            review_decision: Default::default(),
            review_notes: Default::default(),
            requested_revision: Default::default(),
            reviewed_at: Default::default(),
            created_at: created_at.into(),
        }
    }
}
