com.pulumi.azurenative.network.kotlin.inputs.GroupByVariableArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.network.kotlin.inputs
import com.pulumi.azurenative.network.inputs.GroupByVariableArgs.builder
import com.pulumi.azurenative.network.kotlin.enums.ApplicationGatewayFirewallUserSessionVariable
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.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Define user session group by clause variables.
* @property variableName User Session clause variable.
*/
public data class GroupByVariableArgs(
public val variableName: Output>,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.network.inputs.GroupByVariableArgs =
com.pulumi.azurenative.network.inputs.GroupByVariableArgs.builder()
.variableName(
variableName.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
).build()
}
/**
* Builder for [GroupByVariableArgs].
*/
@PulumiTagMarker
public class GroupByVariableArgsBuilder internal constructor() {
private var variableName: Output>? =
null
/**
* @param value User Session clause variable.
*/
@JvmName("gyojtujkdpexxyjr")
public suspend fun variableName(`value`: Output>) {
this.variableName = value
}
/**
* @param value User Session clause variable.
*/
@JvmName("menmxchcuhieomrd")
public suspend fun variableName(`value`: Either) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.variableName = mapped
}
/**
* @param value User Session clause variable.
*/
@JvmName("svssymlswixxoojx")
public fun variableName(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.variableName = mapped
}
/**
* @param value User Session clause variable.
*/
@JvmName("xfbjruhksdyacgmt")
public fun variableName(`value`: ApplicationGatewayFirewallUserSessionVariable) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.variableName = mapped
}
internal fun build(): GroupByVariableArgs = GroupByVariableArgs(
variableName = variableName ?: throw PulumiNullFieldException("variableName"),
)
}