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

com.pulumi.azurenative.appplatform.kotlin.inputs.JobResourcePropertiesArgs.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.

There is a newer version: 2.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.appplatform.kotlin.inputs

import com.pulumi.azurenative.appplatform.inputs.JobResourcePropertiesArgs.builder
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 kotlin.Any
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Job resource properties payload
 * @property managedComponentReferences Referenced managed components collection
 * @property source Uploaded source information of the Job.
 * @property template The template which is applied for all executions of the Job.
 * @property triggerConfig The Job trigger related configuration.
 */
public data class JobResourcePropertiesArgs(
    public val managedComponentReferences: Output>? = null,
    public val source: Output? = null,
    public val template: Output? = null,
    public val triggerConfig: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.appplatform.inputs.JobResourcePropertiesArgs =
        com.pulumi.azurenative.appplatform.inputs.JobResourcePropertiesArgs.builder()
            .managedComponentReferences(
                managedComponentReferences?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .source(source?.applyValue({ args0 -> args0 }))
            .template(template?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .triggerConfig(triggerConfig?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [JobResourcePropertiesArgs].
 */
@PulumiTagMarker
public class JobResourcePropertiesArgsBuilder internal constructor() {
    private var managedComponentReferences: Output>? = null

    private var source: Output? = null

    private var template: Output? = null

    private var triggerConfig: Output? = null

    /**
     * @param value Referenced managed components collection
     */
    @JvmName("lkdoisgpphonyyxk")
    public suspend fun managedComponentReferences(`value`: Output>) {
        this.managedComponentReferences = value
    }

    @JvmName("poegftskxiskasyv")
    public suspend fun managedComponentReferences(vararg values: Output) {
        this.managedComponentReferences = Output.all(values.asList())
    }

    /**
     * @param values Referenced managed components collection
     */
    @JvmName("kcaqrqtowdleoboy")
    public suspend fun managedComponentReferences(values: List>) {
        this.managedComponentReferences = Output.all(values)
    }

    /**
     * @param value Uploaded source information of the Job.
     */
    @JvmName("bvbkxdgojmqmviji")
    public suspend fun source(`value`: Output) {
        this.source = value
    }

    /**
     * @param value The template which is applied for all executions of the Job.
     */
    @JvmName("qbnjsljnosgknkhf")
    public suspend fun template(`value`: Output) {
        this.template = value
    }

    /**
     * @param value The Job trigger related configuration.
     */
    @JvmName("niiniwgjxfyywfps")
    public suspend fun triggerConfig(`value`: Output) {
        this.triggerConfig = value
    }

    /**
     * @param value Referenced managed components collection
     */
    @JvmName("enekrfbgfrleajsb")
    public suspend fun managedComponentReferences(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.managedComponentReferences = mapped
    }

    /**
     * @param argument Referenced managed components collection
     */
    @JvmName("jqgorivgspgiqshu")
    public suspend fun managedComponentReferences(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ManagedComponentReferenceArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.managedComponentReferences = mapped
    }

    /**
     * @param argument Referenced managed components collection
     */
    @JvmName("ffdgfivpfolyfbjp")
    public suspend fun managedComponentReferences(vararg argument: suspend ManagedComponentReferenceArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ManagedComponentReferenceArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.managedComponentReferences = mapped
    }

    /**
     * @param argument Referenced managed components collection
     */
    @JvmName("vtrionrkkuptdgwh")
    public suspend fun managedComponentReferences(argument: suspend ManagedComponentReferenceArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            ManagedComponentReferenceArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.managedComponentReferences = mapped
    }

    /**
     * @param values Referenced managed components collection
     */
    @JvmName("vaggjkcalmohegse")
    public suspend fun managedComponentReferences(vararg values: ManagedComponentReferenceArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.managedComponentReferences = mapped
    }

    /**
     * @param value Uploaded source information of the Job.
     */
    @JvmName("hiqydnongieqptcq")
    public suspend fun source(`value`: Any?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.source = mapped
    }

    /**
     * @param value The template which is applied for all executions of the Job.
     */
    @JvmName("sadvfwkpevxgiruh")
    public suspend fun template(`value`: JobExecutionTemplateArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.template = mapped
    }

    /**
     * @param argument The template which is applied for all executions of the Job.
     */
    @JvmName("lpxfteapnuhvcduk")
    public suspend fun template(argument: suspend JobExecutionTemplateArgsBuilder.() -> Unit) {
        val toBeMapped = JobExecutionTemplateArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.template = mapped
    }

    /**
     * @param value The Job trigger related configuration.
     */
    @JvmName("cjyhurdwjmottbii")
    public suspend fun triggerConfig(`value`: ManualJobTriggerConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.triggerConfig = mapped
    }

    /**
     * @param argument The Job trigger related configuration.
     */
    @JvmName("kgtgykqdnsgjfmru")
    public suspend fun triggerConfig(argument: suspend ManualJobTriggerConfigArgsBuilder.() -> Unit) {
        val toBeMapped = ManualJobTriggerConfigArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.triggerConfig = mapped
    }

    internal fun build(): JobResourcePropertiesArgs = JobResourcePropertiesArgs(
        managedComponentReferences = managedComponentReferences,
        source = source,
        template = template,
        triggerConfig = triggerConfig,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy