
commonMain.aws.sdk.kotlin.services.mediaconvert.model.VorbisSettings.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.mediaconvert.model
/**
* Required when you set Codec, under AudioDescriptions>CodecSettings, to the value Vorbis.
*/
public class VorbisSettings private constructor(builder: Builder) {
/**
* Optional. Specify the number of channels in this output audio track. Choosing Mono on the console gives you 1 output channel; choosing Stereo gives you 2. In the API, valid values are 1 and 2. The default value is 2.
*/
public val channels: kotlin.Int? = builder.channels
/**
* Optional. Specify the audio sample rate in Hz. Valid values are 22050, 32000, 44100, and 48000. The default value is 48000.
*/
public val sampleRate: kotlin.Int? = builder.sampleRate
/**
* Optional. Specify the variable audio quality of this Vorbis output from -1 (lowest quality, ~45 kbit/s) to 10 (highest quality, ~500 kbit/s). The default value is 4 (~128 kbit/s). Values 5 and 6 are approximately 160 and 192 kbit/s, respectively.
*/
public val vbrQuality: kotlin.Int? = builder.vbrQuality
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.mediaconvert.model.VorbisSettings = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("VorbisSettings(")
append("channels=$channels,")
append("sampleRate=$sampleRate,")
append("vbrQuality=$vbrQuality")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = channels ?: 0
result = 31 * result + (sampleRate ?: 0)
result = 31 * result + (vbrQuality ?: 0)
return result
}
override fun equals(other: kotlin.Any?): kotlin.Boolean {
if (this === other) return true
if (other == null || this::class != other::class) return false
other as VorbisSettings
if (channels != other.channels) return false
if (sampleRate != other.sampleRate) return false
if (vbrQuality != other.vbrQuality) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.mediaconvert.model.VorbisSettings = Builder(this).apply(block).build()
public class Builder {
/**
* Optional. Specify the number of channels in this output audio track. Choosing Mono on the console gives you 1 output channel; choosing Stereo gives you 2. In the API, valid values are 1 and 2. The default value is 2.
*/
public var channels: kotlin.Int? = null
/**
* Optional. Specify the audio sample rate in Hz. Valid values are 22050, 32000, 44100, and 48000. The default value is 48000.
*/
public var sampleRate: kotlin.Int? = null
/**
* Optional. Specify the variable audio quality of this Vorbis output from -1 (lowest quality, ~45 kbit/s) to 10 (highest quality, ~500 kbit/s). The default value is 4 (~128 kbit/s). Values 5 and 6 are approximately 160 and 192 kbit/s, respectively.
*/
public var vbrQuality: kotlin.Int? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.mediaconvert.model.VorbisSettings) : this() {
this.channels = x.channels
this.sampleRate = x.sampleRate
this.vbrQuality = x.vbrQuality
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.mediaconvert.model.VorbisSettings = VorbisSettings(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy