/// Request to fetch logs for all containers in a completed extractor job's pod.
#[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 FetchExtractorJobLogsRequest {
    #[serde(rename = "workspaceRid")]
    workspace_rid: conjure_object::ResourceIdentifier,
    #[serde(rename = "logDatasetRid")]
    log_dataset_rid: conjure_object::ResourceIdentifier,
    #[serde(rename = "ingestJobUuid")]
    ingest_job_uuid: conjure_object::Uuid,
    #[builder(default, into)]
    #[serde(
        rename = "extractorJobUuid",
        skip_serializing_if = "Option::is_none",
        default
    )]
    extractor_job_uuid: Option<conjure_object::Uuid>,
    #[serde(rename = "bearerToken")]
    bearer_token: conjure_object::BearerToken,
    #[serde(rename = "extractorRid")]
    extractor_rid: super::super::super::api::ContainerizedExtractorRid,
}
impl FetchExtractorJobLogsRequest {
    #[inline]
    pub fn workspace_rid(&self) -> &conjure_object::ResourceIdentifier {
        &self.workspace_rid
    }
    #[inline]
    pub fn log_dataset_rid(&self) -> &conjure_object::ResourceIdentifier {
        &self.log_dataset_rid
    }
    /// The ingest job uuid written into the log dataset (the `ingest_job_uuid` log column),
    /// used to correlate extractor logs with the rest of the ingest pipeline. For v2 ingest
    /// transforms this is the parent ingest job uuid, which differs from the K8s job key
    /// (see `extractorJobUuid`) because a MULTI parent job can run several transforms.
    #[inline]
    pub fn ingest_job_uuid(&self) -> conjure_object::Uuid {
        self.ingest_job_uuid
    }
    /// The uuid the extractor's K8s job and pods are labelled with (`nominal.io/job-rid`),
    /// used to locate the pods whose logs are fetched. Defaults to `ingestJobUuid` when
    /// absent. For v2 ingest transforms this is the transform uuid, since that — not the
    /// parent ingest job uuid — keys the K8s job.
    #[inline]
    pub fn extractor_job_uuid(&self) -> Option<conjure_object::Uuid> {
        self.extractor_job_uuid.as_ref().map(|o| *o)
    }
    #[inline]
    pub fn bearer_token(&self) -> &conjure_object::BearerToken {
        &self.bearer_token
    }
    #[inline]
    pub fn extractor_rid(&self) -> &super::super::super::api::ContainerizedExtractorRid {
        &self.extractor_rid
    }
}
