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

com.pulumi.azure.compute.kotlin.inputs.VirtualMachineOsProfileWindowsConfigArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azure.compute.kotlin.inputs

import com.pulumi.azure.compute.inputs.VirtualMachineOsProfileWindowsConfigArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property additionalUnattendConfigs An `additional_unattend_config` block as defined below.
 * @property enableAutomaticUpgrades Are automatic updates enabled on this Virtual Machine? Defaults to `false`.
 * @property provisionVmAgent Should the Azure Virtual Machine Guest Agent be installed on this Virtual Machine? Defaults to `false`.
 * > **NOTE:** This is different from the Default value used for this field within Azure.
 * @property timezone Specifies the time zone of the virtual machine, [the possible values are defined here](https://jackstromberg.com/2017/01/list-of-time-zones-consumed-by-azure/). Changing this forces a new resource to be created.
 * @property winrms One or more `winrm` blocks as defined below.
 */
public data class VirtualMachineOsProfileWindowsConfigArgs(
    public val additionalUnattendConfigs: Output>? = null,
    public val enableAutomaticUpgrades: Output? = null,
    public val provisionVmAgent: Output? = null,
    public val timezone: Output? = null,
    public val winrms: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.compute.inputs.VirtualMachineOsProfileWindowsConfigArgs =
        com.pulumi.azure.compute.inputs.VirtualMachineOsProfileWindowsConfigArgs.builder()
            .additionalUnattendConfigs(
                additionalUnattendConfigs?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .enableAutomaticUpgrades(enableAutomaticUpgrades?.applyValue({ args0 -> args0 }))
            .provisionVmAgent(provisionVmAgent?.applyValue({ args0 -> args0 }))
            .timezone(timezone?.applyValue({ args0 -> args0 }))
            .winrms(
                winrms?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

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

    private var enableAutomaticUpgrades: Output? = null

    private var provisionVmAgent: Output? = null

    private var timezone: Output? = null

    private var winrms: Output>? = null

    /**
     * @param value An `additional_unattend_config` block as defined below.
     */
    @JvmName("cordaqmhfugnhivm")
    public suspend fun additionalUnattendConfigs(`value`: Output>) {
        this.additionalUnattendConfigs = value
    }

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

    /**
     * @param values An `additional_unattend_config` block as defined below.
     */
    @JvmName("iwcggonafyysodjk")
    public suspend fun additionalUnattendConfigs(values: List>) {
        this.additionalUnattendConfigs = Output.all(values)
    }

    /**
     * @param value Are automatic updates enabled on this Virtual Machine? Defaults to `false`.
     */
    @JvmName("hgaxcqbsrnidpemk")
    public suspend fun enableAutomaticUpgrades(`value`: Output) {
        this.enableAutomaticUpgrades = value
    }

    /**
     * @param value Should the Azure Virtual Machine Guest Agent be installed on this Virtual Machine? Defaults to `false`.
     * > **NOTE:** This is different from the Default value used for this field within Azure.
     */
    @JvmName("qvbvqhtrssnhdwto")
    public suspend fun provisionVmAgent(`value`: Output) {
        this.provisionVmAgent = value
    }

    /**
     * @param value Specifies the time zone of the virtual machine, [the possible values are defined here](https://jackstromberg.com/2017/01/list-of-time-zones-consumed-by-azure/). Changing this forces a new resource to be created.
     */
    @JvmName("rlotfpxijolvdurg")
    public suspend fun timezone(`value`: Output) {
        this.timezone = value
    }

    /**
     * @param value One or more `winrm` blocks as defined below.
     */
    @JvmName("rblsowpvtlhqqcoo")
    public suspend fun winrms(`value`: Output>) {
        this.winrms = value
    }

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

    /**
     * @param values One or more `winrm` blocks as defined below.
     */
    @JvmName("tajicfipsrqrocwr")
    public suspend fun winrms(values: List>) {
        this.winrms = Output.all(values)
    }

    /**
     * @param value An `additional_unattend_config` block as defined below.
     */
    @JvmName("douvyuashrwctwdj")
    public suspend fun additionalUnattendConfigs(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.additionalUnattendConfigs = mapped
    }

    /**
     * @param argument An `additional_unattend_config` block as defined below.
     */
    @JvmName("ddrselqacwfthjsj")
    public suspend fun additionalUnattendConfigs(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            VirtualMachineOsProfileWindowsConfigAdditionalUnattendConfigArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.additionalUnattendConfigs = mapped
    }

    /**
     * @param argument An `additional_unattend_config` block as defined below.
     */
    @JvmName("gkefggvsqvbhpwdg")
    public suspend fun additionalUnattendConfigs(vararg argument: suspend VirtualMachineOsProfileWindowsConfigAdditionalUnattendConfigArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            VirtualMachineOsProfileWindowsConfigAdditionalUnattendConfigArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.additionalUnattendConfigs = mapped
    }

    /**
     * @param argument An `additional_unattend_config` block as defined below.
     */
    @JvmName("bulnpdqrdbmhapvu")
    public suspend fun additionalUnattendConfigs(argument: suspend VirtualMachineOsProfileWindowsConfigAdditionalUnattendConfigArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                VirtualMachineOsProfileWindowsConfigAdditionalUnattendConfigArgsBuilder().applySuspend
                    { argument() }.build(),
            )
        val mapped = of(toBeMapped)
        this.additionalUnattendConfigs = mapped
    }

    /**
     * @param values An `additional_unattend_config` block as defined below.
     */
    @JvmName("nlmalbwaleftywed")
    public suspend fun additionalUnattendConfigs(vararg values: VirtualMachineOsProfileWindowsConfigAdditionalUnattendConfigArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.additionalUnattendConfigs = mapped
    }

    /**
     * @param value Are automatic updates enabled on this Virtual Machine? Defaults to `false`.
     */
    @JvmName("ovfatgtjdduxrvmh")
    public suspend fun enableAutomaticUpgrades(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enableAutomaticUpgrades = mapped
    }

    /**
     * @param value Should the Azure Virtual Machine Guest Agent be installed on this Virtual Machine? Defaults to `false`.
     * > **NOTE:** This is different from the Default value used for this field within Azure.
     */
    @JvmName("viskaslcfycjnffd")
    public suspend fun provisionVmAgent(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.provisionVmAgent = mapped
    }

    /**
     * @param value Specifies the time zone of the virtual machine, [the possible values are defined here](https://jackstromberg.com/2017/01/list-of-time-zones-consumed-by-azure/). Changing this forces a new resource to be created.
     */
    @JvmName("wrljmacpfojhydjg")
    public suspend fun timezone(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.timezone = mapped
    }

    /**
     * @param value One or more `winrm` blocks as defined below.
     */
    @JvmName("noonufiwpcpmuedj")
    public suspend fun winrms(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.winrms = mapped
    }

    /**
     * @param argument One or more `winrm` blocks as defined below.
     */
    @JvmName("uwvjmyhbxymqnjlp")
    public suspend fun winrms(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            VirtualMachineOsProfileWindowsConfigWinrmArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.winrms = mapped
    }

    /**
     * @param argument One or more `winrm` blocks as defined below.
     */
    @JvmName("ikysyxgvdrewiude")
    public suspend fun winrms(vararg argument: suspend VirtualMachineOsProfileWindowsConfigWinrmArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            VirtualMachineOsProfileWindowsConfigWinrmArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.winrms = mapped
    }

    /**
     * @param argument One or more `winrm` blocks as defined below.
     */
    @JvmName("jfapdubkspcusire")
    public suspend fun winrms(argument: suspend VirtualMachineOsProfileWindowsConfigWinrmArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            VirtualMachineOsProfileWindowsConfigWinrmArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.winrms = mapped
    }

    /**
     * @param values One or more `winrm` blocks as defined below.
     */
    @JvmName("ykaxcvexfiksgqbr")
    public suspend fun winrms(vararg values: VirtualMachineOsProfileWindowsConfigWinrmArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.winrms = mapped
    }

    internal fun build(): VirtualMachineOsProfileWindowsConfigArgs =
        VirtualMachineOsProfileWindowsConfigArgs(
            additionalUnattendConfigs = additionalUnattendConfigs,
            enableAutomaticUpgrades = enableAutomaticUpgrades,
            provisionVmAgent = provisionVmAgent,
            timezone = timezone,
            winrms = winrms,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy