
com.pulumi.azurenative.machinelearningservices.kotlin.inputs.EncryptionPropertyArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.machinelearningservices.kotlin.inputs
import com.pulumi.azurenative.machinelearningservices.inputs.EncryptionPropertyArgs.builder
import com.pulumi.azurenative.machinelearningservices.kotlin.enums.EncryptionStatus
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.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property identity The identity that will be used to access the key vault for encryption at rest.
* @property keyVaultProperties Customer Key vault properties.
* @property status Indicates whether or not the encryption is enabled for the workspace.
*/
public data class EncryptionPropertyArgs(
public val identity: Output? = null,
public val keyVaultProperties: Output,
public val status: Output>,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.machinelearningservices.inputs.EncryptionPropertyArgs =
com.pulumi.azurenative.machinelearningservices.inputs.EncryptionPropertyArgs.builder()
.identity(identity?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.keyVaultProperties(
keyVaultProperties.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.status(
status.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
).build()
}
/**
* Builder for [EncryptionPropertyArgs].
*/
@PulumiTagMarker
public class EncryptionPropertyArgsBuilder internal constructor() {
private var identity: Output? = null
private var keyVaultProperties: Output? = null
private var status: Output>? = null
/**
* @param value The identity that will be used to access the key vault for encryption at rest.
*/
@JvmName("ukldgavfhgvgpywh")
public suspend fun identity(`value`: Output) {
this.identity = value
}
/**
* @param value Customer Key vault properties.
*/
@JvmName("hthomfnqigniajns")
public suspend fun keyVaultProperties(`value`: Output) {
this.keyVaultProperties = value
}
/**
* @param value Indicates whether or not the encryption is enabled for the workspace.
*/
@JvmName("ahocsjuxcaowjukw")
public suspend fun status(`value`: Output>) {
this.status = value
}
/**
* @param value The identity that will be used to access the key vault for encryption at rest.
*/
@JvmName("larnulrscpmetrxu")
public suspend fun identity(`value`: IdentityForCmkArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.identity = mapped
}
/**
* @param argument The identity that will be used to access the key vault for encryption at rest.
*/
@JvmName("umsttgtebaiynfut")
public suspend fun identity(argument: suspend IdentityForCmkArgsBuilder.() -> Unit) {
val toBeMapped = IdentityForCmkArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.identity = mapped
}
/**
* @param value Customer Key vault properties.
*/
@JvmName("llejvqorgtvkqfra")
public suspend fun keyVaultProperties(`value`: EncryptionKeyVaultPropertiesArgs) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.keyVaultProperties = mapped
}
/**
* @param argument Customer Key vault properties.
*/
@JvmName("ursbvoypbuqpktrk")
public suspend fun keyVaultProperties(argument: suspend EncryptionKeyVaultPropertiesArgsBuilder.() -> Unit) {
val toBeMapped = EncryptionKeyVaultPropertiesArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.keyVaultProperties = mapped
}
/**
* @param value Indicates whether or not the encryption is enabled for the workspace.
*/
@JvmName("noeqfqbwmahijoia")
public suspend fun status(`value`: Either) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.status = mapped
}
/**
* @param value Indicates whether or not the encryption is enabled for the workspace.
*/
@JvmName("ahxymiwakhgxfrpp")
public fun status(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.status = mapped
}
/**
* @param value Indicates whether or not the encryption is enabled for the workspace.
*/
@JvmName("dyehpfmjbcgytnjy")
public fun status(`value`: EncryptionStatus) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.status = mapped
}
internal fun build(): EncryptionPropertyArgs = EncryptionPropertyArgs(
identity = identity,
keyVaultProperties = keyVaultProperties ?: throw PulumiNullFieldException("keyVaultProperties"),
status = status ?: throw PulumiNullFieldException("status"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy