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

com.pulumi.azurenative.datafactory.kotlin.inputs.ScriptActionArgs.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.datafactory.kotlin.inputs

import com.pulumi.azurenative.datafactory.inputs.ScriptActionArgs.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.Any
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * Custom script action to run on HDI ondemand cluster once it's up.
 * @property name The user provided name of the script action.
 * @property parameters The parameters for the script action.
 * @property roles The node types on which the script action should be executed.
 * @property uri The URI for the script action.
 */
public data class ScriptActionArgs(
    public val name: Output,
    public val parameters: Output? = null,
    public val roles: Output,
    public val uri: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.datafactory.inputs.ScriptActionArgs =
        com.pulumi.azurenative.datafactory.inputs.ScriptActionArgs.builder()
            .name(name.applyValue({ args0 -> args0 }))
            .parameters(parameters?.applyValue({ args0 -> args0 }))
            .roles(roles.applyValue({ args0 -> args0 }))
            .uri(uri.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ScriptActionArgs].
 */
@PulumiTagMarker
public class ScriptActionArgsBuilder internal constructor() {
    private var name: Output? = null

    private var parameters: Output? = null

    private var roles: Output? = null

    private var uri: Output? = null

    /**
     * @param value The user provided name of the script action.
     */
    @JvmName("penuawfrdfdbhijy")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The parameters for the script action.
     */
    @JvmName("dddnitnfsfexpckb")
    public suspend fun parameters(`value`: Output) {
        this.parameters = value
    }

    /**
     * @param value The node types on which the script action should be executed.
     */
    @JvmName("awhbpbobemsqcafa")
    public suspend fun roles(`value`: Output) {
        this.roles = value
    }

    /**
     * @param value The URI for the script action.
     */
    @JvmName("sswnwgijckbbcrss")
    public suspend fun uri(`value`: Output) {
        this.uri = value
    }

    /**
     * @param value The user provided name of the script action.
     */
    @JvmName("lmetmeulxsjhfyqh")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The parameters for the script action.
     */
    @JvmName("pqrffjokxeyqymvw")
    public suspend fun parameters(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.parameters = mapped
    }

    /**
     * @param value The node types on which the script action should be executed.
     */
    @JvmName("nrydvtenddxulmdk")
    public suspend fun roles(`value`: Any) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.roles = mapped
    }

    /**
     * @param value The URI for the script action.
     */
    @JvmName("ttswqqvwrgkvalgw")
    public suspend fun uri(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.uri = mapped
    }

    internal fun build(): ScriptActionArgs = ScriptActionArgs(
        name = name ?: throw PulumiNullFieldException("name"),
        parameters = parameters,
        roles = roles ?: throw PulumiNullFieldException("roles"),
        uri = uri ?: throw PulumiNullFieldException("uri"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy