com.pulumi.cloudflare.kotlin.inputs.WorkersScriptServiceBindingArgs.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.WorkersScriptServiceBindingArgs.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 environment The name of the Worker environment to bind to.
* @property name The global variable for the binding in your Worker code.
* @property service The name of the Worker to bind to.
*/
public data class WorkersScriptServiceBindingArgs(
public val environment: Output? = null,
public val name: Output,
public val service: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.cloudflare.inputs.WorkersScriptServiceBindingArgs =
com.pulumi.cloudflare.inputs.WorkersScriptServiceBindingArgs.builder()
.environment(environment?.applyValue({ args0 -> args0 }))
.name(name.applyValue({ args0 -> args0 }))
.service(service.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [WorkersScriptServiceBindingArgs].
*/
@PulumiTagMarker
public class WorkersScriptServiceBindingArgsBuilder internal constructor() {
private var environment: Output? = null
private var name: Output? = null
private var service: Output? = null
/**
* @param value The name of the Worker environment to bind to.
*/
@JvmName("itdkdglbngtuptad")
public suspend fun environment(`value`: Output) {
this.environment = value
}
/**
* @param value The global variable for the binding in your Worker code.
*/
@JvmName("vkdxvrmxgaudmpgm")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value The name of the Worker to bind to.
*/
@JvmName("wydssfjucjnmdkbg")
public suspend fun service(`value`: Output) {
this.service = value
}
/**
* @param value The name of the Worker environment to bind to.
*/
@JvmName("mjflxspjcsdcbqhj")
public suspend fun environment(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.environment = mapped
}
/**
* @param value The global variable for the binding in your Worker code.
*/
@JvmName("jdfykhatggxarjgu")
public suspend fun name(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value The name of the Worker to bind to.
*/
@JvmName("xmttocruwadgshdn")
public suspend fun service(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.service = mapped
}
internal fun build(): WorkersScriptServiceBindingArgs = WorkersScriptServiceBindingArgs(
environment = environment,
name = name ?: throw PulumiNullFieldException("name"),
service = service ?: throw PulumiNullFieldException("service"),
)
}