
commonMain.aws.sdk.kotlin.services.mediaconvert.model.AiffSettings.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 AIFF.
*/
public class AiffSettings 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
/**
* 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.AiffSettings = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("AiffSettings(")
append("bitDepth=$bitDepth,")
append("channels=$channels,")
append("sampleRate=$sampleRate")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = bitDepth ?: 0
result = 31 * result + (channels ?: 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 AiffSettings
if (bitDepth != other.bitDepth) return false
if (channels != other.channels) return false
if (sampleRate != other.sampleRate) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.mediaconvert.model.AiffSettings = 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
/**
* Sample rate in Hz.
*/
public var sampleRate: kotlin.Int? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.mediaconvert.model.AiffSettings) : this() {
this.bitDepth = x.bitDepth
this.channels = x.channels
this.sampleRate = x.sampleRate
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.mediaconvert.model.AiffSettings = AiffSettings(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy