com.pulumi.azurenative.media.kotlin.inputs.CommonEncryptionCencArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.media.kotlin.inputs
import com.pulumi.azurenative.media.inputs.CommonEncryptionCencArgs.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.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* Class for envelope encryption scheme
* @property clearKeyEncryptionConfiguration Optional configuration supporting ClearKey in CommonEncryptionCenc encryption scheme.
* @property clearTracks Representing which tracks should not be encrypted
* @property contentKeys Representing default content key for each encryption scheme and separate content keys for specific tracks
* @property drm Configuration of DRMs for CommonEncryptionCenc encryption scheme
* @property enabledProtocols Representing supported protocols
*/
public data class CommonEncryptionCencArgs(
public val clearKeyEncryptionConfiguration: Output? = null,
public val clearTracks: Output>? = null,
public val contentKeys: Output? = null,
public val drm: Output? = null,
public val enabledProtocols: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.media.inputs.CommonEncryptionCencArgs =
com.pulumi.azurenative.media.inputs.CommonEncryptionCencArgs.builder()
.clearKeyEncryptionConfiguration(
clearKeyEncryptionConfiguration?.applyValue({ args0 ->
args0.let({ args0 -> args0.toJava() })
}),
)
.clearTracks(
clearTracks?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.contentKeys(contentKeys?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.drm(drm?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.enabledProtocols(
enabledProtocols?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
).build()
}
/**
* Builder for [CommonEncryptionCencArgs].
*/
@PulumiTagMarker
public class CommonEncryptionCencArgsBuilder internal constructor() {
private var clearKeyEncryptionConfiguration: Output? = null
private var clearTracks: Output>? = null
private var contentKeys: Output? = null
private var drm: Output? = null
private var enabledProtocols: Output? = null
/**
* @param value Optional configuration supporting ClearKey in CommonEncryptionCenc encryption scheme.
*/
@JvmName("wjspuxwfsxilhrrj")
public suspend fun clearKeyEncryptionConfiguration(`value`: Output) {
this.clearKeyEncryptionConfiguration = value
}
/**
* @param value Representing which tracks should not be encrypted
*/
@JvmName("dlqbxelswtopaqas")
public suspend fun clearTracks(`value`: Output>) {
this.clearTracks = value
}
@JvmName("cdcoxsatuctdwfth")
public suspend fun clearTracks(vararg values: Output) {
this.clearTracks = Output.all(values.asList())
}
/**
* @param values Representing which tracks should not be encrypted
*/
@JvmName("ontkcsnhmjwivwhy")
public suspend fun clearTracks(values: List