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

com.pulumi.azurenative.testbase.kotlin.inputs.TargetOSInfoArgs.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: 2.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.testbase.kotlin.inputs

import com.pulumi.azurenative.testbase.inputs.TargetOSInfoArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * The information of the target OS to be tested.
 * @property baselineOSs Specifies the baseline OSs to be tested.
 * @property insiderChannelIds Insider Channel Ids. Only used for feature update.
 * @property osUpdateType Specifies the OS update type to test against, e.g., 'Security updates' or 'Feature updates'.
 * @property targetOSImageIds Specifies the ids of the target OSs from Custom Images to be tested.
 * @property targetOSs Specifies the target OSs to be tested.
 */
public data class TargetOSInfoArgs(
    public val baselineOSs: Output>? = null,
    public val insiderChannelIds: Output>? = null,
    public val osUpdateType: Output,
    public val targetOSImageIds: Output>? = null,
    public val targetOSs: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.testbase.inputs.TargetOSInfoArgs =
        com.pulumi.azurenative.testbase.inputs.TargetOSInfoArgs.builder()
            .baselineOSs(baselineOSs?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .insiderChannelIds(insiderChannelIds?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .osUpdateType(osUpdateType.applyValue({ args0 -> args0 }))
            .targetOSImageIds(targetOSImageIds?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .targetOSs(targetOSs?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

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

    private var insiderChannelIds: Output>? = null

    private var osUpdateType: Output? = null

    private var targetOSImageIds: Output>? = null

    private var targetOSs: Output>? = null

    /**
     * @param value Specifies the baseline OSs to be tested.
     */
    @JvmName("oenpcpxjyjibnhvc")
    public suspend fun baselineOSs(`value`: Output>) {
        this.baselineOSs = value
    }

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

    /**
     * @param values Specifies the baseline OSs to be tested.
     */
    @JvmName("xeaujaevwnxynffc")
    public suspend fun baselineOSs(values: List>) {
        this.baselineOSs = Output.all(values)
    }

    /**
     * @param value Insider Channel Ids. Only used for feature update.
     */
    @JvmName("mphyjxvbljxaovhl")
    public suspend fun insiderChannelIds(`value`: Output>) {
        this.insiderChannelIds = value
    }

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

    /**
     * @param values Insider Channel Ids. Only used for feature update.
     */
    @JvmName("weicwyvfsbwsefmg")
    public suspend fun insiderChannelIds(values: List>) {
        this.insiderChannelIds = Output.all(values)
    }

    /**
     * @param value Specifies the OS update type to test against, e.g., 'Security updates' or 'Feature updates'.
     */
    @JvmName("lvnfackhsdeetmri")
    public suspend fun osUpdateType(`value`: Output) {
        this.osUpdateType = value
    }

    /**
     * @param value Specifies the ids of the target OSs from Custom Images to be tested.
     */
    @JvmName("pcacpxbnrgxcfvxh")
    public suspend fun targetOSImageIds(`value`: Output>) {
        this.targetOSImageIds = value
    }

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

    /**
     * @param values Specifies the ids of the target OSs from Custom Images to be tested.
     */
    @JvmName("rnvcljqapqhjpuds")
    public suspend fun targetOSImageIds(values: List>) {
        this.targetOSImageIds = Output.all(values)
    }

    /**
     * @param value Specifies the target OSs to be tested.
     */
    @JvmName("rigdjfcgvjhcqupa")
    public suspend fun targetOSs(`value`: Output>) {
        this.targetOSs = value
    }

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

    /**
     * @param values Specifies the target OSs to be tested.
     */
    @JvmName("iakotxorwelcxaxt")
    public suspend fun targetOSs(values: List>) {
        this.targetOSs = Output.all(values)
    }

    /**
     * @param value Specifies the baseline OSs to be tested.
     */
    @JvmName("kmdslkdpwbmjecfe")
    public suspend fun baselineOSs(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.baselineOSs = mapped
    }

    /**
     * @param values Specifies the baseline OSs to be tested.
     */
    @JvmName("vrcwlqintydkvoud")
    public suspend fun baselineOSs(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.baselineOSs = mapped
    }

    /**
     * @param value Insider Channel Ids. Only used for feature update.
     */
    @JvmName("yimjlbdccqbaiaam")
    public suspend fun insiderChannelIds(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.insiderChannelIds = mapped
    }

    /**
     * @param values Insider Channel Ids. Only used for feature update.
     */
    @JvmName("nyenaacrvlmlbpxo")
    public suspend fun insiderChannelIds(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.insiderChannelIds = mapped
    }

    /**
     * @param value Specifies the OS update type to test against, e.g., 'Security updates' or 'Feature updates'.
     */
    @JvmName("sevokbgtswmvfrsc")
    public suspend fun osUpdateType(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.osUpdateType = mapped
    }

    /**
     * @param value Specifies the ids of the target OSs from Custom Images to be tested.
     */
    @JvmName("ijusriefrkrftcdh")
    public suspend fun targetOSImageIds(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.targetOSImageIds = mapped
    }

    /**
     * @param values Specifies the ids of the target OSs from Custom Images to be tested.
     */
    @JvmName("eagqahlnupdoxcjp")
    public suspend fun targetOSImageIds(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.targetOSImageIds = mapped
    }

    /**
     * @param value Specifies the target OSs to be tested.
     */
    @JvmName("pqohmgglstopmiwq")
    public suspend fun targetOSs(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.targetOSs = mapped
    }

    /**
     * @param values Specifies the target OSs to be tested.
     */
    @JvmName("bnjijegcayvvpuex")
    public suspend fun targetOSs(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.targetOSs = mapped
    }

    internal fun build(): TargetOSInfoArgs = TargetOSInfoArgs(
        baselineOSs = baselineOSs,
        insiderChannelIds = insiderChannelIds,
        osUpdateType = osUpdateType ?: throw PulumiNullFieldException("osUpdateType"),
        targetOSImageIds = targetOSImageIds,
        targetOSs = targetOSs,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy