
commonMain.aws.sdk.kotlin.services.medialive.model.WavSettings.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.medialive.model
/**
* Wav Settings
*/
public class WavSettings private constructor(builder: Builder) {
/**
* Bits per sample.
*/
public val bitDepth: kotlin.Double = builder.bitDepth
/**
* The audio coding mode for the WAV audio. The mode determines the number of channels in the audio.
*/
public val codingMode: aws.sdk.kotlin.services.medialive.model.WavCodingMode? = builder.codingMode
/**
* Sample rate in Hz.
*/
public val sampleRate: kotlin.Double = builder.sampleRate
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.medialive.model.WavSettings = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("WavSettings(")
append("bitDepth=$bitDepth,")
append("codingMode=$codingMode,")
append("sampleRate=$sampleRate")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = bitDepth.hashCode()
result = 31 * result + (codingMode?.hashCode() ?: 0)
result = 31 * result + (sampleRate.hashCode())
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 WavSettings
if (bitDepth != other.bitDepth) return false
if (codingMode != other.codingMode) return false
if (sampleRate != other.sampleRate) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.medialive.model.WavSettings = Builder(this).apply(block).build()
public class Builder {
/**
* Bits per sample.
*/
public var bitDepth: kotlin.Double = 0.0
/**
* The audio coding mode for the WAV audio. The mode determines the number of channels in the audio.
*/
public var codingMode: aws.sdk.kotlin.services.medialive.model.WavCodingMode? = null
/**
* Sample rate in Hz.
*/
public var sampleRate: kotlin.Double = 0.0
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.medialive.model.WavSettings) : this() {
this.bitDepth = x.bitDepth
this.codingMode = x.codingMode
this.sampleRate = x.sampleRate
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.medialive.model.WavSettings = WavSettings(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy