All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.mediaconvert.model.FlacSettings.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 FLAC.
 */
public class FlacSettings private constructor(builder: Builder) {
    /**
     * Specify Bit depth (BitDepth), 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. Choosing Mono on the console gives you 1 output channel; choosing Stereo gives you 2. In the API, valid values are between 1 and 8.
     */
    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.FlacSettings = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("FlacSettings(")
        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 FlacSettings

        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.FlacSettings = Builder(this).apply(block).build()

    public class Builder {
        /**
         * Specify Bit depth (BitDepth), 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. Choosing Mono on the console gives you 1 output channel; choosing Stereo gives you 2. In the API, valid values are between 1 and 8.
         */
        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.FlacSettings) : this() {
            this.bitDepth = x.bitDepth
            this.channels = x.channels
            this.sampleRate = x.sampleRate
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.mediaconvert.model.FlacSettings = FlacSettings(this)

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy