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

com.pulumi.azurenative.scheduler.kotlin.JobArgs.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.scheduler.kotlin

import com.pulumi.azurenative.scheduler.JobArgs.builder
import com.pulumi.azurenative.scheduler.kotlin.inputs.JobPropertiesArgs
import com.pulumi.azurenative.scheduler.kotlin.inputs.JobPropertiesArgsBuilder
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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * Azure REST API version: 2016-03-01. Prior API version in Azure Native 1.x: 2016-03-01.
 * ## Import
 * An existing resource can be imported using its type token, name, and identifier, e.g.
 * ```sh
 * $ pulumi import azure-native:scheduler:Job myresource1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Scheduler/jobCollections/{jobCollectionName}/jobs/{jobName}
 * ```
 * @property jobCollectionName The job collection name.
 * @property jobName The job name.
 * @property properties Gets or sets the job properties.
 * @property resourceGroupName The resource group name.
 */
public data class JobArgs(
    public val jobCollectionName: Output? = null,
    public val jobName: Output? = null,
    public val properties: Output? = null,
    public val resourceGroupName: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.scheduler.JobArgs =
        com.pulumi.azurenative.scheduler.JobArgs.builder()
            .jobCollectionName(jobCollectionName?.applyValue({ args0 -> args0 }))
            .jobName(jobName?.applyValue({ args0 -> args0 }))
            .properties(properties?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [JobArgs].
 */
@PulumiTagMarker
public class JobArgsBuilder internal constructor() {
    private var jobCollectionName: Output? = null

    private var jobName: Output? = null

    private var properties: Output? = null

    private var resourceGroupName: Output? = null

    /**
     * @param value The job collection name.
     */
    @JvmName("uybpqasceadgrwqd")
    public suspend fun jobCollectionName(`value`: Output) {
        this.jobCollectionName = value
    }

    /**
     * @param value The job name.
     */
    @JvmName("vtuvrbiqtqjlipkt")
    public suspend fun jobName(`value`: Output) {
        this.jobName = value
    }

    /**
     * @param value Gets or sets the job properties.
     */
    @JvmName("weugmmqcqqlnptcp")
    public suspend fun properties(`value`: Output) {
        this.properties = value
    }

    /**
     * @param value The resource group name.
     */
    @JvmName("yobwvqoewxhdcgdf")
    public suspend fun resourceGroupName(`value`: Output) {
        this.resourceGroupName = value
    }

    /**
     * @param value The job collection name.
     */
    @JvmName("mwkgrltflfoptrnb")
    public suspend fun jobCollectionName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.jobCollectionName = mapped
    }

    /**
     * @param value The job name.
     */
    @JvmName("bxqtcbxqutnynnib")
    public suspend fun jobName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.jobName = mapped
    }

    /**
     * @param value Gets or sets the job properties.
     */
    @JvmName("lcyyxrxoncxkfgkd")
    public suspend fun properties(`value`: JobPropertiesArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.properties = mapped
    }

    /**
     * @param argument Gets or sets the job properties.
     */
    @JvmName("gdjtaceqwbbovajx")
    public suspend fun properties(argument: suspend JobPropertiesArgsBuilder.() -> Unit) {
        val toBeMapped = JobPropertiesArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.properties = mapped
    }

    /**
     * @param value The resource group name.
     */
    @JvmName("ydyaxkrfrirvpidr")
    public suspend fun resourceGroupName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resourceGroupName = mapped
    }

    internal fun build(): JobArgs = JobArgs(
        jobCollectionName = jobCollectionName,
        jobName = jobName,
        properties = properties,
        resourceGroupName = resourceGroupName,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy