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

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

/**
 *
 * @property customKeysAcquisitionUrlTemplate The URL template for the custom service that delivers content keys to the end user. This is not required when using Azure Media Services for issuing keys. Changing this forces a new Streaming Policy to be created.
 * @property defaultContentKey A `default_content_key` block as defined above. Changing this forces a new Streaming Policy to be created.
 * @property enabledProtocols A `enabled_protocols` block as defined above. Changing this forces a new Streaming Policy to be created.
 */
public data class StreamingPolicyEnvelopeEncryptionArgs(
    public val customKeysAcquisitionUrlTemplate: Output? = null,
    public val defaultContentKey: Output? =
        null,
    public val enabledProtocols: Output? =
        null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.media.inputs.StreamingPolicyEnvelopeEncryptionArgs =
        com.pulumi.azure.media.inputs.StreamingPolicyEnvelopeEncryptionArgs.builder()
            .customKeysAcquisitionUrlTemplate(customKeysAcquisitionUrlTemplate?.applyValue({ args0 -> args0 }))
            .defaultContentKey(defaultContentKey?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .enabledProtocols(
                enabledProtocols?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [StreamingPolicyEnvelopeEncryptionArgs].
 */
@PulumiTagMarker
public class StreamingPolicyEnvelopeEncryptionArgsBuilder internal constructor() {
    private var customKeysAcquisitionUrlTemplate: Output? = null

    private var defaultContentKey: Output? =
        null

    private var enabledProtocols: Output? =
        null

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

    /**
     * @param value A `default_content_key` block as defined above. Changing this forces a new Streaming Policy to be created.
     */
    @JvmName("fbiwyjmlmdovijis")
    public suspend
    fun defaultContentKey(`value`: Output) {
        this.defaultContentKey = value
    }

    /**
     * @param value A `enabled_protocols` block as defined above. Changing this forces a new Streaming Policy to be created.
     */
    @JvmName("uiiobqogckifoqyb")
    public suspend
    fun enabledProtocols(`value`: Output) {
        this.enabledProtocols = value
    }

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

    /**
     * @param value A `default_content_key` block as defined above. Changing this forces a new Streaming Policy to be created.
     */
    @JvmName("licnhdiidoyybeus")
    public suspend
    fun defaultContentKey(`value`: StreamingPolicyEnvelopeEncryptionDefaultContentKeyArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.defaultContentKey = mapped
    }

    /**
     * @param argument A `default_content_key` block as defined above. Changing this forces a new Streaming Policy to be created.
     */
    @JvmName("dhnfiterobpugldv")
    public suspend
    fun defaultContentKey(argument: suspend StreamingPolicyEnvelopeEncryptionDefaultContentKeyArgsBuilder.() -> Unit) {
        val toBeMapped = StreamingPolicyEnvelopeEncryptionDefaultContentKeyArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.defaultContentKey = mapped
    }

    /**
     * @param value A `enabled_protocols` block as defined above. Changing this forces a new Streaming Policy to be created.
     */
    @JvmName("dcmqkmldlmhnbbsj")
    public suspend
    fun enabledProtocols(`value`: StreamingPolicyEnvelopeEncryptionEnabledProtocolsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enabledProtocols = mapped
    }

    /**
     * @param argument A `enabled_protocols` block as defined above. Changing this forces a new Streaming Policy to be created.
     */
    @JvmName("hmgxiyttolujolef")
    public suspend
    fun enabledProtocols(argument: suspend StreamingPolicyEnvelopeEncryptionEnabledProtocolsArgsBuilder.() -> Unit) {
        val toBeMapped = StreamingPolicyEnvelopeEncryptionEnabledProtocolsArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.enabledProtocols = mapped
    }

    internal fun build(): StreamingPolicyEnvelopeEncryptionArgs =
        StreamingPolicyEnvelopeEncryptionArgs(
            customKeysAcquisitionUrlTemplate = customKeysAcquisitionUrlTemplate,
            defaultContentKey = defaultContentKey,
            enabledProtocols = enabledProtocols,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy