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

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

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

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

import com.pulumi.azure.media.inputs.StreamingPolicyCommonEncryptionCencContentKeyToTrackMappingArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property label Specifies the content key when creating a Streaming Locator. Changing this forces a new Streaming Policy to be created.
 * @property policyName The policy used by the default key. Changing this forces a new Streaming Policy to be created.
 * @property tracks One or more `track` blocks as defined below. Changing this forces a new Streaming Policy to be created.
 */
public data class StreamingPolicyCommonEncryptionCencContentKeyToTrackMappingArgs(
    public val label: Output? = null,
    public val policyName: Output? = null,
    public val tracks: Output>,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.media.inputs.StreamingPolicyCommonEncryptionCencContentKeyToTrackMappingArgs =
        com.pulumi.azure.media.inputs.StreamingPolicyCommonEncryptionCencContentKeyToTrackMappingArgs.builder()
            .label(label?.applyValue({ args0 -> args0 }))
            .policyName(policyName?.applyValue({ args0 -> args0 }))
            .tracks(
                tracks.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [StreamingPolicyCommonEncryptionCencContentKeyToTrackMappingArgs].
 */
@PulumiTagMarker
public class StreamingPolicyCommonEncryptionCencContentKeyToTrackMappingArgsBuilder internal constructor() {
    private var label: Output? = null

    private var policyName: Output? = null

    private var tracks:
        Output>? = null

    /**
     * @param value Specifies the content key when creating a Streaming Locator. Changing this forces a new Streaming Policy to be created.
     */
    @JvmName("ikkjeaanwsnkuglc")
    public suspend fun label(`value`: Output) {
        this.label = value
    }

    /**
     * @param value The policy used by the default key. Changing this forces a new Streaming Policy to be created.
     */
    @JvmName("cnxatrxeumanlxby")
    public suspend fun policyName(`value`: Output) {
        this.policyName = value
    }

    /**
     * @param value One or more `track` blocks as defined below. Changing this forces a new Streaming Policy to be created.
     */
    @JvmName("mrbpgxvikjdfakqj")
    public suspend fun tracks(`value`: Output>) {
        this.tracks = value
    }

    @JvmName("rdddlhopnbxvqcul")
    public suspend fun tracks(vararg values: Output) {
        this.tracks = Output.all(values.asList())
    }

    /**
     * @param values One or more `track` blocks as defined below. Changing this forces a new Streaming Policy to be created.
     */
    @JvmName("fptxvqdkyaylpvoy")
    public suspend fun tracks(values: List>) {
        this.tracks = Output.all(values)
    }

    /**
     * @param value Specifies the content key when creating a Streaming Locator. Changing this forces a new Streaming Policy to be created.
     */
    @JvmName("wwxdahgculkaxqvn")
    public suspend fun label(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.label = mapped
    }

    /**
     * @param value The policy used by the default key. Changing this forces a new Streaming Policy to be created.
     */
    @JvmName("gjnlybxwpesensyd")
    public suspend fun policyName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.policyName = mapped
    }

    /**
     * @param value One or more `track` blocks as defined below. Changing this forces a new Streaming Policy to be created.
     */
    @JvmName("luyvylphnyjupmcu")
    public suspend fun tracks(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tracks = mapped
    }

    /**
     * @param argument One or more `track` blocks as defined below. Changing this forces a new Streaming Policy to be created.
     */
    @JvmName("kujognuvekfaxawh")
    public suspend fun tracks(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            StreamingPolicyCommonEncryptionCencContentKeyToTrackMappingTrackArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.tracks = mapped
    }

    /**
     * @param argument One or more `track` blocks as defined below. Changing this forces a new Streaming Policy to be created.
     */
    @JvmName("kweutjeenqtxdqcv")
    public suspend fun tracks(vararg argument: suspend StreamingPolicyCommonEncryptionCencContentKeyToTrackMappingTrackArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            StreamingPolicyCommonEncryptionCencContentKeyToTrackMappingTrackArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.tracks = mapped
    }

    /**
     * @param argument One or more `track` blocks as defined below. Changing this forces a new Streaming Policy to be created.
     */
    @JvmName("toloohbswasyirkw")
    public suspend fun tracks(argument: suspend StreamingPolicyCommonEncryptionCencContentKeyToTrackMappingTrackArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                StreamingPolicyCommonEncryptionCencContentKeyToTrackMappingTrackArgsBuilder().applySuspend
                    { argument() }.build(),
            )
        val mapped = of(toBeMapped)
        this.tracks = mapped
    }

    /**
     * @param values One or more `track` blocks as defined below. Changing this forces a new Streaming Policy to be created.
     */
    @JvmName("cbyrcmcfhtrcocrv")
    public suspend fun tracks(vararg values: StreamingPolicyCommonEncryptionCencContentKeyToTrackMappingTrackArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tracks = mapped
    }

    internal fun build(): StreamingPolicyCommonEncryptionCencContentKeyToTrackMappingArgs =
        StreamingPolicyCommonEncryptionCencContentKeyToTrackMappingArgs(
            label = label,
            policyName = policyName,
            tracks = tracks ?: throw PulumiNullFieldException("tracks"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy