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

com.pulumi.azurenative.containerinstance.kotlin.inputs.DeploymentExtensionSpecArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.containerinstance.kotlin.inputs

import com.pulumi.azurenative.containerinstance.inputs.DeploymentExtensionSpecArgs.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.Any
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * Extension sidecars to be added to the deployment.
 * @property extensionType Type of extension to be added.
 * @property name Name of the extension.
 * @property protectedSettings Protected settings for the extension.
 * @property settings Settings for the extension.
 * @property version Version of the extension being used.
 */
public data class DeploymentExtensionSpecArgs(
    public val extensionType: Output,
    public val name: Output,
    public val protectedSettings: Output? = null,
    public val settings: Output? = null,
    public val version: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.containerinstance.inputs.DeploymentExtensionSpecArgs = com.pulumi.azurenative.containerinstance.inputs.DeploymentExtensionSpecArgs.builder()
        .extensionType(extensionType.applyValue({ args0 -> args0 }))
        .name(name.applyValue({ args0 -> args0 }))
        .protectedSettings(protectedSettings?.applyValue({ args0 -> args0 }))
        .settings(settings?.applyValue({ args0 -> args0 }))
        .version(version.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [DeploymentExtensionSpecArgs].
 */
@PulumiTagMarker
public class DeploymentExtensionSpecArgsBuilder internal constructor() {
    private var extensionType: Output? = null

    private var name: Output? = null

    private var protectedSettings: Output? = null

    private var settings: Output? = null

    private var version: Output? = null

    /**
     * @param value Type of extension to be added.
     */
    @JvmName("ytnaexgjdnemqsqy")
    public suspend fun extensionType(`value`: Output) {
        this.extensionType = value
    }

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

    /**
     * @param value Protected settings for the extension.
     */
    @JvmName("mjcslhhbmjtjvwil")
    public suspend fun protectedSettings(`value`: Output) {
        this.protectedSettings = value
    }

    /**
     * @param value Settings for the extension.
     */
    @JvmName("gubwnmnxeswqpxsn")
    public suspend fun settings(`value`: Output) {
        this.settings = value
    }

    /**
     * @param value Version of the extension being used.
     */
    @JvmName("jmfvdjpkdhsljvkn")
    public suspend fun version(`value`: Output) {
        this.version = value
    }

    /**
     * @param value Type of extension to be added.
     */
    @JvmName("fvdiodypdhbcjbsw")
    public suspend fun extensionType(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.extensionType = mapped
    }

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

    /**
     * @param value Protected settings for the extension.
     */
    @JvmName("iupaablthecqlaca")
    public suspend fun protectedSettings(`value`: Any?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.protectedSettings = mapped
    }

    /**
     * @param value Settings for the extension.
     */
    @JvmName("xiitsedvjmfcvxvn")
    public suspend fun settings(`value`: Any?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.settings = mapped
    }

    /**
     * @param value Version of the extension being used.
     */
    @JvmName("pcrqjehxvyblheyw")
    public suspend fun version(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.version = mapped
    }

    internal fun build(): DeploymentExtensionSpecArgs = DeploymentExtensionSpecArgs(
        extensionType = extensionType ?: throw PulumiNullFieldException("extensionType"),
        name = name ?: throw PulumiNullFieldException("name"),
        protectedSettings = protectedSettings,
        settings = settings,
        version = version ?: throw PulumiNullFieldException("version"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy