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

com.pulumi.azure.media.kotlin.inputs.StreamingPolicyCommonEncryptionCencClearTrackArgs.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.inputs

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

/**
 *
 * @property conditions One or more `condition` blocks as defined below. Changing this forces a new Streaming Policy to be created.
 */
public data class StreamingPolicyCommonEncryptionCencClearTrackArgs(
    public val conditions: Output>,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.media.inputs.StreamingPolicyCommonEncryptionCencClearTrackArgs =
        com.pulumi.azure.media.inputs.StreamingPolicyCommonEncryptionCencClearTrackArgs.builder()
            .conditions(
                conditions.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [StreamingPolicyCommonEncryptionCencClearTrackArgs].
 */
@PulumiTagMarker
public class StreamingPolicyCommonEncryptionCencClearTrackArgsBuilder internal constructor() {
    private var conditions: Output>? =
        null

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

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

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

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

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

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

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

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

    internal fun build(): StreamingPolicyCommonEncryptionCencClearTrackArgs =
        StreamingPolicyCommonEncryptionCencClearTrackArgs(
            conditions = conditions ?: throw PulumiNullFieldException("conditions"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy