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

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

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

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

import com.pulumi.azure.compute.inputs.ScaleSetExtensionArgs.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.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property autoUpgradeMinorVersion Specifies whether or not to use the latest minor version available.
 * @property name Specifies the name of the extension.
 * @property protectedSettings The protected_settings passed to the extension, like settings, these are specified as a JSON object in a string.
 * @property provisionAfterExtensions Specifies a dependency array of extensions required to be executed before, the array stores the name of each extension.
 * @property publisher The publisher of the extension, available publishers can be found by using the Azure CLI.
 * @property settings The settings passed to the extension, these are specified as a JSON object in a string.
 * @property type The type of extension, available types for a publisher can be found using the Azure CLI.
 * @property typeHandlerVersion Specifies the version of the extension to use, available versions can be found using the Azure CLI.
 */
public data class ScaleSetExtensionArgs(
    public val autoUpgradeMinorVersion: Output? = null,
    public val name: Output,
    public val protectedSettings: Output? = null,
    public val provisionAfterExtensions: Output>? = null,
    public val publisher: Output,
    public val settings: Output? = null,
    public val type: Output,
    public val typeHandlerVersion: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.compute.inputs.ScaleSetExtensionArgs =
        com.pulumi.azure.compute.inputs.ScaleSetExtensionArgs.builder()
            .autoUpgradeMinorVersion(autoUpgradeMinorVersion?.applyValue({ args0 -> args0 }))
            .name(name.applyValue({ args0 -> args0 }))
            .protectedSettings(protectedSettings?.applyValue({ args0 -> args0 }))
            .provisionAfterExtensions(
                provisionAfterExtensions?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0
                    })
                }),
            )
            .publisher(publisher.applyValue({ args0 -> args0 }))
            .settings(settings?.applyValue({ args0 -> args0 }))
            .type(type.applyValue({ args0 -> args0 }))
            .typeHandlerVersion(typeHandlerVersion.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ScaleSetExtensionArgs].
 */
@PulumiTagMarker
public class ScaleSetExtensionArgsBuilder internal constructor() {
    private var autoUpgradeMinorVersion: Output? = null

    private var name: Output? = null

    private var protectedSettings: Output? = null

    private var provisionAfterExtensions: Output>? = null

    private var publisher: Output? = null

    private var settings: Output? = null

    private var type: Output? = null

    private var typeHandlerVersion: Output? = null

    /**
     * @param value Specifies whether or not to use the latest minor version available.
     */
    @JvmName("vdywpkpsmdxnlown")
    public suspend fun autoUpgradeMinorVersion(`value`: Output) {
        this.autoUpgradeMinorVersion = value
    }

    /**
     * @param value Specifies the name of the extension.
     */
    @JvmName("vjktxlxejwrttqrn")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The protected_settings passed to the extension, like settings, these are specified as a JSON object in a string.
     */
    @JvmName("cxwgataiwvpvwkid")
    public suspend fun protectedSettings(`value`: Output) {
        this.protectedSettings = value
    }

    /**
     * @param value Specifies a dependency array of extensions required to be executed before, the array stores the name of each extension.
     */
    @JvmName("jlskvwvcgqfabfws")
    public suspend fun provisionAfterExtensions(`value`: Output>) {
        this.provisionAfterExtensions = value
    }

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

    /**
     * @param values Specifies a dependency array of extensions required to be executed before, the array stores the name of each extension.
     */
    @JvmName("urxqajqalkloprth")
    public suspend fun provisionAfterExtensions(values: List>) {
        this.provisionAfterExtensions = Output.all(values)
    }

    /**
     * @param value The publisher of the extension, available publishers can be found by using the Azure CLI.
     */
    @JvmName("thtrewatptiaofdu")
    public suspend fun publisher(`value`: Output) {
        this.publisher = value
    }

    /**
     * @param value The settings passed to the extension, these are specified as a JSON object in a string.
     */
    @JvmName("jjbiyowdqxxklrvb")
    public suspend fun settings(`value`: Output) {
        this.settings = value
    }

    /**
     * @param value The type of extension, available types for a publisher can be found using the Azure CLI.
     */
    @JvmName("fcrpaqwurtjoeglg")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value Specifies the version of the extension to use, available versions can be found using the Azure CLI.
     */
    @JvmName("goxrnjisonhlbekq")
    public suspend fun typeHandlerVersion(`value`: Output) {
        this.typeHandlerVersion = value
    }

    /**
     * @param value Specifies whether or not to use the latest minor version available.
     */
    @JvmName("lgnfqelvisqjsvjr")
    public suspend fun autoUpgradeMinorVersion(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.autoUpgradeMinorVersion = mapped
    }

    /**
     * @param value Specifies the name of the extension.
     */
    @JvmName("vljesjotgogowqjc")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The protected_settings passed to the extension, like settings, these are specified as a JSON object in a string.
     */
    @JvmName("ujbvtghhbsrlcbsl")
    public suspend fun protectedSettings(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.protectedSettings = mapped
    }

    /**
     * @param value Specifies a dependency array of extensions required to be executed before, the array stores the name of each extension.
     */
    @JvmName("mbbvjmdonwehvkhb")
    public suspend fun provisionAfterExtensions(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.provisionAfterExtensions = mapped
    }

    /**
     * @param values Specifies a dependency array of extensions required to be executed before, the array stores the name of each extension.
     */
    @JvmName("iweccneburhofcwa")
    public suspend fun provisionAfterExtensions(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.provisionAfterExtensions = mapped
    }

    /**
     * @param value The publisher of the extension, available publishers can be found by using the Azure CLI.
     */
    @JvmName("slgdfhbmolbomhvm")
    public suspend fun publisher(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.publisher = mapped
    }

    /**
     * @param value The settings passed to the extension, these are specified as a JSON object in a string.
     */
    @JvmName("uhfepmeopsfvtrer")
    public suspend fun settings(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.settings = mapped
    }

    /**
     * @param value The type of extension, available types for a publisher can be found using the Azure CLI.
     */
    @JvmName("slemfcjxpjeygfla")
    public suspend fun type(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

    /**
     * @param value Specifies the version of the extension to use, available versions can be found using the Azure CLI.
     */
    @JvmName("laypnbdqxuwypiom")
    public suspend fun typeHandlerVersion(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.typeHandlerVersion = mapped
    }

    internal fun build(): ScaleSetExtensionArgs = ScaleSetExtensionArgs(
        autoUpgradeMinorVersion = autoUpgradeMinorVersion,
        name = name ?: throw PulumiNullFieldException("name"),
        protectedSettings = protectedSettings,
        provisionAfterExtensions = provisionAfterExtensions,
        publisher = publisher ?: throw PulumiNullFieldException("publisher"),
        settings = settings,
        type = type ?: throw PulumiNullFieldException("type"),
        typeHandlerVersion = typeHandlerVersion ?: throw PulumiNullFieldException("typeHandlerVersion"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy