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

commonMain.aws.sdk.kotlin.services.medialive.model.AudioSelector.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.medialive.model



/**
 * Audio Selector
 */
public class AudioSelector private constructor(builder: Builder) {
    /**
     * The name of this AudioSelector. AudioDescriptions will use this name to uniquely identify this Selector. Selector names should be unique per input.
     */
    public val name: kotlin.String? = builder.name
    /**
     * The audio selector settings.
     */
    public val selectorSettings: aws.sdk.kotlin.services.medialive.model.AudioSelectorSettings? = builder.selectorSettings

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

    override fun toString(): kotlin.String = buildString {
        append("AudioSelector(")
        append("name=$name,")
        append("selectorSettings=$selectorSettings")
        append(")")
    }

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

        if (name != other.name) return false
        if (selectorSettings != other.selectorSettings) return false

        return true
    }

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

    public class Builder {
        /**
         * The name of this AudioSelector. AudioDescriptions will use this name to uniquely identify this Selector. Selector names should be unique per input.
         */
        public var name: kotlin.String? = null
        /**
         * The audio selector settings.
         */
        public var selectorSettings: aws.sdk.kotlin.services.medialive.model.AudioSelectorSettings? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.medialive.model.AudioSelector) : this() {
            this.name = x.name
            this.selectorSettings = x.selectorSettings
        }

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

        /**
         * construct an [aws.sdk.kotlin.services.medialive.model.AudioSelectorSettings] inside the given [block]
         */
        public fun selectorSettings(block: aws.sdk.kotlin.services.medialive.model.AudioSelectorSettings.Builder.() -> kotlin.Unit) {
            this.selectorSettings = aws.sdk.kotlin.services.medialive.model.AudioSelectorSettings.invoke(block)
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy