com.pulumi.gcp.logging.kotlin.inputs.MetricMetricDescriptorLabelArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-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.gcp.logging.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.logging.inputs.MetricMetricDescriptorLabelArgs.builder
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
/**
*
* @property description A human-readable description for the label.
* @property key The label key.
* @property valueType The type of data that can be assigned to the label.
* Default value is `STRING`.
* Possible values are: `BOOL`, `INT64`, `STRING`.
*/
public data class MetricMetricDescriptorLabelArgs(
public val description: Output? = null,
public val key: Output,
public val valueType: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.logging.inputs.MetricMetricDescriptorLabelArgs =
com.pulumi.gcp.logging.inputs.MetricMetricDescriptorLabelArgs.builder()
.description(description?.applyValue({ args0 -> args0 }))
.key(key.applyValue({ args0 -> args0 }))
.valueType(valueType?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [MetricMetricDescriptorLabelArgs].
*/
@PulumiTagMarker
public class MetricMetricDescriptorLabelArgsBuilder internal constructor() {
private var description: Output? = null
private var key: Output? = null
private var valueType: Output? = null
/**
* @param value A human-readable description for the label.
*/
@JvmName("tiwvpeppefxgcrfp")
public suspend fun description(`value`: Output) {
this.description = value
}
/**
* @param value The label key.
*/
@JvmName("ehsfefbxwrojrkmv")
public suspend fun key(`value`: Output) {
this.key = value
}
/**
* @param value The type of data that can be assigned to the label.
* Default value is `STRING`.
* Possible values are: `BOOL`, `INT64`, `STRING`.
*/
@JvmName("mbjdmyglyyhovpat")
public suspend fun valueType(`value`: Output) {
this.valueType = value
}
/**
* @param value A human-readable description for the label.
*/
@JvmName("edxgbcuymxngtrvi")
public suspend fun description(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.description = mapped
}
/**
* @param value The label key.
*/
@JvmName("jsurhkpgbasybnla")
public suspend fun key(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.key = mapped
}
/**
* @param value The type of data that can be assigned to the label.
* Default value is `STRING`.
* Possible values are: `BOOL`, `INT64`, `STRING`.
*/
@JvmName("gyjdchxhdprksouw")
public suspend fun valueType(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.valueType = mapped
}
internal fun build(): MetricMetricDescriptorLabelArgs = MetricMetricDescriptorLabelArgs(
description = description,
key = key ?: throw PulumiNullFieldException("key"),
valueType = valueType,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy