/// Ensures a Kubernetes secret of type kubernetes.io/dockerconfigjson exists
/// for the given registry credentials.
#[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 EnsureImagePullSecretCreatedRequest {
    #[serde(rename = "workspaceRid")]
    workspace_rid: conjure_object::ResourceIdentifier,
    #[builder(
        custom(type = super::super::super::api::DockerImageSource, convert = Box::new)
    )]
    #[serde(rename = "imageSource")]
    image_source: Box<super::super::super::api::DockerImageSource>,
    #[builder(
        custom(
            type = super::super::super::api::UserAndPasswordAuthentication,
            convert = Box::new
        )
    )]
    #[serde(rename = "authentication")]
    authentication: Box<super::super::super::api::UserAndPasswordAuthentication>,
    #[serde(rename = "ingestJobUuid")]
    ingest_job_uuid: conjure_object::Uuid,
    #[serde(rename = "bearerToken")]
    bearer_token: conjure_object::BearerToken,
}
impl EnsureImagePullSecretCreatedRequest {
    #[inline]
    pub fn workspace_rid(&self) -> &conjure_object::ResourceIdentifier {
        &self.workspace_rid
    }
    #[inline]
    pub fn image_source(&self) -> &super::super::super::api::DockerImageSource {
        &*self.image_source
    }
    #[inline]
    pub fn authentication(
        &self,
    ) -> &super::super::super::api::UserAndPasswordAuthentication {
        &*self.authentication
    }
    #[inline]
    pub fn ingest_job_uuid(&self) -> conjure_object::Uuid {
        self.ingest_job_uuid
    }
    #[inline]
    pub fn bearer_token(&self) -> &conjure_object::BearerToken {
        &self.bearer_token
    }
}
