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

com.pulumi.gcp.osconfig.kotlin.inputs.OsPolicyAssignmentOsPolicyResourceGroupResourcePkgRpmArgs.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.OsPolicyAssignmentOsPolicyResourceGroupResourcePkgRpmArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property pullDeps Whether dependencies should also be installed. -
 * install when false: `rpm --upgrade --replacepkgs package.rpm` - install when
 * true: `yum -y install package.rpm` or `zypper -y install package.rpm`
 * @property source An rpm package. Structure is
 * documented below.
 */
public data class OsPolicyAssignmentOsPolicyResourceGroupResourcePkgRpmArgs(
    public val pullDeps: Output? = null,
    public val source: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.osconfig.inputs.OsPolicyAssignmentOsPolicyResourceGroupResourcePkgRpmArgs =
        com.pulumi.gcp.osconfig.inputs.OsPolicyAssignmentOsPolicyResourceGroupResourcePkgRpmArgs.builder()
            .pullDeps(pullDeps?.applyValue({ args0 -> args0 }))
            .source(source.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [OsPolicyAssignmentOsPolicyResourceGroupResourcePkgRpmArgs].
 */
@PulumiTagMarker
public class OsPolicyAssignmentOsPolicyResourceGroupResourcePkgRpmArgsBuilder internal constructor() {
    private var pullDeps: Output? = null

    private var source: Output? =
        null

    /**
     * @param value Whether dependencies should also be installed. -
     * install when false: `rpm --upgrade --replacepkgs package.rpm` - install when
     * true: `yum -y install package.rpm` or `zypper -y install package.rpm`
     */
    @JvmName("invphgcuajxyiual")
    public suspend fun pullDeps(`value`: Output) {
        this.pullDeps = value
    }

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

    /**
     * @param value Whether dependencies should also be installed. -
     * install when false: `rpm --upgrade --replacepkgs package.rpm` - install when
     * true: `yum -y install package.rpm` or `zypper -y install package.rpm`
     */
    @JvmName("nivgntupfwbamuyk")
    public suspend fun pullDeps(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.pullDeps = mapped
    }

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

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

    internal fun build(): OsPolicyAssignmentOsPolicyResourceGroupResourcePkgRpmArgs =
        OsPolicyAssignmentOsPolicyResourceGroupResourcePkgRpmArgs(
            pullDeps = pullDeps,
            source = source ?: throw PulumiNullFieldException("source"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy