#[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 IngestJobNotCancellable {
#[serde(rename = "ingestJobRid")]
ingest_job_rid: conjure_object::ResourceIdentifier,
#[builder(into)]
#[serde(rename = "status")]
status: String,
}
impl IngestJobNotCancellable {
#[inline]
pub fn new(
ingest_job_rid: conjure_object::ResourceIdentifier,
status: impl Into<String>,
) -> Self {
Self::builder().ingest_job_rid(ingest_job_rid).status(status).build()
}
#[inline]
pub fn ingest_job_rid(&self) -> &conjure_object::ResourceIdentifier {
&self.ingest_job_rid
}
#[inline]
pub fn status(&self) -> &str {
&*self.status
}
}
impl conjure_error::ErrorType for IngestJobNotCancellable {
#[inline]
fn code() -> conjure_error::ErrorCode {
conjure_error::ErrorCode::Conflict
}
#[inline]
fn name() -> &'static str {
"IngestService:IngestJobNotCancellable"
}
#[inline]
fn safe_args() -> &'static [&'static str] {
&["ingestJobRid", "status"]
}
}