com.pulumi.cloudflare.kotlin.inputs.WorkerScriptSecretTextBindingArgs.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.WorkerScriptSecretTextBindingArgs.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 secret text you want to store.
*/
public data class WorkerScriptSecretTextBindingArgs(
public val name: Output,
public val text: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.cloudflare.inputs.WorkerScriptSecretTextBindingArgs =
com.pulumi.cloudflare.inputs.WorkerScriptSecretTextBindingArgs.builder()
.name(name.applyValue({ args0 -> args0 }))
.text(text.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [WorkerScriptSecretTextBindingArgs].
*/
@PulumiTagMarker
public class WorkerScriptSecretTextBindingArgsBuilder 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("yyhdubakqwaxthlx")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value The secret text you want to store.
*/
@JvmName("pcgvswpxrapdvktp")
public suspend fun text(`value`: Output) {
this.text = value
}
/**
* @param value The global variable for the binding in your Worker code.
*/
@JvmName("gvyodrdoioyokskn")
public suspend fun name(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value The secret text you want to store.
*/
@JvmName("qqgsokgcgxhtgqjt")
public suspend fun text(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.text = mapped
}
internal fun build(): WorkerScriptSecretTextBindingArgs = WorkerScriptSecretTextBindingArgs(
name = name ?: throw PulumiNullFieldException("name"),
text = text ?: throw PulumiNullFieldException("text"),
)
}