
com.pulumi.awsnative.quicksight.kotlin.inputs.TopicNamedEntityDefinitionArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.quicksight.kotlin.inputs
import com.pulumi.awsnative.quicksight.inputs.TopicNamedEntityDefinitionArgs.builder
import com.pulumi.awsnative.quicksight.kotlin.enums.TopicPropertyRole
import com.pulumi.awsnative.quicksight.kotlin.enums.TopicPropertyUsage
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property fieldName The name of the entity.
* @property metric The definition of a metric.
* @property propertyName The property name to be used for the named entity.
* @property propertyRole The property role. Valid values for this structure are `PRIMARY` and `ID` .
* @property propertyUsage The property usage. Valid values for this structure are `INHERIT` , `DIMENSION` , and `MEASURE` .
*/
public data class TopicNamedEntityDefinitionArgs(
public val fieldName: Output? = null,
public val metric: Output? = null,
public val propertyName: Output? = null,
public val propertyRole: Output? = null,
public val propertyUsage: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.quicksight.inputs.TopicNamedEntityDefinitionArgs =
com.pulumi.awsnative.quicksight.inputs.TopicNamedEntityDefinitionArgs.builder()
.fieldName(fieldName?.applyValue({ args0 -> args0 }))
.metric(metric?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.propertyName(propertyName?.applyValue({ args0 -> args0 }))
.propertyRole(propertyRole?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.propertyUsage(propertyUsage?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [TopicNamedEntityDefinitionArgs].
*/
@PulumiTagMarker
public class TopicNamedEntityDefinitionArgsBuilder internal constructor() {
private var fieldName: Output? = null
private var metric: Output? = null
private var propertyName: Output? = null
private var propertyRole: Output? = null
private var propertyUsage: Output? = null
/**
* @param value The name of the entity.
*/
@JvmName("kqefxamucrvyhjkt")
public suspend fun fieldName(`value`: Output) {
this.fieldName = value
}
/**
* @param value The definition of a metric.
*/
@JvmName("kcyefxnkagcmtvju")
public suspend fun metric(`value`: Output) {
this.metric = value
}
/**
* @param value The property name to be used for the named entity.
*/
@JvmName("dfvoseghivlcvhuu")
public suspend fun propertyName(`value`: Output) {
this.propertyName = value
}
/**
* @param value The property role. Valid values for this structure are `PRIMARY` and `ID` .
*/
@JvmName("qympbeoxigodqykn")
public suspend fun propertyRole(`value`: Output) {
this.propertyRole = value
}
/**
* @param value The property usage. Valid values for this structure are `INHERIT` , `DIMENSION` , and `MEASURE` .
*/
@JvmName("ajqufbhlxicbvfae")
public suspend fun propertyUsage(`value`: Output) {
this.propertyUsage = value
}
/**
* @param value The name of the entity.
*/
@JvmName("xrtsitslirkjgxeu")
public suspend fun fieldName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.fieldName = mapped
}
/**
* @param value The definition of a metric.
*/
@JvmName("jrfaryrkcweyusuy")
public suspend fun metric(`value`: TopicNamedEntityDefinitionMetricArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.metric = mapped
}
/**
* @param argument The definition of a metric.
*/
@JvmName("wwsmgnxqlrvbsoxv")
public suspend fun metric(argument: suspend TopicNamedEntityDefinitionMetricArgsBuilder.() -> Unit) {
val toBeMapped = TopicNamedEntityDefinitionMetricArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.metric = mapped
}
/**
* @param value The property name to be used for the named entity.
*/
@JvmName("oqeidrkidkqngrnx")
public suspend fun propertyName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.propertyName = mapped
}
/**
* @param value The property role. Valid values for this structure are `PRIMARY` and `ID` .
*/
@JvmName("yctwlcaexnrnwhnf")
public suspend fun propertyRole(`value`: TopicPropertyRole?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.propertyRole = mapped
}
/**
* @param value The property usage. Valid values for this structure are `INHERIT` , `DIMENSION` , and `MEASURE` .
*/
@JvmName("rvecmtvkpcxcgkje")
public suspend fun propertyUsage(`value`: TopicPropertyUsage?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.propertyUsage = mapped
}
internal fun build(): TopicNamedEntityDefinitionArgs = TopicNamedEntityDefinitionArgs(
fieldName = fieldName,
metric = metric,
propertyName = propertyName,
propertyRole = propertyRole,
propertyUsage = propertyUsage,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy