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

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

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

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

import com.pulumi.azure.media.inputs.ContentKeyPolicyPolicyOptionFairplayConfigurationArgs.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.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property ask The key that must be used as FairPlay Application Secret key.
 * @property offlineRentalConfiguration A `offline_rental_configuration` block as defined below.
 * @property pfx The Base64 representation of FairPlay certificate in PKCS 12 (pfx) format (including private key).
 * @property pfxPassword The password encrypting FairPlay certificate in PKCS 12 (pfx) format.
 * @property rentalAndLeaseKeyType The rental and lease key type. Supported values are `DualExpiry`, `PersistentLimited`, `PersistentUnlimited` or `Undefined`.
 * @property rentalDurationSeconds The rental duration. Must be greater than 0.
 */
public data class ContentKeyPolicyPolicyOptionFairplayConfigurationArgs(
    public val ask: Output? = null,
    public val offlineRentalConfiguration:
    Output? =
        null,
    public val pfx: Output? = null,
    public val pfxPassword: Output? = null,
    public val rentalAndLeaseKeyType: Output? = null,
    public val rentalDurationSeconds: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava():
        com.pulumi.azure.media.inputs.ContentKeyPolicyPolicyOptionFairplayConfigurationArgs =
        com.pulumi.azure.media.inputs.ContentKeyPolicyPolicyOptionFairplayConfigurationArgs.builder()
            .ask(ask?.applyValue({ args0 -> args0 }))
            .offlineRentalConfiguration(
                offlineRentalConfiguration?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .pfx(pfx?.applyValue({ args0 -> args0 }))
            .pfxPassword(pfxPassword?.applyValue({ args0 -> args0 }))
            .rentalAndLeaseKeyType(rentalAndLeaseKeyType?.applyValue({ args0 -> args0 }))
            .rentalDurationSeconds(rentalDurationSeconds?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ContentKeyPolicyPolicyOptionFairplayConfigurationArgs].
 */
@PulumiTagMarker
public class ContentKeyPolicyPolicyOptionFairplayConfigurationArgsBuilder internal constructor() {
    private var ask: Output? = null

    private var offlineRentalConfiguration:
        Output? =
        null

    private var pfx: Output? = null

    private var pfxPassword: Output? = null

    private var rentalAndLeaseKeyType: Output? = null

    private var rentalDurationSeconds: Output? = null

    /**
     * @param value The key that must be used as FairPlay Application Secret key.
     */
    @JvmName("knjdxdeyshqfsihi")
    public suspend fun ask(`value`: Output) {
        this.ask = value
    }

    /**
     * @param value A `offline_rental_configuration` block as defined below.
     */
    @JvmName("rsqbcbgbfcsinjfe")
    public suspend
    fun offlineRentalConfiguration(`value`: Output) {
        this.offlineRentalConfiguration = value
    }

    /**
     * @param value The Base64 representation of FairPlay certificate in PKCS 12 (pfx) format (including private key).
     */
    @JvmName("iocrwhnanpfapyok")
    public suspend fun pfx(`value`: Output) {
        this.pfx = value
    }

    /**
     * @param value The password encrypting FairPlay certificate in PKCS 12 (pfx) format.
     */
    @JvmName("twvnwqmvrfqnmddh")
    public suspend fun pfxPassword(`value`: Output) {
        this.pfxPassword = value
    }

    /**
     * @param value The rental and lease key type. Supported values are `DualExpiry`, `PersistentLimited`, `PersistentUnlimited` or `Undefined`.
     */
    @JvmName("dmnuahmepijbujrh")
    public suspend fun rentalAndLeaseKeyType(`value`: Output) {
        this.rentalAndLeaseKeyType = value
    }

    /**
     * @param value The rental duration. Must be greater than 0.
     */
    @JvmName("muhpiyuwrsxoyslm")
    public suspend fun rentalDurationSeconds(`value`: Output) {
        this.rentalDurationSeconds = value
    }

    /**
     * @param value The key that must be used as FairPlay Application Secret key.
     */
    @JvmName("tbjuieskipiivqdd")
    public suspend fun ask(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ask = mapped
    }

    /**
     * @param value A `offline_rental_configuration` block as defined below.
     */
    @JvmName("jakcemsddpveokca")
    public suspend
    fun offlineRentalConfiguration(`value`: ContentKeyPolicyPolicyOptionFairplayConfigurationOfflineRentalConfigurationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.offlineRentalConfiguration = mapped
    }

    /**
     * @param argument A `offline_rental_configuration` block as defined below.
     */
    @JvmName("dkwrgkdsdxejjgoh")
    public suspend
    fun offlineRentalConfiguration(argument: suspend ContentKeyPolicyPolicyOptionFairplayConfigurationOfflineRentalConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped =
            ContentKeyPolicyPolicyOptionFairplayConfigurationOfflineRentalConfigurationArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.offlineRentalConfiguration = mapped
    }

    /**
     * @param value The Base64 representation of FairPlay certificate in PKCS 12 (pfx) format (including private key).
     */
    @JvmName("yvsscyaydlahfjyl")
    public suspend fun pfx(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.pfx = mapped
    }

    /**
     * @param value The password encrypting FairPlay certificate in PKCS 12 (pfx) format.
     */
    @JvmName("eanfebkyienwmktd")
    public suspend fun pfxPassword(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.pfxPassword = mapped
    }

    /**
     * @param value The rental and lease key type. Supported values are `DualExpiry`, `PersistentLimited`, `PersistentUnlimited` or `Undefined`.
     */
    @JvmName("khbjegotoxiwhqka")
    public suspend fun rentalAndLeaseKeyType(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.rentalAndLeaseKeyType = mapped
    }

    /**
     * @param value The rental duration. Must be greater than 0.
     */
    @JvmName("wxngkeqlwkathsuq")
    public suspend fun rentalDurationSeconds(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.rentalDurationSeconds = mapped
    }

    internal fun build(): ContentKeyPolicyPolicyOptionFairplayConfigurationArgs =
        ContentKeyPolicyPolicyOptionFairplayConfigurationArgs(
            ask = ask,
            offlineRentalConfiguration = offlineRentalConfiguration,
            pfx = pfx,
            pfxPassword = pfxPassword,
            rentalAndLeaseKeyType = rentalAndLeaseKeyType,
            rentalDurationSeconds = rentalDurationSeconds,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy