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

com.pulumi.azurenative.devices.kotlin.inputs.EncryptionPropertiesDescriptionArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.devices.kotlin.inputs

import com.pulumi.azurenative.devices.inputs.EncryptionPropertiesDescriptionArgs.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.collections.List
import kotlin.jvm.JvmName

/**
 * The encryption properties for the IoT hub.
 * @property keySource The source of the key.
 * @property keyVaultProperties The properties of the KeyVault key.
 */
public data class EncryptionPropertiesDescriptionArgs(
    public val keySource: Output? = null,
    public val keyVaultProperties: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.devices.inputs.EncryptionPropertiesDescriptionArgs =
        com.pulumi.azurenative.devices.inputs.EncryptionPropertiesDescriptionArgs.builder()
            .keySource(keySource?.applyValue({ args0 -> args0 }))
            .keyVaultProperties(
                keyVaultProperties?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            ).build()
}

/**
 * Builder for [EncryptionPropertiesDescriptionArgs].
 */
@PulumiTagMarker
public class EncryptionPropertiesDescriptionArgsBuilder internal constructor() {
    private var keySource: Output? = null

    private var keyVaultProperties: Output>? = null

    /**
     * @param value The source of the key.
     */
    @JvmName("iksamsnosemqbdlr")
    public suspend fun keySource(`value`: Output) {
        this.keySource = value
    }

    /**
     * @param value The properties of the KeyVault key.
     */
    @JvmName("cuodpgflkjnqeipg")
    public suspend fun keyVaultProperties(`value`: Output>) {
        this.keyVaultProperties = value
    }

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

    /**
     * @param values The properties of the KeyVault key.
     */
    @JvmName("syqlhdpninshnsrx")
    public suspend fun keyVaultProperties(values: List>) {
        this.keyVaultProperties = Output.all(values)
    }

    /**
     * @param value The source of the key.
     */
    @JvmName("ldccjgmbarswqvbn")
    public suspend fun keySource(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.keySource = mapped
    }

    /**
     * @param value The properties of the KeyVault key.
     */
    @JvmName("hidaopxshxgsjcdt")
    public suspend fun keyVaultProperties(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.keyVaultProperties = mapped
    }

    /**
     * @param argument The properties of the KeyVault key.
     */
    @JvmName("kuukjklyfalklvfa")
    public suspend fun keyVaultProperties(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            KeyVaultKeyPropertiesArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.keyVaultProperties = mapped
    }

    /**
     * @param argument The properties of the KeyVault key.
     */
    @JvmName("cfkifdghqjyvriun")
    public suspend fun keyVaultProperties(vararg argument: suspend KeyVaultKeyPropertiesArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            KeyVaultKeyPropertiesArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.keyVaultProperties = mapped
    }

    /**
     * @param argument The properties of the KeyVault key.
     */
    @JvmName("orwfegtahsklumrg")
    public suspend fun keyVaultProperties(argument: suspend KeyVaultKeyPropertiesArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(KeyVaultKeyPropertiesArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.keyVaultProperties = mapped
    }

    /**
     * @param values The properties of the KeyVault key.
     */
    @JvmName("xagepchxfteraxaw")
    public suspend fun keyVaultProperties(vararg values: KeyVaultKeyPropertiesArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.keyVaultProperties = mapped
    }

    internal fun build(): EncryptionPropertiesDescriptionArgs = EncryptionPropertiesDescriptionArgs(
        keySource = keySource,
        keyVaultProperties = keyVaultProperties,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy