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

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

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

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



/**
 * Multiplex Program Input Destination Settings for outputting a Channel to a Multiplex
 */
public class MultiplexProgramChannelDestinationSettings private constructor(builder: Builder) {
    /**
     * The ID of the Multiplex that the encoder is providing output to. You do not need to specify the individual inputs to the Multiplex; MediaLive will handle the connection of the two MediaLive pipelines to the two Multiplex instances. The Multiplex must be in the same region as the Channel.
     */
    public val multiplexId: kotlin.String? = builder.multiplexId
    /**
     * The program name of the Multiplex program that the encoder is providing output to.
     */
    public val programName: kotlin.String? = builder.programName

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

    override fun toString(): kotlin.String = buildString {
        append("MultiplexProgramChannelDestinationSettings(")
        append("multiplexId=$multiplexId,")
        append("programName=$programName")
        append(")")
    }

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

        if (multiplexId != other.multiplexId) return false
        if (programName != other.programName) return false

        return true
    }

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

    public class Builder {
        /**
         * The ID of the Multiplex that the encoder is providing output to. You do not need to specify the individual inputs to the Multiplex; MediaLive will handle the connection of the two MediaLive pipelines to the two Multiplex instances. The Multiplex must be in the same region as the Channel.
         */
        public var multiplexId: kotlin.String? = null
        /**
         * The program name of the Multiplex program that the encoder is providing output to.
         */
        public var programName: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.medialive.model.MultiplexProgramChannelDestinationSettings) : this() {
            this.multiplexId = x.multiplexId
            this.programName = x.programName
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy