
commonMain.aws.sdk.kotlin.services.medialive.model.InputChannelLevel.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.medialive.model
/**
* Input Channel Level
*/
public class InputChannelLevel private constructor(builder: Builder) {
/**
* Remixing value. Units are in dB and acceptable values are within the range from -60 (mute) and 6 dB.
*/
public val gain: kotlin.Int = builder.gain
/**
* The index of the input channel used as a source.
*/
public val inputChannel: kotlin.Int = builder.inputChannel
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.medialive.model.InputChannelLevel = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("InputChannelLevel(")
append("gain=$gain,")
append("inputChannel=$inputChannel")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = gain
result = 31 * result + (inputChannel)
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 InputChannelLevel
if (gain != other.gain) return false
if (inputChannel != other.inputChannel) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.medialive.model.InputChannelLevel = Builder(this).apply(block).build()
public class Builder {
/**
* Remixing value. Units are in dB and acceptable values are within the range from -60 (mute) and 6 dB.
*/
public var gain: kotlin.Int = 0
/**
* The index of the input channel used as a source.
*/
public var inputChannel: kotlin.Int = 0
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.medialive.model.InputChannelLevel) : this() {
this.gain = x.gain
this.inputChannel = x.inputChannel
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.medialive.model.InputChannelLevel = InputChannelLevel(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy