com.pulumi.azurenative.insights.kotlin.inputs.DimensionArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.insights.kotlin.inputs
import com.pulumi.azurenative.insights.inputs.DimensionArgs.builder
import com.pulumi.azurenative.insights.kotlin.enums.DimensionOperator
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.collections.List
import kotlin.jvm.JvmName
/**
* Dimension splitting and filtering definition
* @property name Name of the dimension
* @property operator Operator for dimension values
* @property values List of dimension values
*/
public data class DimensionArgs(
public val name: Output,
public val `operator`: Output>,
public val values: Output>,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.insights.inputs.DimensionArgs =
com.pulumi.azurenative.insights.inputs.DimensionArgs.builder()
.name(name.applyValue({ args0 -> args0 }))
.`operator`(
`operator`.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.values(values.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}
/**
* Builder for [DimensionArgs].
*/
@PulumiTagMarker
public class DimensionArgsBuilder internal constructor() {
private var name: Output? = null
private var `operator`: Output>? = null
private var values: Output>? = null
/**
* @param value Name of the dimension
*/
@JvmName("cheixtasgbplyncf")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value Operator for dimension values
*/
@JvmName("vjlfqsrfeajlliwb")
public suspend fun `operator`(`value`: Output>) {
this.`operator` = value
}
/**
* @param value List of dimension values
*/
@JvmName("foeevqcqbevuwuer")
public suspend fun values(`value`: Output>) {
this.values = value
}
@JvmName("scwubplfunaqmqdw")
public suspend fun values(vararg values: Output) {
this.values = Output.all(values.asList())
}
/**
* @param values List of dimension values
*/
@JvmName("qfpofrairoixxwxx")
public suspend fun values(values: List