/// The ingest job exists but is not compatible to be re-run.
#[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 IngestJobNotCompatibleForRerun {
    #[builder(into)]
    #[serde(rename = "message")]
    message: String,
    #[serde(rename = "ingestJobRid")]
    ingest_job_rid: conjure_object::ResourceIdentifier,
}
impl IngestJobNotCompatibleForRerun {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(
        message: impl Into<String>,
        ingest_job_rid: conjure_object::ResourceIdentifier,
    ) -> Self {
        Self::builder().message(message).ingest_job_rid(ingest_job_rid).build()
    }
    #[inline]
    pub fn message(&self) -> &str {
        &*self.message
    }
    #[inline]
    pub fn ingest_job_rid(&self) -> &conjure_object::ResourceIdentifier {
        &self.ingest_job_rid
    }
}
impl conjure_error::ErrorType for IngestJobNotCompatibleForRerun {
    #[inline]
    fn code() -> conjure_error::ErrorCode {
        conjure_error::ErrorCode::InvalidArgument
    }
    #[inline]
    fn name() -> &'static str {
        "IngestService:IngestJobNotCompatibleForRerun"
    }
    #[inline]
    fn safe_args() -> &'static [&'static str] {
        &["ingestJobRid", "message"]
    }
}
