#[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 IngestTransform {
#[serde(rename = "ingestTransformRid")]
ingest_transform_rid: conjure_object::ResourceIdentifier,
#[serde(rename = "ingestJobRid")]
ingest_job_rid: conjure_object::ResourceIdentifier,
#[serde(rename = "transformType")]
transform_type: super::IngestTransformType,
#[serde(rename = "status")]
status: super::IngestTransformStatus,
#[serde(rename = "createdAt")]
created_at: conjure_object::DateTime<conjure_object::Utc>,
#[serde(rename = "updatedAt")]
updated_at: conjure_object::DateTime<conjure_object::Utc>,
#[builder(default, into)]
#[serde(rename = "errorMessage", skip_serializing_if = "Option::is_none", default)]
error_message: Option<String>,
#[builder(default, into)]
#[serde(rename = "finishedAt", skip_serializing_if = "Option::is_none", default)]
finished_at: Option<conjure_object::DateTime<conjure_object::Utc>>,
}
impl IngestTransform {
#[inline]
pub fn ingest_transform_rid(&self) -> &conjure_object::ResourceIdentifier {
&self.ingest_transform_rid
}
#[inline]
pub fn ingest_job_rid(&self) -> &conjure_object::ResourceIdentifier {
&self.ingest_job_rid
}
#[inline]
pub fn transform_type(&self) -> &super::IngestTransformType {
&self.transform_type
}
#[inline]
pub fn status(&self) -> &super::IngestTransformStatus {
&self.status
}
#[inline]
pub fn created_at(&self) -> conjure_object::DateTime<conjure_object::Utc> {
self.created_at
}
#[inline]
pub fn updated_at(&self) -> conjure_object::DateTime<conjure_object::Utc> {
self.updated_at
}
#[inline]
pub fn error_message(&self) -> Option<&str> {
self.error_message.as_ref().map(|o| &**o)
}
#[inline]
pub fn finished_at(&self) -> Option<conjure_object::DateTime<conjure_object::Utc>> {
self.finished_at.as_ref().map(|o| *o)
}
}