com.pulumi.cloudflare.kotlin.inputs.WorkersScriptPlainTextBindingArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-cloudflare-kotlin Show documentation
Show all versions of pulumi-cloudflare-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.cloudflare.kotlin.inputs
import com.pulumi.cloudflare.inputs.WorkersScriptPlainTextBindingArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
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 name The global variable for the binding in your Worker code.
* @property text The plain text you want to store.
*/
public data class WorkersScriptPlainTextBindingArgs(
public val name: Output,
public val text: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.cloudflare.inputs.WorkersScriptPlainTextBindingArgs =
com.pulumi.cloudflare.inputs.WorkersScriptPlainTextBindingArgs.builder()
.name(name.applyValue({ args0 -> args0 }))
.text(text.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [WorkersScriptPlainTextBindingArgs].
*/
@PulumiTagMarker
public class WorkersScriptPlainTextBindingArgsBuilder internal constructor() {
private var name: Output? = null
private var text: Output? = null
/**
* @param value The global variable for the binding in your Worker code.
*/
@JvmName("jbofgukkqxjsnfif")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value The plain text you want to store.
*/
@JvmName("nixmrglenxkfnwqe")
public suspend fun text(`value`: Output) {
this.text = value
}
/**
* @param value The global variable for the binding in your Worker code.
*/
@JvmName("wdfvajapfldcxprq")
public suspend fun name(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value The plain text you want to store.
*/
@JvmName("dsxuqycjirwmiqiw")
public suspend fun text(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.text = mapped
}
internal fun build(): WorkersScriptPlainTextBindingArgs = WorkersScriptPlainTextBindingArgs(
name = name ?: throw PulumiNullFieldException("name"),
text = text ?: throw PulumiNullFieldException("text"),
)
}