#[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 CreateIngestAutomationRequest {
#[serde(rename = "workspaceRid")]
workspace_rid: super::super::super::api::rids::WorkspaceRid,
#[builder(default, list(item(type = super::IngestSource)))]
#[serde(rename = "sources", skip_serializing_if = "Vec::is_empty", default)]
sources: Vec<super::IngestSource>,
#[builder(custom(type = super::TimestampMetadata, convert = Box::new))]
#[serde(rename = "timestampMetadata")]
timestamp_metadata: Box<super::TimestampMetadata>,
#[builder(into)]
#[serde(rename = "assetTitle")]
asset_title: String,
#[builder(into)]
#[serde(rename = "datasetTitle")]
dataset_title: String,
#[builder(into)]
#[serde(rename = "runTitle")]
run_title: String,
#[builder(into)]
#[serde(rename = "refName")]
ref_name: String,
}
impl CreateIngestAutomationRequest {
#[inline]
pub fn workspace_rid(&self) -> &super::super::super::api::rids::WorkspaceRid {
&self.workspace_rid
}
#[inline]
pub fn sources(&self) -> &[super::IngestSource] {
&*self.sources
}
#[inline]
pub fn timestamp_metadata(&self) -> &super::TimestampMetadata {
&*self.timestamp_metadata
}
#[inline]
pub fn asset_title(&self) -> &str {
&*self.asset_title
}
#[inline]
pub fn dataset_title(&self) -> &str {
&*self.dataset_title
}
#[inline]
pub fn run_title(&self) -> &str {
&*self.run_title
}
#[inline]
pub fn ref_name(&self) -> &str {
&*self.ref_name
}
}