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

com.pulumi.googlenative.firebaserules.v1.kotlin.inputs.FileArgs.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.firebaserules.v1.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.googlenative.firebaserules.v1.inputs.FileArgs.builder
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

/**
 * `File` containing source content.
 * @property content Textual Content.
 * @property fingerprint Fingerprint (e.g. github sha) associated with the `File`.
 * @property name File name.
 */
public data class FileArgs(
    public val content: Output,
    public val fingerprint: Output? = null,
    public val name: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.googlenative.firebaserules.v1.inputs.FileArgs =
        com.pulumi.googlenative.firebaserules.v1.inputs.FileArgs.builder()
            .content(content.applyValue({ args0 -> args0 }))
            .fingerprint(fingerprint?.applyValue({ args0 -> args0 }))
            .name(name.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [FileArgs].
 */
@PulumiTagMarker
public class FileArgsBuilder internal constructor() {
    private var content: Output? = null

    private var fingerprint: Output? = null

    private var name: Output? = null

    /**
     * @param value Textual Content.
     */
    @JvmName("lmiyglhnpohyujvg")
    public suspend fun content(`value`: Output) {
        this.content = value
    }

    /**
     * @param value Fingerprint (e.g. github sha) associated with the `File`.
     */
    @JvmName("ajjupsyiquglychf")
    public suspend fun fingerprint(`value`: Output) {
        this.fingerprint = value
    }

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

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

    /**
     * @param value Fingerprint (e.g. github sha) associated with the `File`.
     */
    @JvmName("jqvivgswpuqvghnr")
    public suspend fun fingerprint(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.fingerprint = mapped
    }

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

    internal fun build(): FileArgs = FileArgs(
        content = content ?: throw PulumiNullFieldException("content"),
        fingerprint = fingerprint,
        name = name ?: throw PulumiNullFieldException("name"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy