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

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

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

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

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy