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

com.pulumi.googlenative.firebasehosting.v1beta1.kotlin.SiteArgs.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.googlenative.firebasehosting.v1beta1.kotlin

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.googlenative.firebasehosting.v1beta1.SiteArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * Creates a new Hosting Site in the specified parent Firebase project. Note that Hosting sites can take several minutes to propagate through Firebase systems.
 * Auto-naming is currently not supported for this resource.
 * @property appId Optional. The [ID of a Web App](https://firebase.google.com/docs/reference/firebase-management/rest/v1beta1/projects.webApps#WebApp.FIELDS.app_id) associated with the Hosting site.
 * @property labels Optional. User-specified labels for the Hosting site.
 * @property project
 * @property siteId Required. Immutable. A globally unique identifier for the Hosting site. This identifier is used to construct the Firebase-provisioned subdomains for the site, so it must also be a valid domain name label.
 */
public data class SiteArgs(
    public val appId: Output? = null,
    public val labels: Output>? = null,
    public val project: Output? = null,
    public val siteId: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.googlenative.firebasehosting.v1beta1.SiteArgs =
        com.pulumi.googlenative.firebasehosting.v1beta1.SiteArgs.builder()
            .appId(appId?.applyValue({ args0 -> args0 }))
            .labels(labels?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
            .project(project?.applyValue({ args0 -> args0 }))
            .siteId(siteId?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [SiteArgs].
 */
@PulumiTagMarker
public class SiteArgsBuilder internal constructor() {
    private var appId: Output? = null

    private var labels: Output>? = null

    private var project: Output? = null

    private var siteId: Output? = null

    /**
     * @param value Optional. The [ID of a Web App](https://firebase.google.com/docs/reference/firebase-management/rest/v1beta1/projects.webApps#WebApp.FIELDS.app_id) associated with the Hosting site.
     */
    @JvmName("ihvckhwchlbuwgfl")
    public suspend fun appId(`value`: Output) {
        this.appId = value
    }

    /**
     * @param value Optional. User-specified labels for the Hosting site.
     */
    @JvmName("wqhxxyihioxvectt")
    public suspend fun labels(`value`: Output>) {
        this.labels = value
    }

    /**
     * @param value
     */
    @JvmName("vvhjrujqdtdpjdpf")
    public suspend fun project(`value`: Output) {
        this.project = value
    }

    /**
     * @param value Required. Immutable. A globally unique identifier for the Hosting site. This identifier is used to construct the Firebase-provisioned subdomains for the site, so it must also be a valid domain name label.
     */
    @JvmName("raqutskkyxntpknp")
    public suspend fun siteId(`value`: Output) {
        this.siteId = value
    }

    /**
     * @param value Optional. The [ID of a Web App](https://firebase.google.com/docs/reference/firebase-management/rest/v1beta1/projects.webApps#WebApp.FIELDS.app_id) associated with the Hosting site.
     */
    @JvmName("gnlnhjlrrrkyekts")
    public suspend fun appId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.appId = mapped
    }

    /**
     * @param value Optional. User-specified labels for the Hosting site.
     */
    @JvmName("otaybsprrfrrqbgh")
    public suspend fun labels(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.labels = mapped
    }

    /**
     * @param values Optional. User-specified labels for the Hosting site.
     */
    @JvmName("tehxaxjucmflpmml")
    public fun labels(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.labels = mapped
    }

    /**
     * @param value
     */
    @JvmName("dluadlvemfwldvrw")
    public suspend fun project(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.project = mapped
    }

    /**
     * @param value Required. Immutable. A globally unique identifier for the Hosting site. This identifier is used to construct the Firebase-provisioned subdomains for the site, so it must also be a valid domain name label.
     */
    @JvmName("fgbiyfrintarkahx")
    public suspend fun siteId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.siteId = mapped
    }

    internal fun build(): SiteArgs = SiteArgs(
        appId = appId,
        labels = labels,
        project = project,
        siteId = siteId,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy