
com.pulumi.googlenative.dialogflow.v3beta1.kotlin.VersionArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-google-native-kotlin Show documentation
Show all versions of pulumi-google-native-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.
The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.googlenative.dialogflow.v3beta1.kotlin
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.googlenative.dialogflow.v3beta1.VersionArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Creates a Version in the specified Flow. This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: - `metadata`: CreateVersionOperationMetadata - `response`: Version
* @property agentId
* @property description The description of the version. The maximum length is 500 characters. If exceeded, the request is rejected.
* @property displayName The human-readable name of the version. Limit of 64 characters.
* @property flowId
* @property location
* @property name Format: projects//locations//agents//flows//versions/. Version ID is a self-increasing number generated by Dialogflow upon version creation.
* @property project
*/
public data class VersionArgs(
public val agentId: Output? = null,
public val description: Output? = null,
public val displayName: Output? = null,
public val flowId: Output? = null,
public val location: Output? = null,
public val name: Output? = null,
public val project: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.googlenative.dialogflow.v3beta1.VersionArgs =
com.pulumi.googlenative.dialogflow.v3beta1.VersionArgs.builder()
.agentId(agentId?.applyValue({ args0 -> args0 }))
.description(description?.applyValue({ args0 -> args0 }))
.displayName(displayName?.applyValue({ args0 -> args0 }))
.flowId(flowId?.applyValue({ args0 -> args0 }))
.location(location?.applyValue({ args0 -> args0 }))
.name(name?.applyValue({ args0 -> args0 }))
.project(project?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [VersionArgs].
*/
@PulumiTagMarker
public class VersionArgsBuilder internal constructor() {
private var agentId: Output? = null
private var description: Output? = null
private var displayName: Output? = null
private var flowId: Output? = null
private var location: Output? = null
private var name: Output? = null
private var project: Output? = null
/**
* @param value
*/
@JvmName("pwqyriysptpvlelf")
public suspend fun agentId(`value`: Output) {
this.agentId = value
}
/**
* @param value The description of the version. The maximum length is 500 characters. If exceeded, the request is rejected.
*/
@JvmName("jenysfemygdfxjuk")
public suspend fun description(`value`: Output) {
this.description = value
}
/**
* @param value The human-readable name of the version. Limit of 64 characters.
*/
@JvmName("qobllnpplyhvlvoe")
public suspend fun displayName(`value`: Output) {
this.displayName = value
}
/**
* @param value
*/
@JvmName("xlrpiulybkqjfxhi")
public suspend fun flowId(`value`: Output) {
this.flowId = value
}
/**
* @param value
*/
@JvmName("xqmudvntgyrctwkc")
public suspend fun location(`value`: Output) {
this.location = value
}
/**
* @param value Format: projects//locations//agents//flows//versions/. Version ID is a self-increasing number generated by Dialogflow upon version creation.
*/
@JvmName("pgigpoiumjkdthnh")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value
*/
@JvmName("hiemepkhkxtsxfju")
public suspend fun project(`value`: Output) {
this.project = value
}
/**
* @param value
*/
@JvmName("pexrtbkychwclnlu")
public suspend fun agentId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.agentId = mapped
}
/**
* @param value The description of the version. The maximum length is 500 characters. If exceeded, the request is rejected.
*/
@JvmName("oexpkcqdntjuxcib")
public suspend fun description(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.description = mapped
}
/**
* @param value The human-readable name of the version. Limit of 64 characters.
*/
@JvmName("hnahjrnuwcbvnsmi")
public suspend fun displayName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.displayName = mapped
}
/**
* @param value
*/
@JvmName("jtouiaqturbvgime")
public suspend fun flowId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.flowId = mapped
}
/**
* @param value
*/
@JvmName("bokfqrbdeabgogjp")
public suspend fun location(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.location = mapped
}
/**
* @param value Format: projects//locations//agents//flows//versions/. Version ID is a self-increasing number generated by Dialogflow upon version creation.
*/
@JvmName("oltcjchtgdytqewf")
public suspend fun name(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value
*/
@JvmName("rqurtlrdgfblmdpe")
public suspend fun project(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.project = mapped
}
internal fun build(): VersionArgs = VersionArgs(
agentId = agentId,
description = description,
displayName = displayName,
flowId = flowId,
location = location,
name = name,
project = project,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy