![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.chaos.kotlin.inputs.DiscreteActionArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-native-kotlin Show documentation
Show all versions of pulumi-azure-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.chaos.kotlin.inputs
import com.pulumi.azurenative.chaos.inputs.DiscreteActionArgs.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 com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* Model that represents a discrete action.
* @property name String that represents a Capability URN.
* @property parameters List of key value pairs.
* @property selectorId String that represents a selector.
* @property type Enum that discriminates between action models.
* Expected value is 'discrete'.
*/
public data class DiscreteActionArgs(
public val name: Output,
public val parameters: Output>,
public val selectorId: Output,
public val type: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.chaos.inputs.DiscreteActionArgs =
com.pulumi.azurenative.chaos.inputs.DiscreteActionArgs.builder()
.name(name.applyValue({ args0 -> args0 }))
.parameters(
parameters.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.selectorId(selectorId.applyValue({ args0 -> args0 }))
.type(type.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [DiscreteActionArgs].
*/
@PulumiTagMarker
public class DiscreteActionArgsBuilder internal constructor() {
private var name: Output? = null
private var parameters: Output>? = null
private var selectorId: Output? = null
private var type: Output? = null
/**
* @param value String that represents a Capability URN.
*/
@JvmName("pllarrtialpmahfr")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value List of key value pairs.
*/
@JvmName("xhbemrlljtbuwiac")
public suspend fun parameters(`value`: Output>) {
this.parameters = value
}
@JvmName("hnimuajujpykdrds")
public suspend fun parameters(vararg values: Output) {
this.parameters = Output.all(values.asList())
}
/**
* @param values List of key value pairs.
*/
@JvmName("vnirmartkkuqwmsg")
public suspend fun parameters(values: List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy