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

com.pulumi.azure.media.kotlin.inputs.StreamingPolicyCommonEncryptionCbcsDrmFairplayArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 6.14.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.media.kotlin.inputs

import com.pulumi.azure.media.inputs.StreamingPolicyCommonEncryptionCbcsDrmFairplayArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property allowPersistentLicense All license to be persistent or not. Changing this forces a new Streaming Policy to be created.
 * @property customLicenseAcquisitionUrlTemplate The URL template for the custom service that delivers licenses to the end user. This is not required when using Azure Media Services for issuing licenses. Changing this forces a new Streaming Policy to be created.
 */
public data class StreamingPolicyCommonEncryptionCbcsDrmFairplayArgs(
    public val allowPersistentLicense: Output? = null,
    public val customLicenseAcquisitionUrlTemplate: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava():
        com.pulumi.azure.media.inputs.StreamingPolicyCommonEncryptionCbcsDrmFairplayArgs =
        com.pulumi.azure.media.inputs.StreamingPolicyCommonEncryptionCbcsDrmFairplayArgs.builder()
            .allowPersistentLicense(allowPersistentLicense?.applyValue({ args0 -> args0 }))
            .customLicenseAcquisitionUrlTemplate(
                customLicenseAcquisitionUrlTemplate?.applyValue({ args0 ->
                    args0
                }),
            ).build()
}

/**
 * Builder for [StreamingPolicyCommonEncryptionCbcsDrmFairplayArgs].
 */
@PulumiTagMarker
public class StreamingPolicyCommonEncryptionCbcsDrmFairplayArgsBuilder internal constructor() {
    private var allowPersistentLicense: Output? = null

    private var customLicenseAcquisitionUrlTemplate: Output? = null

    /**
     * @param value All license to be persistent or not. Changing this forces a new Streaming Policy to be created.
     */
    @JvmName("laclwngxvttqagrh")
    public suspend fun allowPersistentLicense(`value`: Output) {
        this.allowPersistentLicense = value
    }

    /**
     * @param value The URL template for the custom service that delivers licenses to the end user. This is not required when using Azure Media Services for issuing licenses. Changing this forces a new Streaming Policy to be created.
     */
    @JvmName("byrhpkxyctbqxtdw")
    public suspend fun customLicenseAcquisitionUrlTemplate(`value`: Output) {
        this.customLicenseAcquisitionUrlTemplate = value
    }

    /**
     * @param value All license to be persistent or not. Changing this forces a new Streaming Policy to be created.
     */
    @JvmName("mvknqggwxflnddlp")
    public suspend fun allowPersistentLicense(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.allowPersistentLicense = mapped
    }

    /**
     * @param value The URL template for the custom service that delivers licenses to the end user. This is not required when using Azure Media Services for issuing licenses. Changing this forces a new Streaming Policy to be created.
     */
    @JvmName("dgglgkajgaoveqog")
    public suspend fun customLicenseAcquisitionUrlTemplate(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.customLicenseAcquisitionUrlTemplate = mapped
    }

    internal fun build(): StreamingPolicyCommonEncryptionCbcsDrmFairplayArgs =
        StreamingPolicyCommonEncryptionCbcsDrmFairplayArgs(
            allowPersistentLicense = allowPersistentLicense,
            customLicenseAcquisitionUrlTemplate = customLicenseAcquisitionUrlTemplate,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy