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

com.pulumi.cloudflare.kotlin.inputs.PagesProjectDeploymentConfigsPreviewServiceBindingArgs.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.40.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.cloudflare.kotlin.inputs

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

/**
 * Builder for [PagesProjectDeploymentConfigsPreviewServiceBindingArgs].
 */
@PulumiTagMarker
public class PagesProjectDeploymentConfigsPreviewServiceBindingArgsBuilder 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("xentfaltbgahalkc")
    public suspend fun environment(`value`: Output) {
        this.environment = value
    }

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

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

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

    internal fun build(): PagesProjectDeploymentConfigsPreviewServiceBindingArgs =
        PagesProjectDeploymentConfigsPreviewServiceBindingArgs(
            environment = environment,
            name = name ?: throw PulumiNullFieldException("name"),
            service = service ?: throw PulumiNullFieldException("service"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy