#[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 MarkFileIngestError {
    #[builder(custom(type = super::super::super::api::ErrorResult, convert = Box::new))]
    #[serde(rename = "errorResult")]
    error_result: Box<super::super::super::api::ErrorResult>,
}
impl MarkFileIngestError {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(error_result: super::super::super::api::ErrorResult) -> Self {
        Self::builder().error_result(error_result).build()
    }
    #[inline]
    pub fn error_result(&self) -> &super::super::super::api::ErrorResult {
        &*self.error_result
    }
}
