#[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 UnsupportedRequestTypeForReIngest {
    #[builder(into)]
    #[serde(rename = "requestType")]
    request_type: String,
    #[serde(rename = "ingestJobRid")]
    ingest_job_rid: conjure_object::ResourceIdentifier,
}
impl UnsupportedRequestTypeForReIngest {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(
        request_type: impl Into<String>,
        ingest_job_rid: conjure_object::ResourceIdentifier,
    ) -> Self {
        Self::builder().request_type(request_type).ingest_job_rid(ingest_job_rid).build()
    }
    #[inline]
    pub fn request_type(&self) -> &str {
        &*self.request_type
    }
    #[inline]
    pub fn ingest_job_rid(&self) -> &conjure_object::ResourceIdentifier {
        &self.ingest_job_rid
    }
}
impl conjure_error::ErrorType for UnsupportedRequestTypeForReIngest {
    #[inline]
    fn code() -> conjure_error::ErrorCode {
        conjure_error::ErrorCode::InvalidArgument
    }
    #[inline]
    fn name() -> &'static str {
        "IngestService:UnsupportedRequestTypeForReIngest"
    }
    #[inline]
    fn safe_args() -> &'static [&'static str] {
        &["ingestJobRid", "requestType"]
    }
}
