com.pulumi.azurenative.servicebus.kotlin.inputs.EncryptionArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.servicebus.kotlin.inputs
import com.pulumi.azurenative.servicebus.inputs.EncryptionArgs.builder
import com.pulumi.azurenative.servicebus.kotlin.enums.KeySource
import com.pulumi.core.Either
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.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* Properties to configure Encryption
* @property keySource Enumerates the possible value of keySource for Encryption
* @property keyVaultProperties Properties of KeyVault
* @property requireInfrastructureEncryption Enable Infrastructure Encryption (Double Encryption)
*/
public data class EncryptionArgs(
public val keySource: Output>? = null,
public val keyVaultProperties: Output>? = null,
public val requireInfrastructureEncryption: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.servicebus.inputs.EncryptionArgs =
com.pulumi.azurenative.servicebus.inputs.EncryptionArgs.builder()
.keySource(
keySource?.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.keyVaultProperties(
keyVaultProperties?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.requireInfrastructureEncryption(
requireInfrastructureEncryption?.applyValue({ args0 ->
args0
}),
).build()
}
/**
* Builder for [EncryptionArgs].
*/
@PulumiTagMarker
public class EncryptionArgsBuilder internal constructor() {
private var keySource: Output>? = null
private var keyVaultProperties: Output>? = null
private var requireInfrastructureEncryption: Output? = null
/**
* @param value Enumerates the possible value of keySource for Encryption
*/
@JvmName("mfycgmwurvhfkmxb")
public suspend fun keySource(`value`: Output>) {
this.keySource = value
}
/**
* @param value Properties of KeyVault
*/
@JvmName("buxsippgsspeqapr")
public suspend fun keyVaultProperties(`value`: Output>) {
this.keyVaultProperties = value
}
@JvmName("mdvapsdwikxjgsev")
public suspend fun keyVaultProperties(vararg values: Output) {
this.keyVaultProperties = Output.all(values.asList())
}
/**
* @param values Properties of KeyVault
*/
@JvmName("musxnubxkcmrvgjj")
public suspend fun keyVaultProperties(values: List