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

com.pulumi.azurenative.media.kotlin.inputs.StandardEncoderPresetArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.media.kotlin.inputs

import com.pulumi.azurenative.media.inputs.StandardEncoderPresetArgs.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.Any
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * Describes all the settings to be used when encoding the input video with the Standard Encoder.
 * @property codecs The list of codecs to be used when encoding the input video.
 * @property experimentalOptions Dictionary containing key value pairs for parameters not exposed in the preset itself
 * @property filters One or more filtering operations that are applied to the input media before encoding.
 * @property formats The list of outputs to be produced by the encoder.
 * @property odataType The discriminator for derived types.
 * Expected value is '#Microsoft.Media.StandardEncoderPreset'.
 */
public data class StandardEncoderPresetArgs(
    public val codecs: Output>,
    public val experimentalOptions: Output>? = null,
    public val filters: Output? = null,
    public val formats: Output>,
    public val odataType: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.media.inputs.StandardEncoderPresetArgs =
        com.pulumi.azurenative.media.inputs.StandardEncoderPresetArgs.builder()
            .codecs(codecs.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .experimentalOptions(
                experimentalOptions?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            )
            .filters(filters?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .formats(formats.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .odataType(odataType.applyValue({ args0 -> args0 })).build()
}

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

    private var experimentalOptions: Output>? = null

    private var filters: Output? = null

    private var formats: Output>? = null

    private var odataType: Output? = null

    /**
     * @param value The list of codecs to be used when encoding the input video.
     */
    @JvmName("tljunyecpkxqscvn")
    public suspend fun codecs(`value`: Output>) {
        this.codecs = value
    }

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

    /**
     * @param values The list of codecs to be used when encoding the input video.
     */
    @JvmName("ntlqqwsdrqcggjjd")
    public suspend fun codecs(values: List>) {
        this.codecs = Output.all(values)
    }

    /**
     * @param value Dictionary containing key value pairs for parameters not exposed in the preset itself
     */
    @JvmName("bmoitvyxwknhnsls")
    public suspend fun experimentalOptions(`value`: Output>) {
        this.experimentalOptions = value
    }

    /**
     * @param value One or more filtering operations that are applied to the input media before encoding.
     */
    @JvmName("okydrrfbbpdnfccm")
    public suspend fun filters(`value`: Output) {
        this.filters = value
    }

    /**
     * @param value The list of outputs to be produced by the encoder.
     */
    @JvmName("pfmewdqocejollwg")
    public suspend fun formats(`value`: Output>) {
        this.formats = value
    }

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

    /**
     * @param values The list of outputs to be produced by the encoder.
     */
    @JvmName("qrrltgptdbefului")
    public suspend fun formats(values: List>) {
        this.formats = Output.all(values)
    }

    /**
     * @param value The discriminator for derived types.
     * Expected value is '#Microsoft.Media.StandardEncoderPreset'.
     */
    @JvmName("mpsfnqdcdurxtkgv")
    public suspend fun odataType(`value`: Output) {
        this.odataType = value
    }

    /**
     * @param value The list of codecs to be used when encoding the input video.
     */
    @JvmName("ydylpjasjnjjdvyu")
    public suspend fun codecs(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.codecs = mapped
    }

    /**
     * @param values The list of codecs to be used when encoding the input video.
     */
    @JvmName("ngunjaiqhcscpcxb")
    public suspend fun codecs(vararg values: Any) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.codecs = mapped
    }

    /**
     * @param value Dictionary containing key value pairs for parameters not exposed in the preset itself
     */
    @JvmName("hxvuausilaknfhql")
    public suspend fun experimentalOptions(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.experimentalOptions = mapped
    }

    /**
     * @param values Dictionary containing key value pairs for parameters not exposed in the preset itself
     */
    @JvmName("iktlatgvdlgcpuds")
    public fun experimentalOptions(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.experimentalOptions = mapped
    }

    /**
     * @param value One or more filtering operations that are applied to the input media before encoding.
     */
    @JvmName("gxximxxjgojkxcxf")
    public suspend fun filters(`value`: FiltersArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.filters = mapped
    }

    /**
     * @param argument One or more filtering operations that are applied to the input media before encoding.
     */
    @JvmName("krqfigqocyonqopm")
    public suspend fun filters(argument: suspend FiltersArgsBuilder.() -> Unit) {
        val toBeMapped = FiltersArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.filters = mapped
    }

    /**
     * @param value The list of outputs to be produced by the encoder.
     */
    @JvmName("cagrfpbyocxyfsua")
    public suspend fun formats(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.formats = mapped
    }

    /**
     * @param values The list of outputs to be produced by the encoder.
     */
    @JvmName("bkuhfqikvcoxexyw")
    public suspend fun formats(vararg values: Any) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.formats = mapped
    }

    /**
     * @param value The discriminator for derived types.
     * Expected value is '#Microsoft.Media.StandardEncoderPreset'.
     */
    @JvmName("wadwntriroqeafpb")
    public suspend fun odataType(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.odataType = mapped
    }

    internal fun build(): StandardEncoderPresetArgs = StandardEncoderPresetArgs(
        codecs = codecs ?: throw PulumiNullFieldException("codecs"),
        experimentalOptions = experimentalOptions,
        filters = filters,
        formats = formats ?: throw PulumiNullFieldException("formats"),
        odataType = odataType ?: throw PulumiNullFieldException("odataType"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy