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

com.pulumi.gcp.transcoder.kotlin.inputs.JobTemplateConfigElementaryStreamAudioStreamArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.gcp.transcoder.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.transcoder.inputs.JobTemplateConfigElementaryStreamAudioStreamArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property bitrateBps Audio bitrate in bits per second.
 * @property channelCount Number of audio channels. The default is `2`.
 * @property channelLayouts A list of channel names specifying layout of the audio channels.  The default is ["fl", "fr"].
 * @property codec The codec for this audio stream. The default is `aac`.
 * @property sampleRateHertz The audio sample rate in Hertz. The default is `48000`.
 */
public data class JobTemplateConfigElementaryStreamAudioStreamArgs(
    public val bitrateBps: Output,
    public val channelCount: Output? = null,
    public val channelLayouts: Output>? = null,
    public val codec: Output? = null,
    public val sampleRateHertz: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.transcoder.inputs.JobTemplateConfigElementaryStreamAudioStreamArgs =
        com.pulumi.gcp.transcoder.inputs.JobTemplateConfigElementaryStreamAudioStreamArgs.builder()
            .bitrateBps(bitrateBps.applyValue({ args0 -> args0 }))
            .channelCount(channelCount?.applyValue({ args0 -> args0 }))
            .channelLayouts(channelLayouts?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .codec(codec?.applyValue({ args0 -> args0 }))
            .sampleRateHertz(sampleRateHertz?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [JobTemplateConfigElementaryStreamAudioStreamArgs].
 */
@PulumiTagMarker
public class JobTemplateConfigElementaryStreamAudioStreamArgsBuilder internal constructor() {
    private var bitrateBps: Output? = null

    private var channelCount: Output? = null

    private var channelLayouts: Output>? = null

    private var codec: Output? = null

    private var sampleRateHertz: Output? = null

    /**
     * @param value Audio bitrate in bits per second.
     */
    @JvmName("enreqdxpsdkbdnpi")
    public suspend fun bitrateBps(`value`: Output) {
        this.bitrateBps = value
    }

    /**
     * @param value Number of audio channels. The default is `2`.
     */
    @JvmName("gbwwmbtjcmnqibvi")
    public suspend fun channelCount(`value`: Output) {
        this.channelCount = value
    }

    /**
     * @param value A list of channel names specifying layout of the audio channels.  The default is ["fl", "fr"].
     */
    @JvmName("iuhlqxnemjsofkxf")
    public suspend fun channelLayouts(`value`: Output>) {
        this.channelLayouts = value
    }

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

    /**
     * @param values A list of channel names specifying layout of the audio channels.  The default is ["fl", "fr"].
     */
    @JvmName("vbtwbpwnhaywkabs")
    public suspend fun channelLayouts(values: List>) {
        this.channelLayouts = Output.all(values)
    }

    /**
     * @param value The codec for this audio stream. The default is `aac`.
     */
    @JvmName("euxoevubklknqkrh")
    public suspend fun codec(`value`: Output) {
        this.codec = value
    }

    /**
     * @param value The audio sample rate in Hertz. The default is `48000`.
     */
    @JvmName("dbfsujjtinjgesho")
    public suspend fun sampleRateHertz(`value`: Output) {
        this.sampleRateHertz = value
    }

    /**
     * @param value Audio bitrate in bits per second.
     */
    @JvmName("rtjkggidvwwuugbq")
    public suspend fun bitrateBps(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.bitrateBps = mapped
    }

    /**
     * @param value Number of audio channels. The default is `2`.
     */
    @JvmName("edaoikcdtpekptoc")
    public suspend fun channelCount(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.channelCount = mapped
    }

    /**
     * @param value A list of channel names specifying layout of the audio channels.  The default is ["fl", "fr"].
     */
    @JvmName("gchcccegpyiscril")
    public suspend fun channelLayouts(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.channelLayouts = mapped
    }

    /**
     * @param values A list of channel names specifying layout of the audio channels.  The default is ["fl", "fr"].
     */
    @JvmName("vqetackifvuguvsg")
    public suspend fun channelLayouts(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.channelLayouts = mapped
    }

    /**
     * @param value The codec for this audio stream. The default is `aac`.
     */
    @JvmName("durdjendtqkohbnx")
    public suspend fun codec(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.codec = mapped
    }

    /**
     * @param value The audio sample rate in Hertz. The default is `48000`.
     */
    @JvmName("hvdwpevetmwqdabt")
    public suspend fun sampleRateHertz(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sampleRateHertz = mapped
    }

    internal fun build(): JobTemplateConfigElementaryStreamAudioStreamArgs =
        JobTemplateConfigElementaryStreamAudioStreamArgs(
            bitrateBps = bitrateBps ?: throw PulumiNullFieldException("bitrateBps"),
            channelCount = channelCount,
            channelLayouts = channelLayouts,
            codec = codec,
            sampleRateHertz = sampleRateHertz,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy