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

com.pulumi.cloudflare.kotlin.inputs.WorkersScriptQueueBindingArgs.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.

There is a newer version: 5.47.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.cloudflare.kotlin.inputs

import com.pulumi.cloudflare.inputs.WorkersScriptQueueBindingArgs.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 name of the global variable for the binding in your Worker code.
 * @property queue Name of the queue you want to use.
 */
public data class WorkersScriptQueueBindingArgs(
    public val binding: Output,
    public val queue: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.cloudflare.inputs.WorkersScriptQueueBindingArgs =
        com.pulumi.cloudflare.inputs.WorkersScriptQueueBindingArgs.builder()
            .binding(binding.applyValue({ args0 -> args0 }))
            .queue(queue.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [WorkersScriptQueueBindingArgs].
 */
@PulumiTagMarker
public class WorkersScriptQueueBindingArgsBuilder internal constructor() {
    private var binding: Output? = null

    private var queue: Output? = null

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

    /**
     * @param value Name of the queue you want to use.
     */
    @JvmName("yksflnlvydbreebr")
    public suspend fun queue(`value`: Output) {
        this.queue = value
    }

    /**
     * @param value The name of the global variable for the binding in your Worker code.
     */
    @JvmName("fohrwmalayoiljch")
    public suspend fun binding(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.binding = mapped
    }

    /**
     * @param value Name of the queue you want to use.
     */
    @JvmName("igvuwctddjeqlavq")
    public suspend fun queue(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.queue = mapped
    }

    internal fun build(): WorkersScriptQueueBindingArgs = WorkersScriptQueueBindingArgs(
        binding = binding ?: throw PulumiNullFieldException("binding"),
        queue = queue ?: throw PulumiNullFieldException("queue"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy