/// Ensure that the extractor job exists in the control plane. Runs in the namespace given by workspaceRid.
#[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 EnsureExtractorJobCreatedRequest {
    #[serde(rename = "bearerToken")]
    bearer_token: conjure_object::BearerToken,
    #[serde(rename = "workspaceRid")]
    workspace_rid: conjure_object::ResourceIdentifier,
    #[serde(rename = "ingestJobUuid")]
    ingest_job_uuid: conjure_object::Uuid,
    #[builder(
        custom(
            type = super::super::super::api::ContainerizedExtractor,
            convert = Box::new
        )
    )]
    #[serde(rename = "containerizedExtractor")]
    containerized_extractor: Box<super::super::super::api::ContainerizedExtractor>,
    #[builder(into)]
    #[serde(rename = "tag")]
    tag: String,
    #[builder(default, list(item(type = super::ValidatedFileInput)))]
    #[serde(
        rename = "validatedFileInputs",
        skip_serializing_if = "Vec::is_empty",
        default
    )]
    validated_file_inputs: Vec<super::ValidatedFileInput>,
    #[builder(custom(type = super::MultipartUploadDetails, convert = Box::new))]
    #[serde(rename = "multipartUploadDetails")]
    multipart_upload_details: Box<super::MultipartUploadDetails>,
    #[builder(default, into)]
    #[serde(
        rename = "imagePullSecretName",
        skip_serializing_if = "Option::is_none",
        default
    )]
    image_pull_secret_name: Option<String>,
    #[builder(
        default,
        map(
            key(type = super::super::super::api::EnvironmentVariable),
            value(type = String, into)
        )
    )]
    #[serde(
        rename = "arguments",
        skip_serializing_if = "std::collections::BTreeMap::is_empty",
        default
    )]
    arguments: std::collections::BTreeMap<
        super::super::super::api::EnvironmentVariable,
        String,
    >,
}
impl EnsureExtractorJobCreatedRequest {
    #[inline]
    pub fn bearer_token(&self) -> &conjure_object::BearerToken {
        &self.bearer_token
    }
    #[inline]
    pub fn workspace_rid(&self) -> &conjure_object::ResourceIdentifier {
        &self.workspace_rid
    }
    #[inline]
    pub fn ingest_job_uuid(&self) -> conjure_object::Uuid {
        self.ingest_job_uuid
    }
    #[inline]
    pub fn containerized_extractor(
        &self,
    ) -> &super::super::super::api::ContainerizedExtractor {
        &*self.containerized_extractor
    }
    #[inline]
    pub fn tag(&self) -> &str {
        &*self.tag
    }
    #[inline]
    pub fn validated_file_inputs(&self) -> &[super::ValidatedFileInput] {
        &*self.validated_file_inputs
    }
    #[inline]
    pub fn multipart_upload_details(&self) -> &super::MultipartUploadDetails {
        &*self.multipart_upload_details
    }
    /// Name of the Kubernetes secret to use for pulling the image, if authentication is required.
    #[inline]
    pub fn image_pull_secret_name(&self) -> Option<&str> {
        self.image_pull_secret_name.as_ref().map(|o| &**o)
    }
    /// Additional arguments to pass as environment variables to the container.
    #[inline]
    pub fn arguments(
        &self,
    ) -> &std::collections::BTreeMap<
        super::super::super::api::EnvironmentVariable,
        String,
    > {
        &self.arguments
    }
}
