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

com.pulumi.gcp.osconfig.kotlin.inputs.OsPolicyAssignmentOsPolicyResourceGroupResourcePkgMsiArgs.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.10.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.OsPolicyAssignmentOsPolicyResourceGroupResourcePkgMsiArgs.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.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property properties Additional properties to use during installation.
 * This should be in the format of Property=Setting. Appended to the defaults
 * of `ACTION=INSTALL REBOOT=ReallySuppress`.
 * @property source The MSI package. Structure is
 * documented below.
 */
public data class OsPolicyAssignmentOsPolicyResourceGroupResourcePkgMsiArgs(
    public val properties: Output>? = null,
    public val source: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.osconfig.inputs.OsPolicyAssignmentOsPolicyResourceGroupResourcePkgMsiArgs =
        com.pulumi.gcp.osconfig.inputs.OsPolicyAssignmentOsPolicyResourceGroupResourcePkgMsiArgs.builder()
            .properties(properties?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .source(source.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [OsPolicyAssignmentOsPolicyResourceGroupResourcePkgMsiArgs].
 */
@PulumiTagMarker
public class OsPolicyAssignmentOsPolicyResourceGroupResourcePkgMsiArgsBuilder internal constructor() {
    private var properties: Output>? = null

    private var source: Output? =
        null

    /**
     * @param value Additional properties to use during installation.
     * This should be in the format of Property=Setting. Appended to the defaults
     * of `ACTION=INSTALL REBOOT=ReallySuppress`.
     */
    @JvmName("rdkvejrbclojhnrg")
    public suspend fun properties(`value`: Output>) {
        this.properties = value
    }

    @JvmName("utovqrxqskxjmjgc")
    public suspend fun properties(vararg values: Output) {
        this.properties = Output.all(values.asList())
    }

    /**
     * @param values Additional properties to use during installation.
     * This should be in the format of Property=Setting. Appended to the defaults
     * of `ACTION=INSTALL REBOOT=ReallySuppress`.
     */
    @JvmName("eccbehpvllgrfmjm")
    public suspend fun properties(values: List>) {
        this.properties = Output.all(values)
    }

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

    /**
     * @param value Additional properties to use during installation.
     * This should be in the format of Property=Setting. Appended to the defaults
     * of `ACTION=INSTALL REBOOT=ReallySuppress`.
     */
    @JvmName("qlakwflhriougouk")
    public suspend fun properties(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.properties = mapped
    }

    /**
     * @param values Additional properties to use during installation.
     * This should be in the format of Property=Setting. Appended to the defaults
     * of `ACTION=INSTALL REBOOT=ReallySuppress`.
     */
    @JvmName("ubkojcaujqnbbhhf")
    public suspend fun properties(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.properties = mapped
    }

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

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

    internal fun build(): OsPolicyAssignmentOsPolicyResourceGroupResourcePkgMsiArgs =
        OsPolicyAssignmentOsPolicyResourceGroupResourcePkgMsiArgs(
            properties = properties,
            source = source ?: throw PulumiNullFieldException("source"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy