com.pulumi.digitalocean.kotlin.inputs.AppSpecWorkerLogDestinationLogtailArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.digitalocean.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.digitalocean.inputs.AppSpecWorkerLogDestinationLogtailArgs.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 token Logtail token.
* A `database` can contain:
*/
public data class AppSpecWorkerLogDestinationLogtailArgs(
public val token: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.digitalocean.inputs.AppSpecWorkerLogDestinationLogtailArgs =
com.pulumi.digitalocean.inputs.AppSpecWorkerLogDestinationLogtailArgs.builder()
.token(token.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [AppSpecWorkerLogDestinationLogtailArgs].
*/
@PulumiTagMarker
public class AppSpecWorkerLogDestinationLogtailArgsBuilder internal constructor() {
private var token: Output? = null
/**
* @param value Logtail token.
* A `database` can contain:
*/
@JvmName("xcfhtjwqysmycrax")
public suspend fun token(`value`: Output) {
this.token = value
}
/**
* @param value Logtail token.
* A `database` can contain:
*/
@JvmName("vdovdmulpalptgyo")
public suspend fun token(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.token = mapped
}
internal fun build(): AppSpecWorkerLogDestinationLogtailArgs =
AppSpecWorkerLogDestinationLogtailArgs(
token = token ?: throw PulumiNullFieldException("token"),
)
}