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

com.pulumi.azure.media.kotlin.outputs.ContentKeyPolicyPolicyOptionPlayreadyConfigurationLicense.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.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.media.kotlin.outputs

import kotlin.Boolean
import kotlin.String
import kotlin.Suppress

/**
 *
 * @property allowTestDevices A flag indicating whether test devices can use the license.
 * @property beginDate The begin date of license.
 * @property contentKeyLocationFromHeaderEnabled Specifies that the content key ID is in the PlayReady header.
 * @property contentKeyLocationFromKeyId The content key ID. Specifies that the content key ID is specified in the PlayReady configuration.
 * > **NOTE:** You can only specify one content key location. For example if you specify `content_key_location_from_header_enabled` in true, you shouldn't specify `content_key_location_from_key_id` and vice versa.
 * @property contentType The PlayReady content type. Supported values are `UltraVioletDownload`, `UltraVioletStreaming` or `Unspecified`.
 * @property expirationDate The expiration date of license.
 * @property gracePeriod The grace period of license.
 * @property licenseType The license type. Supported values are `NonPersistent` or `Persistent`.
 * @property playRight A `play_right` block as defined above.
 * @property relativeBeginDate The relative begin date of license.
 * @property relativeExpirationDate The relative expiration date of license.
 * @property securityLevel The security level of the PlayReady license. Possible values are `SL150`, `SL2000` and `SL3000`. Please see [this document](https://learn.microsoft.com/en-us/rest/api/media/content-key-policies/create-or-update?tabs=HTTP#securitylevel) for more information about security level. See [this document](https://learn.microsoft.com/en-us/azure/media-services/latest/drm-playready-license-template-concept#playready-sl3000-support) for more information about `SL3000` support.
 */
public data class ContentKeyPolicyPolicyOptionPlayreadyConfigurationLicense(
    public val allowTestDevices: Boolean? = null,
    public val beginDate: String? = null,
    public val contentKeyLocationFromHeaderEnabled: Boolean? = null,
    public val contentKeyLocationFromKeyId: String? = null,
    public val contentType: String? = null,
    public val expirationDate: String? = null,
    public val gracePeriod: String? = null,
    public val licenseType: String? = null,
    public val playRight: ContentKeyPolicyPolicyOptionPlayreadyConfigurationLicensePlayRight? = null,
    public val relativeBeginDate: String? = null,
    public val relativeExpirationDate: String? = null,
    public val securityLevel: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.azure.media.outputs.ContentKeyPolicyPolicyOptionPlayreadyConfigurationLicense): ContentKeyPolicyPolicyOptionPlayreadyConfigurationLicense =
            ContentKeyPolicyPolicyOptionPlayreadyConfigurationLicense(
                allowTestDevices = javaType.allowTestDevices().map({ args0 -> args0 }).orElse(null),
                beginDate = javaType.beginDate().map({ args0 -> args0 }).orElse(null),
                contentKeyLocationFromHeaderEnabled = javaType.contentKeyLocationFromHeaderEnabled().map({ args0 ->
                    args0
                }).orElse(null),
                contentKeyLocationFromKeyId = javaType.contentKeyLocationFromKeyId().map({ args0 ->
                    args0
                }).orElse(null),
                contentType = javaType.contentType().map({ args0 -> args0 }).orElse(null),
                expirationDate = javaType.expirationDate().map({ args0 -> args0 }).orElse(null),
                gracePeriod = javaType.gracePeriod().map({ args0 -> args0 }).orElse(null),
                licenseType = javaType.licenseType().map({ args0 -> args0 }).orElse(null),
                playRight = javaType.playRight().map({ args0 ->
                    args0.let({ args0 ->
                        com.pulumi.azure.media.kotlin.outputs.ContentKeyPolicyPolicyOptionPlayreadyConfigurationLicensePlayRight.Companion.toKotlin(args0)
                    })
                }).orElse(null),
                relativeBeginDate = javaType.relativeBeginDate().map({ args0 -> args0 }).orElse(null),
                relativeExpirationDate = javaType.relativeExpirationDate().map({ args0 -> args0 }).orElse(null),
                securityLevel = javaType.securityLevel().map({ args0 -> args0 }).orElse(null),
            )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy