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

com.pulumi.googlenative.testing.v1.kotlin.inputs.DeviceFileArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.googlenative.testing.v1.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.googlenative.testing.v1.inputs.DeviceFileArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 * A single device file description.
 * @property obbFile A reference to an opaque binary blob file.
 * @property regularFile A reference to a regular file.
 */
public data class DeviceFileArgs(
    public val obbFile: Output? = null,
    public val regularFile: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.googlenative.testing.v1.inputs.DeviceFileArgs =
        com.pulumi.googlenative.testing.v1.inputs.DeviceFileArgs.builder()
            .obbFile(obbFile?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .regularFile(regularFile?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [DeviceFileArgs].
 */
@PulumiTagMarker
public class DeviceFileArgsBuilder internal constructor() {
    private var obbFile: Output? = null

    private var regularFile: Output? = null

    /**
     * @param value A reference to an opaque binary blob file.
     */
    @JvmName("vtvcbvtmkkygkseg")
    public suspend fun obbFile(`value`: Output) {
        this.obbFile = value
    }

    /**
     * @param value A reference to a regular file.
     */
    @JvmName("lirjndobsloaijxj")
    public suspend fun regularFile(`value`: Output) {
        this.regularFile = value
    }

    /**
     * @param value A reference to an opaque binary blob file.
     */
    @JvmName("kgxttcaxectisvqj")
    public suspend fun obbFile(`value`: ObbFileArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.obbFile = mapped
    }

    /**
     * @param argument A reference to an opaque binary blob file.
     */
    @JvmName("psjcymyteoosxixm")
    public suspend fun obbFile(argument: suspend ObbFileArgsBuilder.() -> Unit) {
        val toBeMapped = ObbFileArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.obbFile = mapped
    }

    /**
     * @param value A reference to a regular file.
     */
    @JvmName("mbwvsgqxvxiptnqf")
    public suspend fun regularFile(`value`: RegularFileArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.regularFile = mapped
    }

    /**
     * @param argument A reference to a regular file.
     */
    @JvmName("ofqkkqbootqqbovn")
    public suspend fun regularFile(argument: suspend RegularFileArgsBuilder.() -> Unit) {
        val toBeMapped = RegularFileArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.regularFile = mapped
    }

    internal fun build(): DeviceFileArgs = DeviceFileArgs(
        obbFile = obbFile,
        regularFile = regularFile,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy