
com.pulumi.azurenative.networkcloud.kotlin.inputs.ValidationThresholdArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.networkcloud.kotlin.inputs
import com.pulumi.azurenative.networkcloud.inputs.ValidationThresholdArgs.builder
import com.pulumi.azurenative.networkcloud.kotlin.enums.ValidationThresholdGrouping
import com.pulumi.azurenative.networkcloud.kotlin.enums.ValidationThresholdType
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.Double
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property grouping Selection of how the type evaluation is applied to the cluster calculation.
* @property type Selection of how the threshold should be evaluated.
* @property value The numeric threshold value.
*/
public data class ValidationThresholdArgs(
public val grouping: Output>,
public val type: Output>,
public val `value`: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.networkcloud.inputs.ValidationThresholdArgs =
com.pulumi.azurenative.networkcloud.inputs.ValidationThresholdArgs.builder()
.grouping(
grouping.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 [ValidationThresholdArgs].
*/
@PulumiTagMarker
public class ValidationThresholdArgsBuilder internal constructor() {
private var grouping: Output>? = null
private var type: Output>? = null
private var `value`: Output? = null
/**
* @param value Selection of how the type evaluation is applied to the cluster calculation.
*/
@JvmName("rejiticiddjhebsy")
public suspend fun grouping(`value`: Output>) {
this.grouping = value
}
/**
* @param value Selection of how the threshold should be evaluated.
*/
@JvmName("rhjicuavaavuulcr")
public suspend fun type(`value`: Output>) {
this.type = value
}
/**
* @param value The numeric threshold value.
*/
@JvmName("movdkcprgixyqkyy")
public suspend fun `value`(`value`: Output) {
this.`value` = value
}
/**
* @param value Selection of how the type evaluation is applied to the cluster calculation.
*/
@JvmName("onqhxmlrwfjvgsgu")
public suspend fun grouping(`value`: Either) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.grouping = mapped
}
/**
* @param value Selection of how the type evaluation is applied to the cluster calculation.
*/
@JvmName("lnnrvbehgjrsejau")
public fun grouping(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.grouping = mapped
}
/**
* @param value Selection of how the type evaluation is applied to the cluster calculation.
*/
@JvmName("syaxxdmhkakabugp")
public fun grouping(`value`: ValidationThresholdGrouping) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.grouping = mapped
}
/**
* @param value Selection of how the threshold should be evaluated.
*/
@JvmName("iietnplepmyhdqwq")
public suspend fun type(`value`: Either) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.type = mapped
}
/**
* @param value Selection of how the threshold should be evaluated.
*/
@JvmName("pwycnllwnacnacts")
public fun type(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.type = mapped
}
/**
* @param value Selection of how the threshold should be evaluated.
*/
@JvmName("llwxromchxkanyek")
public fun type(`value`: ValidationThresholdType) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.type = mapped
}
/**
* @param value The numeric threshold value.
*/
@JvmName("xosapfeoexdsaarc")
public suspend fun `value`(`value`: Double) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.`value` = mapped
}
internal fun build(): ValidationThresholdArgs = ValidationThresholdArgs(
grouping = grouping ?: throw PulumiNullFieldException("grouping"),
type = type ?: throw PulumiNullFieldException("type"),
`value` = `value` ?: throw PulumiNullFieldException("value"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy