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

com.pulumi.azurenative.sql.kotlin.inputs.JobStepActionArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.sql.kotlin.inputs

import com.pulumi.azurenative.sql.inputs.JobStepActionArgs.builder
import com.pulumi.azurenative.sql.kotlin.enums.JobStepActionSource
import com.pulumi.azurenative.sql.kotlin.enums.JobStepActionType
import com.pulumi.core.Either
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.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * The action to be executed by a job step.
 * @property source The source of the action to execute.
 * @property type Type of action being executed by the job step.
 * @property value The action value, for example the text of the T-SQL script to execute.
 */
public data class JobStepActionArgs(
    public val source: Output>? = null,
    public val type: Output>? = null,
    public val `value`: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.sql.inputs.JobStepActionArgs =
        com.pulumi.azurenative.sql.inputs.JobStepActionArgs.builder()
            .source(
                source?.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .type(
                type?.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .`value`(`value`.applyValue({ args0 -> args0 })).build()
}

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

    private var type: Output>? = null

    private var `value`: Output? = null

    /**
     * @param value The source of the action to execute.
     */
    @JvmName("nwplkrgkwqlhrqfr")
    public suspend fun source(`value`: Output>) {
        this.source = value
    }

    /**
     * @param value Type of action being executed by the job step.
     */
    @JvmName("emtomlkdpykhcjmw")
    public suspend fun type(`value`: Output>) {
        this.type = value
    }

    /**
     * @param value The action value, for example the text of the T-SQL script to execute.
     */
    @JvmName("ivmffttogroecvjm")
    public suspend fun `value`(`value`: Output) {
        this.`value` = value
    }

    /**
     * @param value The source of the action to execute.
     */
    @JvmName("fymsbmnuhvweseul")
    public suspend fun source(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.source = mapped
    }

    /**
     * @param value The source of the action to execute.
     */
    @JvmName("ytpmslqbavjetgwi")
    public fun source(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.source = mapped
    }

    /**
     * @param value The source of the action to execute.
     */
    @JvmName("dxqmllamvvqhshre")
    public fun source(`value`: JobStepActionSource) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.source = mapped
    }

    /**
     * @param value Type of action being executed by the job step.
     */
    @JvmName("khndvbshyfraiwtw")
    public suspend fun type(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.type = mapped
    }

    /**
     * @param value Type of action being executed by the job step.
     */
    @JvmName("jimwjbcqayeotcvo")
    public fun type(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

    /**
     * @param value Type of action being executed by the job step.
     */
    @JvmName("oyfsdixjtwbiyoem")
    public fun type(`value`: JobStepActionType) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

    /**
     * @param value The action value, for example the text of the T-SQL script to execute.
     */
    @JvmName("omeqbkupwojkfrff")
    public suspend fun `value`(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.`value` = mapped
    }

    internal fun build(): JobStepActionArgs = JobStepActionArgs(
        source = source,
        type = type,
        `value` = `value` ?: throw PulumiNullFieldException("value"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy