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

com.pulumi.azure.batch.kotlin.inputs.PoolExtensionArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azure.batch.kotlin.inputs

import com.pulumi.azure.batch.inputs.PoolExtensionArgs.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 Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true.
 * @property automaticUpgradeEnabled Indicates whether the extension should be automatically upgraded by the platform if there is a newer version available. Supported values are `true` and `false`.
 * > **NOTE:** When `automatic_upgrade_enabled` is set to `true`, the `type_handler_version` is automatically updated by the Azure platform when a new version is available and any change in `type_handler_version` should be manually ignored by user.
 * @property name The name of the virtual machine extension.
 * @property protectedSettings JSON formatted protected settings for the extension, the value should be encoded with `jsonencode` function. The extension can contain either `protected_settings` or `provision_after_extensions` or no protected settings at all.
 * @property provisionAfterExtensions The collection of extension names. Collection of extension names after which this extension needs to be provisioned.
 * @property publisher The name of the extension handler publisher.The name of the extension handler publisher.
 * @property settingsJson JSON formatted public settings for the extension, the value should be encoded with `jsonencode` function.
 * @property type The type of the extensions.
 * @property typeHandlerVersion The version of script handler.
 */
public data class PoolExtensionArgs(
    public val autoUpgradeMinorVersion: Output? = null,
    public val automaticUpgradeEnabled: Output? = null,
    public val name: Output,
    public val protectedSettings: Output? = null,
    public val provisionAfterExtensions: Output>? = null,
    public val publisher: Output,
    public val settingsJson: Output? = null,
    public val type: Output,
    public val typeHandlerVersion: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.batch.inputs.PoolExtensionArgs =
        com.pulumi.azure.batch.inputs.PoolExtensionArgs.builder()
            .autoUpgradeMinorVersion(autoUpgradeMinorVersion?.applyValue({ args0 -> args0 }))
            .automaticUpgradeEnabled(automaticUpgradeEnabled?.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 }))
            .settingsJson(settingsJson?.applyValue({ args0 -> args0 }))
            .type(type.applyValue({ args0 -> args0 }))
            .typeHandlerVersion(typeHandlerVersion?.applyValue({ args0 -> args0 })).build()
}

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

    private var automaticUpgradeEnabled: Output? = null

    private var name: Output? = null

    private var protectedSettings: Output? = null

    private var provisionAfterExtensions: Output>? = null

    private var publisher: Output? = null

    private var settingsJson: Output? = null

    private var type: Output? = null

    private var typeHandlerVersion: Output? = null

    /**
     * @param value Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true.
     */
    @JvmName("jgbattahhronkful")
    public suspend fun autoUpgradeMinorVersion(`value`: Output) {
        this.autoUpgradeMinorVersion = value
    }

    /**
     * @param value Indicates whether the extension should be automatically upgraded by the platform if there is a newer version available. Supported values are `true` and `false`.
     * > **NOTE:** When `automatic_upgrade_enabled` is set to `true`, the `type_handler_version` is automatically updated by the Azure platform when a new version is available and any change in `type_handler_version` should be manually ignored by user.
     */
    @JvmName("huwoxrshoqwxotyp")
    public suspend fun automaticUpgradeEnabled(`value`: Output) {
        this.automaticUpgradeEnabled = value
    }

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

    /**
     * @param value JSON formatted protected settings for the extension, the value should be encoded with `jsonencode` function. The extension can contain either `protected_settings` or `provision_after_extensions` or no protected settings at all.
     */
    @JvmName("gepxkahgnmspwkol")
    public suspend fun protectedSettings(`value`: Output) {
        this.protectedSettings = value
    }

    /**
     * @param value The collection of extension names. Collection of extension names after which this extension needs to be provisioned.
     */
    @JvmName("viufmnhmrgevbmgd")
    public suspend fun provisionAfterExtensions(`value`: Output>) {
        this.provisionAfterExtensions = value
    }

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

    /**
     * @param values The collection of extension names. Collection of extension names after which this extension needs to be provisioned.
     */
    @JvmName("abgdltegewhhwytg")
    public suspend fun provisionAfterExtensions(values: List>) {
        this.provisionAfterExtensions = Output.all(values)
    }

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

    /**
     * @param value JSON formatted public settings for the extension, the value should be encoded with `jsonencode` function.
     */
    @JvmName("kqecioqjnqsqapwj")
    public suspend fun settingsJson(`value`: Output) {
        this.settingsJson = value
    }

    /**
     * @param value The type of the extensions.
     */
    @JvmName("xblmqouudyxeacyd")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value The version of script handler.
     */
    @JvmName("vfcgbnmplsipiffm")
    public suspend fun typeHandlerVersion(`value`: Output) {
        this.typeHandlerVersion = value
    }

    /**
     * @param value Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true.
     */
    @JvmName("gxnsahtedacdskhn")
    public suspend fun autoUpgradeMinorVersion(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.autoUpgradeMinorVersion = mapped
    }

    /**
     * @param value Indicates whether the extension should be automatically upgraded by the platform if there is a newer version available. Supported values are `true` and `false`.
     * > **NOTE:** When `automatic_upgrade_enabled` is set to `true`, the `type_handler_version` is automatically updated by the Azure platform when a new version is available and any change in `type_handler_version` should be manually ignored by user.
     */
    @JvmName("kspnxhjfwwmmvqen")
    public suspend fun automaticUpgradeEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.automaticUpgradeEnabled = mapped
    }

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

    /**
     * @param value JSON formatted protected settings for the extension, the value should be encoded with `jsonencode` function. The extension can contain either `protected_settings` or `provision_after_extensions` or no protected settings at all.
     */
    @JvmName("sohmpaxpgcsvldni")
    public suspend fun protectedSettings(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.protectedSettings = mapped
    }

    /**
     * @param value The collection of extension names. Collection of extension names after which this extension needs to be provisioned.
     */
    @JvmName("jxvnkfiilckmnkfv")
    public suspend fun provisionAfterExtensions(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.provisionAfterExtensions = mapped
    }

    /**
     * @param values The collection of extension names. Collection of extension names after which this extension needs to be provisioned.
     */
    @JvmName("wquqbudreyecvotr")
    public suspend fun provisionAfterExtensions(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.provisionAfterExtensions = mapped
    }

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

    /**
     * @param value JSON formatted public settings for the extension, the value should be encoded with `jsonencode` function.
     */
    @JvmName("tgcinsefhwsejbae")
    public suspend fun settingsJson(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.settingsJson = mapped
    }

    /**
     * @param value The type of the extensions.
     */
    @JvmName("ncbnrkpimxqrjjbl")
    public suspend fun type(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

    /**
     * @param value The version of script handler.
     */
    @JvmName("ubyecxvixgyrwqfv")
    public suspend fun typeHandlerVersion(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.typeHandlerVersion = mapped
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy