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

com.pulumi.awsnative.fis.kotlin.inputs.ExperimentTemplateActionArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.fis.kotlin.inputs

import com.pulumi.awsnative.fis.inputs.ExperimentTemplateActionArgs.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.List
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * Specifies an action for the experiment template.
 * @property actionId The ID of the action.
 * @property description A description for the action.
 * @property parameters The parameters for the action, if applicable.
 * @property startAfter The name of the action that must be completed before the current action starts.
 * @property targets One or more targets for the action.
 */
public data class ExperimentTemplateActionArgs(
    public val actionId: Output,
    public val description: Output? = null,
    public val parameters: Output>? = null,
    public val startAfter: Output>? = null,
    public val targets: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.fis.inputs.ExperimentTemplateActionArgs =
        com.pulumi.awsnative.fis.inputs.ExperimentTemplateActionArgs.builder()
            .actionId(actionId.applyValue({ args0 -> args0 }))
            .description(description?.applyValue({ args0 -> args0 }))
            .parameters(
                parameters?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            )
            .startAfter(startAfter?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .targets(
                targets?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

/**
 * Builder for [ExperimentTemplateActionArgs].
 */
@PulumiTagMarker
public class ExperimentTemplateActionArgsBuilder internal constructor() {
    private var actionId: Output? = null

    private var description: Output? = null

    private var parameters: Output>? = null

    private var startAfter: Output>? = null

    private var targets: Output>? = null

    /**
     * @param value The ID of the action.
     */
    @JvmName("grhqikfegabcdasl")
    public suspend fun actionId(`value`: Output) {
        this.actionId = value
    }

    /**
     * @param value A description for the action.
     */
    @JvmName("eehnouyjhtjjcxgj")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value The parameters for the action, if applicable.
     */
    @JvmName("jbmgwmsogenuxqjd")
    public suspend fun parameters(`value`: Output>) {
        this.parameters = value
    }

    /**
     * @param value The name of the action that must be completed before the current action starts.
     */
    @JvmName("gdjgxylhddvugqlj")
    public suspend fun startAfter(`value`: Output>) {
        this.startAfter = value
    }

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

    /**
     * @param values The name of the action that must be completed before the current action starts.
     */
    @JvmName("ivivpfysnqmdloma")
    public suspend fun startAfter(values: List>) {
        this.startAfter = Output.all(values)
    }

    /**
     * @param value One or more targets for the action.
     */
    @JvmName("rbseorxytvnqbmba")
    public suspend fun targets(`value`: Output>) {
        this.targets = value
    }

    /**
     * @param value The ID of the action.
     */
    @JvmName("kmmqixujitkgerjx")
    public suspend fun actionId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.actionId = mapped
    }

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

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

    /**
     * @param values The parameters for the action, if applicable.
     */
    @JvmName("qfhgcrwyflbctvls")
    public fun parameters(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.parameters = mapped
    }

    /**
     * @param value The name of the action that must be completed before the current action starts.
     */
    @JvmName("ctsuytnivkoihkpm")
    public suspend fun startAfter(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.startAfter = mapped
    }

    /**
     * @param values The name of the action that must be completed before the current action starts.
     */
    @JvmName("yfdyxlaqffyjinhq")
    public suspend fun startAfter(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.startAfter = mapped
    }

    /**
     * @param value One or more targets for the action.
     */
    @JvmName("nktlttfbqdecjbss")
    public suspend fun targets(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.targets = mapped
    }

    /**
     * @param values One or more targets for the action.
     */
    @JvmName("vxikekkopaujtgul")
    public fun targets(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.targets = mapped
    }

    internal fun build(): ExperimentTemplateActionArgs = ExperimentTemplateActionArgs(
        actionId = actionId ?: throw PulumiNullFieldException("actionId"),
        description = description,
        parameters = parameters,
        startAfter = startAfter,
        targets = targets,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy