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

com.pulumi.gcp.firebaserules.kotlin.inputs.RulesetSourceArgs.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: 8.13.1.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.firebaserules.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.firebaserules.inputs.RulesetSourceArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property files `File` set constituting the `Source` bundle.
 * @property language `Language` of the `Source` bundle. If unspecified, the language will default to `FIREBASE_RULES`. Possible values: LANGUAGE_UNSPECIFIED, FIREBASE_RULES, EVENT_FLOW_TRIGGERS
 */
public data class RulesetSourceArgs(
    public val files: Output>,
    public val language: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.firebaserules.inputs.RulesetSourceArgs =
        com.pulumi.gcp.firebaserules.inputs.RulesetSourceArgs.builder()
            .files(files.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .language(language?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [RulesetSourceArgs].
 */
@PulumiTagMarker
public class RulesetSourceArgsBuilder internal constructor() {
    private var files: Output>? = null

    private var language: Output? = null

    /**
     * @param value `File` set constituting the `Source` bundle.
     */
    @JvmName("lmaqhycynfnwglpw")
    public suspend fun files(`value`: Output>) {
        this.files = value
    }

    @JvmName("hapglwsdeihlbtnj")
    public suspend fun files(vararg values: Output) {
        this.files = Output.all(values.asList())
    }

    /**
     * @param values `File` set constituting the `Source` bundle.
     */
    @JvmName("ufhhbugulhvdonnt")
    public suspend fun files(values: List>) {
        this.files = Output.all(values)
    }

    /**
     * @param value `Language` of the `Source` bundle. If unspecified, the language will default to `FIREBASE_RULES`. Possible values: LANGUAGE_UNSPECIFIED, FIREBASE_RULES, EVENT_FLOW_TRIGGERS
     */
    @JvmName("elbjxsaglmwquhvl")
    public suspend fun language(`value`: Output) {
        this.language = value
    }

    /**
     * @param value `File` set constituting the `Source` bundle.
     */
    @JvmName("lissythvngrdueri")
    public suspend fun files(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.files = mapped
    }

    /**
     * @param argument `File` set constituting the `Source` bundle.
     */
    @JvmName("xsckoketbhnswsgq")
    public suspend fun files(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            RulesetSourceFileArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.files = mapped
    }

    /**
     * @param argument `File` set constituting the `Source` bundle.
     */
    @JvmName("bhbjjfiietkxtlpo")
    public suspend fun files(vararg argument: suspend RulesetSourceFileArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            RulesetSourceFileArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.files = mapped
    }

    /**
     * @param argument `File` set constituting the `Source` bundle.
     */
    @JvmName("cchbssiwivmeaqyh")
    public suspend fun files(argument: suspend RulesetSourceFileArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(RulesetSourceFileArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.files = mapped
    }

    /**
     * @param values `File` set constituting the `Source` bundle.
     */
    @JvmName("altwadhqsgcwjppp")
    public suspend fun files(vararg values: RulesetSourceFileArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.files = mapped
    }

    /**
     * @param value `Language` of the `Source` bundle. If unspecified, the language will default to `FIREBASE_RULES`. Possible values: LANGUAGE_UNSPECIFIED, FIREBASE_RULES, EVENT_FLOW_TRIGGERS
     */
    @JvmName("jbpqwkksopdjordc")
    public suspend fun language(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.language = mapped
    }

    internal fun build(): RulesetSourceArgs = RulesetSourceArgs(
        files = files ?: throw PulumiNullFieldException("files"),
        language = language,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy