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

com.pulumi.azure.automation.kotlin.inputs.RunBookJobScheduleArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.automation.kotlin.inputs

import com.pulumi.azure.automation.inputs.RunBookJobScheduleArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 *
 * @property jobScheduleId The UUID of automation runbook job schedule ID.
 * @property parameters A map of key/value pairs corresponding to the arguments that can be passed to the Runbook.
 * > **NOTE:** The parameter keys/names must strictly be in lowercase, even if this is not the case in the runbook. This is due to a limitation in Azure Automation where the parameter names are normalized. The values specified don't have this limitation.
 * @property runOn Name of a Hybrid Worker Group the Runbook will be executed on.
 * @property scheduleName The name of the Schedule.
 */
public data class RunBookJobScheduleArgs(
    public val jobScheduleId: Output? = null,
    public val parameters: Output>? = null,
    public val runOn: Output? = null,
    public val scheduleName: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.automation.inputs.RunBookJobScheduleArgs =
        com.pulumi.azure.automation.inputs.RunBookJobScheduleArgs.builder()
            .jobScheduleId(jobScheduleId?.applyValue({ args0 -> args0 }))
            .parameters(
                parameters?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            )
            .runOn(runOn?.applyValue({ args0 -> args0 }))
            .scheduleName(scheduleName.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [RunBookJobScheduleArgs].
 */
@PulumiTagMarker
public class RunBookJobScheduleArgsBuilder internal constructor() {
    private var jobScheduleId: Output? = null

    private var parameters: Output>? = null

    private var runOn: Output? = null

    private var scheduleName: Output? = null

    /**
     * @param value The UUID of automation runbook job schedule ID.
     */
    @JvmName("guuchdxisvkkigdo")
    public suspend fun jobScheduleId(`value`: Output) {
        this.jobScheduleId = value
    }

    /**
     * @param value A map of key/value pairs corresponding to the arguments that can be passed to the Runbook.
     * > **NOTE:** The parameter keys/names must strictly be in lowercase, even if this is not the case in the runbook. This is due to a limitation in Azure Automation where the parameter names are normalized. The values specified don't have this limitation.
     */
    @JvmName("hyjohgevehgpiafm")
    public suspend fun parameters(`value`: Output>) {
        this.parameters = value
    }

    /**
     * @param value Name of a Hybrid Worker Group the Runbook will be executed on.
     */
    @JvmName("qeeidajolmyqbfcg")
    public suspend fun runOn(`value`: Output) {
        this.runOn = value
    }

    /**
     * @param value The name of the Schedule.
     */
    @JvmName("lqvlglqbwmssdrtk")
    public suspend fun scheduleName(`value`: Output) {
        this.scheduleName = value
    }

    /**
     * @param value The UUID of automation runbook job schedule ID.
     */
    @JvmName("mggtmuyotoywtceh")
    public suspend fun jobScheduleId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.jobScheduleId = mapped
    }

    /**
     * @param value A map of key/value pairs corresponding to the arguments that can be passed to the Runbook.
     * > **NOTE:** The parameter keys/names must strictly be in lowercase, even if this is not the case in the runbook. This is due to a limitation in Azure Automation where the parameter names are normalized. The values specified don't have this limitation.
     */
    @JvmName("puacdbdjigdxjvpp")
    public suspend fun parameters(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.parameters = mapped
    }

    /**
     * @param values A map of key/value pairs corresponding to the arguments that can be passed to the Runbook.
     * > **NOTE:** The parameter keys/names must strictly be in lowercase, even if this is not the case in the runbook. This is due to a limitation in Azure Automation where the parameter names are normalized. The values specified don't have this limitation.
     */
    @JvmName("oblajiqxmhkbwwdp")
    public fun parameters(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.parameters = mapped
    }

    /**
     * @param value Name of a Hybrid Worker Group the Runbook will be executed on.
     */
    @JvmName("thtwfgwbvviwlfpn")
    public suspend fun runOn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.runOn = mapped
    }

    /**
     * @param value The name of the Schedule.
     */
    @JvmName("tmrcggujmrlothwe")
    public suspend fun scheduleName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.scheduleName = mapped
    }

    internal fun build(): RunBookJobScheduleArgs = RunBookJobScheduleArgs(
        jobScheduleId = jobScheduleId,
        parameters = parameters,
        runOn = runOn,
        scheduleName = scheduleName ?: throw PulumiNullFieldException("scheduleName"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy