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

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

package com.pulumi.gcp.osconfig.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.osconfig.inputs.OsPolicyAssignmentOsPolicyResourceGroupResourcePkgArgs.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.jvm.JvmName

/**
 *
 * @property apt A package managed by Apt. Structure is
 * documented below.
 * @property deb A deb package file. Structure is
 * documented below.
 * @property desiredState The desired state the agent should maintain for
 * this package. Possible values are: `DESIRED_STATE_UNSPECIFIED`, `INSTALLED`,
 * `REMOVED`.
 * @property googet A package managed by GooGet. Structure is
 * documented below.
 * @property msi An MSI package. Structure is
 * documented below.
 * @property rpm An rpm package file. Structure is
 * documented below.
 * @property yum A package managed by YUM. Structure is
 * documented below.
 * @property zypper A package managed by Zypper. Structure is
 * documented below.
 */
public data class OsPolicyAssignmentOsPolicyResourceGroupResourcePkgArgs(
    public val apt: Output? = null,
    public val deb: Output? = null,
    public val desiredState: Output,
    public val googet: Output? = null,
    public val msi: Output? = null,
    public val rpm: Output? = null,
    public val yum: Output? = null,
    public val zypper: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.osconfig.inputs.OsPolicyAssignmentOsPolicyResourceGroupResourcePkgArgs =
        com.pulumi.gcp.osconfig.inputs.OsPolicyAssignmentOsPolicyResourceGroupResourcePkgArgs.builder()
            .apt(apt?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .deb(deb?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .desiredState(desiredState.applyValue({ args0 -> args0 }))
            .googet(googet?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .msi(msi?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .rpm(rpm?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .yum(yum?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .zypper(zypper?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [OsPolicyAssignmentOsPolicyResourceGroupResourcePkgArgs].
 */
@PulumiTagMarker
public class OsPolicyAssignmentOsPolicyResourceGroupResourcePkgArgsBuilder internal constructor() {
    private var apt: Output? = null

    private var deb: Output? = null

    private var desiredState: Output? = null

    private var googet: Output? = null

    private var msi: Output? = null

    private var rpm: Output? = null

    private var yum: Output? = null

    private var zypper: Output? = null

    /**
     * @param value A package managed by Apt. Structure is
     * documented below.
     */
    @JvmName("aigibmdrkxqrucgc")
    public suspend fun apt(`value`: Output) {
        this.apt = value
    }

    /**
     * @param value A deb package file. Structure is
     * documented below.
     */
    @JvmName("vdmjlvahkwclvwng")
    public suspend fun deb(`value`: Output) {
        this.deb = value
    }

    /**
     * @param value The desired state the agent should maintain for
     * this package. Possible values are: `DESIRED_STATE_UNSPECIFIED`, `INSTALLED`,
     * `REMOVED`.
     */
    @JvmName("dbkmoheohnnbqwph")
    public suspend fun desiredState(`value`: Output) {
        this.desiredState = value
    }

    /**
     * @param value A package managed by GooGet. Structure is
     * documented below.
     */
    @JvmName("pljwequhuklxgjlo")
    public suspend fun googet(`value`: Output) {
        this.googet = value
    }

    /**
     * @param value An MSI package. Structure is
     * documented below.
     */
    @JvmName("oouawicrjeymeqsb")
    public suspend fun msi(`value`: Output) {
        this.msi = value
    }

    /**
     * @param value An rpm package file. Structure is
     * documented below.
     */
    @JvmName("cqeqhxlavbipokfk")
    public suspend fun rpm(`value`: Output) {
        this.rpm = value
    }

    /**
     * @param value A package managed by YUM. Structure is
     * documented below.
     */
    @JvmName("syncfingykqtbfwc")
    public suspend fun yum(`value`: Output) {
        this.yum = value
    }

    /**
     * @param value A package managed by Zypper. Structure is
     * documented below.
     */
    @JvmName("ptdksnpgicluykxl")
    public suspend fun zypper(`value`: Output) {
        this.zypper = value
    }

    /**
     * @param value A package managed by Apt. Structure is
     * documented below.
     */
    @JvmName("casuudwcdgyeuuie")
    public suspend fun apt(`value`: OsPolicyAssignmentOsPolicyResourceGroupResourcePkgAptArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.apt = mapped
    }

    /**
     * @param argument A package managed by Apt. Structure is
     * documented below.
     */
    @JvmName("sxyapbqvvimurrac")
    public suspend fun apt(argument: suspend OsPolicyAssignmentOsPolicyResourceGroupResourcePkgAptArgsBuilder.() -> Unit) {
        val toBeMapped =
            OsPolicyAssignmentOsPolicyResourceGroupResourcePkgAptArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.apt = mapped
    }

    /**
     * @param value A deb package file. Structure is
     * documented below.
     */
    @JvmName("koqyocxdexumdsga")
    public suspend fun deb(`value`: OsPolicyAssignmentOsPolicyResourceGroupResourcePkgDebArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.deb = mapped
    }

    /**
     * @param argument A deb package file. Structure is
     * documented below.
     */
    @JvmName("moicdmisuyxdkhkc")
    public suspend fun deb(argument: suspend OsPolicyAssignmentOsPolicyResourceGroupResourcePkgDebArgsBuilder.() -> Unit) {
        val toBeMapped =
            OsPolicyAssignmentOsPolicyResourceGroupResourcePkgDebArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.deb = mapped
    }

    /**
     * @param value The desired state the agent should maintain for
     * this package. Possible values are: `DESIRED_STATE_UNSPECIFIED`, `INSTALLED`,
     * `REMOVED`.
     */
    @JvmName("xgmovckmdtxuprfu")
    public suspend fun desiredState(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.desiredState = mapped
    }

    /**
     * @param value A package managed by GooGet. Structure is
     * documented below.
     */
    @JvmName("pkmlfoedjetaavrq")
    public suspend fun googet(`value`: OsPolicyAssignmentOsPolicyResourceGroupResourcePkgGoogetArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.googet = mapped
    }

    /**
     * @param argument A package managed by GooGet. Structure is
     * documented below.
     */
    @JvmName("utslbngsdgfdlmud")
    public suspend fun googet(argument: suspend OsPolicyAssignmentOsPolicyResourceGroupResourcePkgGoogetArgsBuilder.() -> Unit) {
        val toBeMapped =
            OsPolicyAssignmentOsPolicyResourceGroupResourcePkgGoogetArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.googet = mapped
    }

    /**
     * @param value An MSI package. Structure is
     * documented below.
     */
    @JvmName("hhioustbaurpjdvs")
    public suspend fun msi(`value`: OsPolicyAssignmentOsPolicyResourceGroupResourcePkgMsiArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.msi = mapped
    }

    /**
     * @param argument An MSI package. Structure is
     * documented below.
     */
    @JvmName("rvhobstcgxebcjrb")
    public suspend fun msi(argument: suspend OsPolicyAssignmentOsPolicyResourceGroupResourcePkgMsiArgsBuilder.() -> Unit) {
        val toBeMapped =
            OsPolicyAssignmentOsPolicyResourceGroupResourcePkgMsiArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.msi = mapped
    }

    /**
     * @param value An rpm package file. Structure is
     * documented below.
     */
    @JvmName("vdbapxkiivocrjrp")
    public suspend fun rpm(`value`: OsPolicyAssignmentOsPolicyResourceGroupResourcePkgRpmArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.rpm = mapped
    }

    /**
     * @param argument An rpm package file. Structure is
     * documented below.
     */
    @JvmName("jyoaofdjklrbntqb")
    public suspend fun rpm(argument: suspend OsPolicyAssignmentOsPolicyResourceGroupResourcePkgRpmArgsBuilder.() -> Unit) {
        val toBeMapped =
            OsPolicyAssignmentOsPolicyResourceGroupResourcePkgRpmArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.rpm = mapped
    }

    /**
     * @param value A package managed by YUM. Structure is
     * documented below.
     */
    @JvmName("rtilftbdevppdoai")
    public suspend fun yum(`value`: OsPolicyAssignmentOsPolicyResourceGroupResourcePkgYumArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.yum = mapped
    }

    /**
     * @param argument A package managed by YUM. Structure is
     * documented below.
     */
    @JvmName("sybqwahijdotrdxm")
    public suspend fun yum(argument: suspend OsPolicyAssignmentOsPolicyResourceGroupResourcePkgYumArgsBuilder.() -> Unit) {
        val toBeMapped =
            OsPolicyAssignmentOsPolicyResourceGroupResourcePkgYumArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.yum = mapped
    }

    /**
     * @param value A package managed by Zypper. Structure is
     * documented below.
     */
    @JvmName("bnfuumiexoiojqgf")
    public suspend fun zypper(`value`: OsPolicyAssignmentOsPolicyResourceGroupResourcePkgZypperArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.zypper = mapped
    }

    /**
     * @param argument A package managed by Zypper. Structure is
     * documented below.
     */
    @JvmName("sitqtejjpdpaqtac")
    public suspend fun zypper(argument: suspend OsPolicyAssignmentOsPolicyResourceGroupResourcePkgZypperArgsBuilder.() -> Unit) {
        val toBeMapped =
            OsPolicyAssignmentOsPolicyResourceGroupResourcePkgZypperArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.zypper = mapped
    }

    internal fun build(): OsPolicyAssignmentOsPolicyResourceGroupResourcePkgArgs =
        OsPolicyAssignmentOsPolicyResourceGroupResourcePkgArgs(
            apt = apt,
            deb = deb,
            desiredState = desiredState ?: throw PulumiNullFieldException("desiredState"),
            googet = googet,
            msi = msi,
            rpm = rpm,
            yum = yum,
            zypper = zypper,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy