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

commonMain.aws.sdk.kotlin.services.mediaconvert.model.OutputChannelMapping.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.mediaconvert.model



/**
 * OutputChannel mapping settings.
 */
public class OutputChannelMapping private constructor(builder: Builder) {
    /**
     * Use this setting to specify your remix values when they are integers, such as -10, 0, or 4.
     */
    public val inputChannels: List? = builder.inputChannels
    /**
     * Use this setting to specify your remix values when they have a decimal component, such as -10.312, 0.08, or 4.9. MediaConvert rounds your remixing values to the nearest thousandth.
     */
    public val inputChannelsFineTune: List? = builder.inputChannelsFineTune

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.mediaconvert.model.OutputChannelMapping = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("OutputChannelMapping(")
        append("inputChannels=$inputChannels,")
        append("inputChannelsFineTune=$inputChannelsFineTune")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = inputChannels?.hashCode() ?: 0
        result = 31 * result + (inputChannelsFineTune?.hashCode() ?: 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 OutputChannelMapping

        if (inputChannels != other.inputChannels) return false
        if (inputChannelsFineTune != other.inputChannelsFineTune) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.mediaconvert.model.OutputChannelMapping = Builder(this).apply(block).build()

    public class Builder {
        /**
         * Use this setting to specify your remix values when they are integers, such as -10, 0, or 4.
         */
        public var inputChannels: List? = null
        /**
         * Use this setting to specify your remix values when they have a decimal component, such as -10.312, 0.08, or 4.9. MediaConvert rounds your remixing values to the nearest thousandth.
         */
        public var inputChannelsFineTune: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.mediaconvert.model.OutputChannelMapping) : this() {
            this.inputChannels = x.inputChannels
            this.inputChannelsFineTune = x.inputChannelsFineTune
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy