
commonMain.aws.sdk.kotlin.services.mediaconvert.model.WavSettings.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 to the value WAV.
*/
public class WavSettings private constructor(builder: Builder) {
/**
* Specify Bit depth, in bits per sample, to choose the encoding quality for this audio track.
*/
public val bitDepth: kotlin.Int? = builder.bitDepth
/**
* Specify the number of channels in this output audio track. Valid values are 1 and even numbers up to 64. For example, 1, 2, 4, 6, and so on, up to 64.
*/
public val channels: kotlin.Int? = builder.channels
/**
* The service defaults to using RIFF for WAV outputs. If your output audio is likely to exceed 4 GB in file size, or if you otherwise need the extended support of the RF64 format, set your output WAV file format to RF64.
*/
public val format: aws.sdk.kotlin.services.mediaconvert.model.WavFormat? = builder.format
/**
* Sample rate in Hz.
*/
public val sampleRate: kotlin.Int? = builder.sampleRate
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.mediaconvert.model.WavSettings = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("WavSettings(")
append("bitDepth=$bitDepth,")
append("channels=$channels,")
append("format=$format,")
append("sampleRate=$sampleRate")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = bitDepth ?: 0
result = 31 * result + (channels ?: 0)
result = 31 * result + (format?.hashCode() ?: 0)
result = 31 * result + (sampleRate ?: 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 WavSettings
if (bitDepth != other.bitDepth) return false
if (channels != other.channels) return false
if (format != other.format) return false
if (sampleRate != other.sampleRate) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.mediaconvert.model.WavSettings = Builder(this).apply(block).build()
public class Builder {
/**
* Specify Bit depth, in bits per sample, to choose the encoding quality for this audio track.
*/
public var bitDepth: kotlin.Int? = null
/**
* Specify the number of channels in this output audio track. Valid values are 1 and even numbers up to 64. For example, 1, 2, 4, 6, and so on, up to 64.
*/
public var channels: kotlin.Int? = null
/**
* The service defaults to using RIFF for WAV outputs. If your output audio is likely to exceed 4 GB in file size, or if you otherwise need the extended support of the RF64 format, set your output WAV file format to RF64.
*/
public var format: aws.sdk.kotlin.services.mediaconvert.model.WavFormat? = null
/**
* Sample rate in Hz.
*/
public var sampleRate: kotlin.Int? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.mediaconvert.model.WavSettings) : this() {
this.bitDepth = x.bitDepth
this.channels = x.channels
this.format = x.format
this.sampleRate = x.sampleRate
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.mediaconvert.model.WavSettings = WavSettings(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy