All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.cloudflare.kotlin.inputs.WorkersScriptR2BucketBindingArgs.kt Maven / Gradle / Ivy

Go to download

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.WorkersScriptR2BucketBindingArgs.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 WorkersScriptR2BucketBindingArgs(
    public val bucketName: Output,
    public val name: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.cloudflare.inputs.WorkersScriptR2BucketBindingArgs =
        com.pulumi.cloudflare.inputs.WorkersScriptR2BucketBindingArgs.builder()
            .bucketName(bucketName.applyValue({ args0 -> args0 }))
            .name(name.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [WorkersScriptR2BucketBindingArgs].
 */
@PulumiTagMarker
public class WorkersScriptR2BucketBindingArgsBuilder internal constructor() {
    private var bucketName: Output? = null

    private var name: Output? = null

    /**
     * @param value The name of the Bucket to bind to.
     */
    @JvmName("mrkkckwwtgwsgmtt")
    public suspend fun bucketName(`value`: Output) {
        this.bucketName = value
    }

    /**
     * @param value The global variable for the binding in your Worker code.
     */
    @JvmName("sugtfdgowvqoutug")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The name of the Bucket to bind to.
     */
    @JvmName("suwjgbrbdpmnfyjr")
    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("eibwilqamclsnsmy")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    internal fun build(): WorkersScriptR2BucketBindingArgs = WorkersScriptR2BucketBindingArgs(
        bucketName = bucketName ?: throw PulumiNullFieldException("bucketName"),
        name = name ?: throw PulumiNullFieldException("name"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy