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

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

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

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

import com.pulumi.azure.compute.inputs.OrchestratedVirtualMachineScaleSetOsProfileArgs.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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property customData The Base64-Encoded Custom Data which should be used for this Virtual Machine Scale Set.
 * > **Note:** When Custom Data has been configured, it's not possible to remove it without tainting the Virtual Machine Scale Set, due to a limitation of the Azure API.
 * @property linuxConfiguration A `linux_configuration` block as documented below.
 * @property windowsConfiguration A `windows_configuration` block as documented below.
 */
public data class OrchestratedVirtualMachineScaleSetOsProfileArgs(
    public val customData: Output? = null,
    public val linuxConfiguration: Output? = null,
    public val windowsConfiguration: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.compute.inputs.OrchestratedVirtualMachineScaleSetOsProfileArgs =
        com.pulumi.azure.compute.inputs.OrchestratedVirtualMachineScaleSetOsProfileArgs.builder()
            .customData(customData?.applyValue({ args0 -> args0 }))
            .linuxConfiguration(
                linuxConfiguration?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .windowsConfiguration(
                windowsConfiguration?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [OrchestratedVirtualMachineScaleSetOsProfileArgs].
 */
@PulumiTagMarker
public class OrchestratedVirtualMachineScaleSetOsProfileArgsBuilder internal constructor() {
    private var customData: Output? = null

    private var linuxConfiguration:
        Output? = null

    private var windowsConfiguration:
        Output? = null

    /**
     * @param value The Base64-Encoded Custom Data which should be used for this Virtual Machine Scale Set.
     * > **Note:** When Custom Data has been configured, it's not possible to remove it without tainting the Virtual Machine Scale Set, due to a limitation of the Azure API.
     */
    @JvmName("anfesraqsdqdypbx")
    public suspend fun customData(`value`: Output) {
        this.customData = value
    }

    /**
     * @param value A `linux_configuration` block as documented below.
     */
    @JvmName("tjebcnjtkxkqrsjv")
    public suspend fun linuxConfiguration(`value`: Output) {
        this.linuxConfiguration = value
    }

    /**
     * @param value A `windows_configuration` block as documented below.
     */
    @JvmName("rloyxxkancclynuj")
    public suspend fun windowsConfiguration(`value`: Output) {
        this.windowsConfiguration = value
    }

    /**
     * @param value The Base64-Encoded Custom Data which should be used for this Virtual Machine Scale Set.
     * > **Note:** When Custom Data has been configured, it's not possible to remove it without tainting the Virtual Machine Scale Set, due to a limitation of the Azure API.
     */
    @JvmName("kllbcutxucvjsyrr")
    public suspend fun customData(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.customData = mapped
    }

    /**
     * @param value A `linux_configuration` block as documented below.
     */
    @JvmName("fjkdkwvhmjpwvkoe")
    public suspend fun linuxConfiguration(`value`: OrchestratedVirtualMachineScaleSetOsProfileLinuxConfigurationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.linuxConfiguration = mapped
    }

    /**
     * @param argument A `linux_configuration` block as documented below.
     */
    @JvmName("hltqtxavoddoysxg")
    public suspend fun linuxConfiguration(argument: suspend OrchestratedVirtualMachineScaleSetOsProfileLinuxConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped =
            OrchestratedVirtualMachineScaleSetOsProfileLinuxConfigurationArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.linuxConfiguration = mapped
    }

    /**
     * @param value A `windows_configuration` block as documented below.
     */
    @JvmName("chkqfnogofmubdsf")
    public suspend fun windowsConfiguration(`value`: OrchestratedVirtualMachineScaleSetOsProfileWindowsConfigurationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.windowsConfiguration = mapped
    }

    /**
     * @param argument A `windows_configuration` block as documented below.
     */
    @JvmName("byuobinegjlgpqod")
    public suspend fun windowsConfiguration(argument: suspend OrchestratedVirtualMachineScaleSetOsProfileWindowsConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped =
            OrchestratedVirtualMachineScaleSetOsProfileWindowsConfigurationArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.windowsConfiguration = mapped
    }

    internal fun build(): OrchestratedVirtualMachineScaleSetOsProfileArgs =
        OrchestratedVirtualMachineScaleSetOsProfileArgs(
            customData = customData,
            linuxConfiguration = linuxConfiguration,
            windowsConfiguration = windowsConfiguration,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy