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

com.pulumi.azurenative.automation.kotlin.inputs.LinuxPropertiesArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.automation.kotlin.inputs

import com.pulumi.azurenative.automation.inputs.LinuxPropertiesArgs.builder
import com.pulumi.azurenative.automation.kotlin.enums.LinuxUpdateClasses
import com.pulumi.core.Either
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Linux specific update configuration.
 * @property excludedPackageNameMasks packages excluded from the software update configuration.
 * @property includedPackageClassifications Update classifications included in the software update configuration.
 * @property includedPackageNameMasks packages included from the software update configuration.
 * @property rebootSetting Reboot setting for the software update configuration.
 */
public data class LinuxPropertiesArgs(
    public val excludedPackageNameMasks: Output>? = null,
    public val includedPackageClassifications: Output>? = null,
    public val includedPackageNameMasks: Output>? = null,
    public val rebootSetting: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.automation.inputs.LinuxPropertiesArgs =
        com.pulumi.azurenative.automation.inputs.LinuxPropertiesArgs.builder()
            .excludedPackageNameMasks(
                excludedPackageNameMasks?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0
                    })
                }),
            )
            .includedPackageClassifications(
                includedPackageClassifications?.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 -> args0.let({ args0 -> args0.toJava() }) })
                }),
            )
            .includedPackageNameMasks(
                includedPackageNameMasks?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0
                    })
                }),
            )
            .rebootSetting(rebootSetting?.applyValue({ args0 -> args0 })).build()
}

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

    private var includedPackageClassifications: Output>? = null

    private var includedPackageNameMasks: Output>? = null

    private var rebootSetting: Output? = null

    /**
     * @param value packages excluded from the software update configuration.
     */
    @JvmName("jhtkjyrkkxocfrrh")
    public suspend fun excludedPackageNameMasks(`value`: Output>) {
        this.excludedPackageNameMasks = value
    }

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

    /**
     * @param values packages excluded from the software update configuration.
     */
    @JvmName("idjypamibphubokl")
    public suspend fun excludedPackageNameMasks(values: List>) {
        this.excludedPackageNameMasks = Output.all(values)
    }

    /**
     * @param value Update classifications included in the software update configuration.
     */
    @JvmName("qkwonbydfnsvndjb")
    public suspend fun includedPackageClassifications(`value`: Output>) {
        this.includedPackageClassifications = value
    }

    /**
     * @param value packages included from the software update configuration.
     */
    @JvmName("dxexsafciggfsbsl")
    public suspend fun includedPackageNameMasks(`value`: Output>) {
        this.includedPackageNameMasks = value
    }

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

    /**
     * @param values packages included from the software update configuration.
     */
    @JvmName("ypfurxpwjyanyqin")
    public suspend fun includedPackageNameMasks(values: List>) {
        this.includedPackageNameMasks = Output.all(values)
    }

    /**
     * @param value Reboot setting for the software update configuration.
     */
    @JvmName("dlqqwvficjrypgmr")
    public suspend fun rebootSetting(`value`: Output) {
        this.rebootSetting = value
    }

    /**
     * @param value packages excluded from the software update configuration.
     */
    @JvmName("jortgbkarhmeuqyh")
    public suspend fun excludedPackageNameMasks(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.excludedPackageNameMasks = mapped
    }

    /**
     * @param values packages excluded from the software update configuration.
     */
    @JvmName("uarrungoukfjrxap")
    public suspend fun excludedPackageNameMasks(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.excludedPackageNameMasks = mapped
    }

    /**
     * @param value Update classifications included in the software update configuration.
     */
    @JvmName("yglafotijfavhdsj")
    public suspend fun includedPackageClassifications(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.includedPackageClassifications = mapped
    }

    /**
     * @param value Update classifications included in the software update configuration.
     */
    @JvmName("awgcjfsgeryvsvrh")
    public fun includedPackageClassifications(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.includedPackageClassifications = mapped
    }

    /**
     * @param value Update classifications included in the software update configuration.
     */
    @JvmName("kgbwynfqfvqvkghs")
    public fun includedPackageClassifications(`value`: LinuxUpdateClasses) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.includedPackageClassifications = mapped
    }

    /**
     * @param value packages included from the software update configuration.
     */
    @JvmName("fwvsclbmscbnkucg")
    public suspend fun includedPackageNameMasks(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.includedPackageNameMasks = mapped
    }

    /**
     * @param values packages included from the software update configuration.
     */
    @JvmName("gfngdqtklrdnfoyb")
    public suspend fun includedPackageNameMasks(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.includedPackageNameMasks = mapped
    }

    /**
     * @param value Reboot setting for the software update configuration.
     */
    @JvmName("imraoohipcmuessg")
    public suspend fun rebootSetting(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.rebootSetting = mapped
    }

    internal fun build(): LinuxPropertiesArgs = LinuxPropertiesArgs(
        excludedPackageNameMasks = excludedPackageNameMasks,
        includedPackageClassifications = includedPackageClassifications,
        includedPackageNameMasks = includedPackageNameMasks,
        rebootSetting = rebootSetting,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy