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