All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.kubernetes.batch.v1beta1.kotlin.inputs.JobTemplateSpecPatchArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.kubernetes.batch.v1beta1.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import com.pulumi.kubernetes.batch.v1.kotlin.inputs.JobSpecPatchArgs
import com.pulumi.kubernetes.batch.v1.kotlin.inputs.JobSpecPatchArgsBuilder
import com.pulumi.kubernetes.batch.v1beta1.inputs.JobTemplateSpecPatchArgs.builder
import com.pulumi.kubernetes.meta.v1.kotlin.inputs.ObjectMetaPatchArgs
import com.pulumi.kubernetes.meta.v1.kotlin.inputs.ObjectMetaPatchArgsBuilder
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 * JobTemplateSpec describes the data a Job should have when created from a template
 * @property metadata Standard object's metadata of the jobs created from this template. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
 * @property spec Specification of the desired behavior of the job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
 */
public data class JobTemplateSpecPatchArgs(
    public val metadata: Output? = null,
    public val spec: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.kubernetes.batch.v1beta1.inputs.JobTemplateSpecPatchArgs =
        com.pulumi.kubernetes.batch.v1beta1.inputs.JobTemplateSpecPatchArgs.builder()
            .metadata(metadata?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .spec(spec?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [JobTemplateSpecPatchArgs].
 */
@PulumiTagMarker
public class JobTemplateSpecPatchArgsBuilder internal constructor() {
    private var metadata: Output? = null

    private var spec: Output? = null

    /**
     * @param value Standard object's metadata of the jobs created from this template. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
     */
    @JvmName("gmihtkmyqbapbisw")
    public suspend fun metadata(`value`: Output) {
        this.metadata = value
    }

    /**
     * @param value Specification of the desired behavior of the job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
     */
    @JvmName("jftrxadhvqhivwtc")
    public suspend fun spec(`value`: Output) {
        this.spec = value
    }

    /**
     * @param value Standard object's metadata of the jobs created from this template. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
     */
    @JvmName("qlcioattymgylbrw")
    public suspend fun metadata(`value`: ObjectMetaPatchArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.metadata = mapped
    }

    /**
     * @param argument Standard object's metadata of the jobs created from this template. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
     */
    @JvmName("qrqnombjbiedmqdy")
    public suspend fun metadata(argument: suspend ObjectMetaPatchArgsBuilder.() -> Unit) {
        val toBeMapped = ObjectMetaPatchArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.metadata = mapped
    }

    /**
     * @param value Specification of the desired behavior of the job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
     */
    @JvmName("lhplgdjklbcnkwqg")
    public suspend fun spec(`value`: JobSpecPatchArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.spec = mapped
    }

    /**
     * @param argument Specification of the desired behavior of the job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
     */
    @JvmName("cvhqjepmfirnhapw")
    public suspend fun spec(argument: suspend JobSpecPatchArgsBuilder.() -> Unit) {
        val toBeMapped = JobSpecPatchArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.spec = mapped
    }

    internal fun build(): JobTemplateSpecPatchArgs = JobTemplateSpecPatchArgs(
        metadata = metadata,
        spec = spec,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy