![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.media.kotlin.inputs.AudioArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-native-kotlin Show documentation
Show all versions of pulumi-azure-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.media.kotlin.inputs
import com.pulumi.azurenative.media.inputs.AudioArgs.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 kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Defines the common properties for all audio codecs.
* @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.Audio'.
* @property samplingRate The sampling rate to use for encoding in hertz.
*/
public data class AudioArgs(
public val bitrate: Output? = null,
public val channels: Output? = null,
public val label: Output? = null,
public val odataType: Output,
public val samplingRate: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.media.inputs.AudioArgs =
com.pulumi.azurenative.media.inputs.AudioArgs.builder()
.bitrate(bitrate?.applyValue({ args0 -> args0 }))
.channels(channels?.applyValue({ args0 -> args0 }))
.label(label?.applyValue({ args0 -> args0 }))
.odataType(odataType.applyValue({ args0 -> args0 }))
.samplingRate(samplingRate?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [AudioArgs].
*/
@PulumiTagMarker
public class AudioArgsBuilder internal constructor() {
private var bitrate: Output? = null
private var channels: Output? = null
private var label: Output? = null
private var odataType: Output? = null
private var samplingRate: Output? = null
/**
* @param value The bitrate, in bits per second, of the output encoded audio.
*/
@JvmName("otlnydiexccyidbf")
public suspend fun bitrate(`value`: Output) {
this.bitrate = value
}
/**
* @param value The number of channels in the audio.
*/
@JvmName("phungcxmewnomjnq")
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("jtucfgvvuqsuibkb")
public suspend fun label(`value`: Output) {
this.label = value
}
/**
* @param value The discriminator for derived types.
* Expected value is '#Microsoft.Media.Audio'.
*/
@JvmName("roffahimhpgoojsw")
public suspend fun odataType(`value`: Output) {
this.odataType = value
}
/**
* @param value The sampling rate to use for encoding in hertz.
*/
@JvmName("mdpddsltxiiprdyj")
public suspend fun samplingRate(`value`: Output) {
this.samplingRate = value
}
/**
* @param value The bitrate, in bits per second, of the output encoded audio.
*/
@JvmName("lkkrxcddkxfubhch")
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("hkgauklmgesrmsbw")
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("yxucohwbsurichab")
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.Audio'.
*/
@JvmName("nisfpjhwndcarrtf")
public suspend fun odataType(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.odataType = mapped
}
/**
* @param value The sampling rate to use for encoding in hertz.
*/
@JvmName("ekvmfetenuhguvbr")
public suspend fun samplingRate(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.samplingRate = mapped
}
internal fun build(): AudioArgs = AudioArgs(
bitrate = bitrate,
channels = channels,
label = label,
odataType = odataType ?: throw PulumiNullFieldException("odataType"),
samplingRate = samplingRate,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy