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

com.pulumi.azurenative.hdinsight.kotlin.inputs.RuntimeScriptActionArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.hdinsight.kotlin.inputs

import com.pulumi.azurenative.hdinsight.inputs.RuntimeScriptActionArgs.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.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Describes a script action on a running cluster.
 * @property name The name of the script action.
 * @property parameters The parameters for the script
 * @property roles The list of roles where script will be executed.
 * @property uri The URI to the script.
 */
public data class RuntimeScriptActionArgs(
    public val name: Output,
    public val parameters: Output? = null,
    public val roles: Output>,
    public val uri: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.hdinsight.inputs.RuntimeScriptActionArgs =
        com.pulumi.azurenative.hdinsight.inputs.RuntimeScriptActionArgs.builder()
            .name(name.applyValue({ args0 -> args0 }))
            .parameters(parameters?.applyValue({ args0 -> args0 }))
            .roles(roles.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .uri(uri.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [RuntimeScriptActionArgs].
 */
@PulumiTagMarker
public class RuntimeScriptActionArgsBuilder 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 name of the script action.
     */
    @JvmName("pnogmdydgvuiyame")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

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

    /**
     * @param value The list of roles where script will be executed.
     */
    @JvmName("wsdxvdtncxppxfwc")
    public suspend fun roles(`value`: Output>) {
        this.roles = value
    }

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

    /**
     * @param values The list of roles where script will be executed.
     */
    @JvmName("fbvvcxagjtkyubyh")
    public suspend fun roles(values: List>) {
        this.roles = Output.all(values)
    }

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

    /**
     * @param value The name of the script action.
     */
    @JvmName("tioxxrsbaolrtwlo")
    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
     */
    @JvmName("iqmuuwiqkfafopjk")
    public suspend fun parameters(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.parameters = mapped
    }

    /**
     * @param value The list of roles where script will be executed.
     */
    @JvmName("xsujegfddtuebplj")
    public suspend fun roles(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.roles = mapped
    }

    /**
     * @param values The list of roles where script will be executed.
     */
    @JvmName("niriovxenyiroqkw")
    public suspend fun roles(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.roles = mapped
    }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy