com.pulumi.cloudflare.kotlin.inputs.WorkersScriptHyperdriveConfigBindingArgs.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.
The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.cloudflare.kotlin.inputs
import com.pulumi.cloudflare.inputs.WorkersScriptHyperdriveConfigBindingArgs.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 binding The global variable for the binding in your Worker code.
* @property id The ID of the Hyperdrive config to use.
*/
public data class WorkersScriptHyperdriveConfigBindingArgs(
public val binding: Output,
public val id: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.cloudflare.inputs.WorkersScriptHyperdriveConfigBindingArgs =
com.pulumi.cloudflare.inputs.WorkersScriptHyperdriveConfigBindingArgs.builder()
.binding(binding.applyValue({ args0 -> args0 }))
.id(id.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [WorkersScriptHyperdriveConfigBindingArgs].
*/
@PulumiTagMarker
public class WorkersScriptHyperdriveConfigBindingArgsBuilder internal constructor() {
private var binding: Output? = null
private var id: Output? = null
/**
* @param value The global variable for the binding in your Worker code.
*/
@JvmName("vvegdfaavisiqmmt")
public suspend fun binding(`value`: Output) {
this.binding = value
}
/**
* @param value The ID of the Hyperdrive config to use.
*/
@JvmName("ywuvyfsmxhrydeii")
public suspend fun id(`value`: Output) {
this.id = value
}
/**
* @param value The global variable for the binding in your Worker code.
*/
@JvmName("qmjbbsvydsykhwlp")
public suspend fun binding(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.binding = mapped
}
/**
* @param value The ID of the Hyperdrive config to use.
*/
@JvmName("pyxxietmhtmndqqd")
public suspend fun id(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.id = mapped
}
internal fun build(): WorkersScriptHyperdriveConfigBindingArgs =
WorkersScriptHyperdriveConfigBindingArgs(
binding = binding ?: throw PulumiNullFieldException("binding"),
id = id ?: throw PulumiNullFieldException("id"),
)
}