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

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

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 6.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

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

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

/**
 *
 * @property sourceVaultId Specifies the ID of the Key Vault to use.
 * @property vaultCertificates One or more `vault_certificates` blocks as defined below.
 */
public data class VirtualMachineOsProfileSecretArgs(
    public val sourceVaultId: Output,
    public val vaultCertificates: Output>? =
        null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.compute.inputs.VirtualMachineOsProfileSecretArgs =
        com.pulumi.azure.compute.inputs.VirtualMachineOsProfileSecretArgs.builder()
            .sourceVaultId(sourceVaultId.applyValue({ args0 -> args0 }))
            .vaultCertificates(
                vaultCertificates?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [VirtualMachineOsProfileSecretArgs].
 */
@PulumiTagMarker
public class VirtualMachineOsProfileSecretArgsBuilder internal constructor() {
    private var sourceVaultId: Output? = null

    private var vaultCertificates: Output>? =
        null

    /**
     * @param value Specifies the ID of the Key Vault to use.
     */
    @JvmName("xujmafcmfxgfvbgc")
    public suspend fun sourceVaultId(`value`: Output) {
        this.sourceVaultId = value
    }

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

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

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

    /**
     * @param value Specifies the ID of the Key Vault to use.
     */
    @JvmName("ktjmsqmuvdtcemdf")
    public suspend fun sourceVaultId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.sourceVaultId = mapped
    }

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

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

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

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

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

    internal fun build(): VirtualMachineOsProfileSecretArgs = VirtualMachineOsProfileSecretArgs(
        sourceVaultId = sourceVaultId ?: throw PulumiNullFieldException("sourceVaultId"),
        vaultCertificates = vaultCertificates,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy