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

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

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

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

import com.pulumi.azurenative.media.inputs.AacAudioArgs.builder
import com.pulumi.azurenative.media.kotlin.enums.AacAudioProfile
import com.pulumi.core.Either
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 kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * Describes Advanced Audio Codec (AAC) audio encoding settings.
 * @property bitrate The bitrate, in bits per second, of the output encoded audio.
 * @property channels The number of channels in the audio.
 * @property label An optional label for the codec. The label can be used to control muxing behavior.
 * @property odataType The discriminator for derived types.
 * Expected value is '#Microsoft.Media.AacAudio'.
 * @property profile The encoding profile to be used when encoding audio with AAC.
 * @property samplingRate The sampling rate to use for encoding in hertz.
 */
public data class AacAudioArgs(
    public val bitrate: Output? = null,
    public val channels: Output? = null,
    public val label: Output? = null,
    public val odataType: Output,
    public val profile: Output>? = null,
    public val samplingRate: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.media.inputs.AacAudioArgs =
        com.pulumi.azurenative.media.inputs.AacAudioArgs.builder()
            .bitrate(bitrate?.applyValue({ args0 -> args0 }))
            .channels(channels?.applyValue({ args0 -> args0 }))
            .label(label?.applyValue({ args0 -> args0 }))
            .odataType(odataType.applyValue({ args0 -> args0 }))
            .profile(
                profile?.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .samplingRate(samplingRate?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [AacAudioArgs].
 */
@PulumiTagMarker
public class AacAudioArgsBuilder internal constructor() {
    private var bitrate: Output? = null

    private var channels: Output? = null

    private var label: Output? = null

    private var odataType: Output? = null

    private var profile: Output>? = null

    private var samplingRate: Output? = null

    /**
     * @param value The bitrate, in bits per second, of the output encoded audio.
     */
    @JvmName("uocxigltwtaqfeyk")
    public suspend fun bitrate(`value`: Output) {
        this.bitrate = value
    }

    /**
     * @param value The number of channels in the audio.
     */
    @JvmName("baetjaeyoqhmvbho")
    public suspend fun channels(`value`: Output) {
        this.channels = value
    }

    /**
     * @param value An optional label for the codec. The label can be used to control muxing behavior.
     */
    @JvmName("xhljatjkqfhnnsor")
    public suspend fun label(`value`: Output) {
        this.label = value
    }

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

    /**
     * @param value The encoding profile to be used when encoding audio with AAC.
     */
    @JvmName("fdnkrkcywvraseet")
    public suspend fun profile(`value`: Output>) {
        this.profile = value
    }

    /**
     * @param value The sampling rate to use for encoding in hertz.
     */
    @JvmName("ljgsdhhmyjpyshbg")
    public suspend fun samplingRate(`value`: Output) {
        this.samplingRate = value
    }

    /**
     * @param value The bitrate, in bits per second, of the output encoded audio.
     */
    @JvmName("cpgtjerqfpmkdlhy")
    public suspend fun bitrate(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.bitrate = mapped
    }

    /**
     * @param value The number of channels in the audio.
     */
    @JvmName("bpwknkvrkkafxgqt")
    public suspend fun channels(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.channels = mapped
    }

    /**
     * @param value An optional label for the codec. The label can be used to control muxing behavior.
     */
    @JvmName("rssmwecvjqdxqmiu")
    public suspend fun label(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.label = mapped
    }

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

    /**
     * @param value The encoding profile to be used when encoding audio with AAC.
     */
    @JvmName("ifafwbhkpcnuoxnm")
    public suspend fun profile(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.profile = mapped
    }

    /**
     * @param value The encoding profile to be used when encoding audio with AAC.
     */
    @JvmName("fqkvaoncofctbunn")
    public fun profile(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.profile = mapped
    }

    /**
     * @param value The encoding profile to be used when encoding audio with AAC.
     */
    @JvmName("uqnuwyicmdncljkg")
    public fun profile(`value`: AacAudioProfile) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.profile = mapped
    }

    /**
     * @param value The sampling rate to use for encoding in hertz.
     */
    @JvmName("ovndlgljcqsmktec")
    public suspend fun samplingRate(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.samplingRate = mapped
    }

    internal fun build(): AacAudioArgs = AacAudioArgs(
        bitrate = bitrate,
        channels = channels,
        label = label,
        odataType = odataType ?: throw PulumiNullFieldException("odataType"),
        profile = profile,
        samplingRate = samplingRate,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy