
com.pulumi.azurenative.containerregistry.kotlin.inputs.EncryptionPropertyArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.containerregistry.kotlin.inputs
import com.pulumi.azurenative.containerregistry.inputs.EncryptionPropertyArgs.builder
import com.pulumi.azurenative.containerregistry.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.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property keyVaultProperties Key vault properties.
* @property status Indicates whether or not the encryption is enabled for container registry.
*/
public data class EncryptionPropertyArgs(
public val keyVaultProperties: Output? = null,
public val status: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.containerregistry.inputs.EncryptionPropertyArgs =
com.pulumi.azurenative.containerregistry.inputs.EncryptionPropertyArgs.builder()
.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 keyVaultProperties: Output? = null
private var status: Output>? = null
/**
* @param value Key vault properties.
*/
@JvmName("pwgykekjxxbiwymq")
public suspend fun keyVaultProperties(`value`: Output) {
this.keyVaultProperties = value
}
/**
* @param value Indicates whether or not the encryption is enabled for container registry.
*/
@JvmName("dmbtpfyiborimnms")
public suspend fun status(`value`: Output>) {
this.status = value
}
/**
* @param value Key vault properties.
*/
@JvmName("qpqbvfxronytvfhb")
public suspend fun keyVaultProperties(`value`: KeyVaultPropertiesArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.keyVaultProperties = mapped
}
/**
* @param argument Key vault properties.
*/
@JvmName("rgiufcdoakfppbai")
public suspend fun keyVaultProperties(argument: suspend KeyVaultPropertiesArgsBuilder.() -> Unit) {
val toBeMapped = KeyVaultPropertiesArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.keyVaultProperties = mapped
}
/**
* @param value Indicates whether or not the encryption is enabled for container registry.
*/
@JvmName("pgjtyybbkdlrecdo")
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 container registry.
*/
@JvmName("hmdcsqgpakvgaqap")
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 container registry.
*/
@JvmName("gnrgmpqynpmtghxh")
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(
keyVaultProperties = keyVaultProperties,
status = status,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy