com.pulumi.gcp.diagflow.kotlin.inputs.CxIntentTrainingPhrasePartArgs.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.diagflow.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.diagflow.inputs.CxIntentTrainingPhrasePartArgs.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 parameterId The parameter used to annotate this part of the training phrase. This field is required for annotated parts of the training phrase.
* @property text The text for this part.
*/
public data class CxIntentTrainingPhrasePartArgs(
public val parameterId: Output? = null,
public val text: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.diagflow.inputs.CxIntentTrainingPhrasePartArgs =
com.pulumi.gcp.diagflow.inputs.CxIntentTrainingPhrasePartArgs.builder()
.parameterId(parameterId?.applyValue({ args0 -> args0 }))
.text(text.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [CxIntentTrainingPhrasePartArgs].
*/
@PulumiTagMarker
public class CxIntentTrainingPhrasePartArgsBuilder internal constructor() {
private var parameterId: Output? = null
private var text: Output? = null
/**
* @param value The parameter used to annotate this part of the training phrase. This field is required for annotated parts of the training phrase.
*/
@JvmName("qwhyhkiigrbrehcr")
public suspend fun parameterId(`value`: Output) {
this.parameterId = value
}
/**
* @param value The text for this part.
*/
@JvmName("iuhigegisvwcddad")
public suspend fun text(`value`: Output) {
this.text = value
}
/**
* @param value The parameter used to annotate this part of the training phrase. This field is required for annotated parts of the training phrase.
*/
@JvmName("qjowpswqaoyejnfy")
public suspend fun parameterId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.parameterId = mapped
}
/**
* @param value The text for this part.
*/
@JvmName("hwrlffgpygymfrsw")
public suspend fun text(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.text = mapped
}
internal fun build(): CxIntentTrainingPhrasePartArgs = CxIntentTrainingPhrasePartArgs(
parameterId = parameterId,
text = text ?: throw PulumiNullFieldException("text"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy