
commonMain.aws.sdk.kotlin.services.medialive.model.AudioChannelMapping.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.medialive.model
/**
* Audio Channel Mapping
*/
public class AudioChannelMapping private constructor(builder: Builder) {
/**
* Indices and gain values for each input channel that should be remixed into this output channel.
*/
public val inputChannelLevels: List? = builder.inputChannelLevels
/**
* The index of the output channel being produced.
*/
public val outputChannel: kotlin.Int = builder.outputChannel
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.medialive.model.AudioChannelMapping = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("AudioChannelMapping(")
append("inputChannelLevels=$inputChannelLevels,")
append("outputChannel=$outputChannel")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = inputChannelLevels?.hashCode() ?: 0
result = 31 * result + (outputChannel)
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 AudioChannelMapping
if (inputChannelLevels != other.inputChannelLevels) return false
if (outputChannel != other.outputChannel) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.medialive.model.AudioChannelMapping = Builder(this).apply(block).build()
public class Builder {
/**
* Indices and gain values for each input channel that should be remixed into this output channel.
*/
public var inputChannelLevels: List? = null
/**
* The index of the output channel being produced.
*/
public var outputChannel: kotlin.Int = 0
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.medialive.model.AudioChannelMapping) : this() {
this.inputChannelLevels = x.inputChannelLevels
this.outputChannel = x.outputChannel
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.medialive.model.AudioChannelMapping = AudioChannelMapping(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy