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

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

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

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



/**
 * Placeholder documentation for MultiplexProgramSummary
 */
public class MultiplexProgramSummary private constructor(builder: Builder) {
    /**
     * The MediaLive Channel associated with the program.
     */
    public val channelId: kotlin.String? = builder.channelId
    /**
     * The name of the multiplex program.
     */
    public val programName: kotlin.String? = builder.programName

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

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

    override fun hashCode(): kotlin.Int {
        var result = channelId?.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 MultiplexProgramSummary

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

        return true
    }

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

    public class Builder {
        /**
         * The MediaLive Channel associated with the program.
         */
        public var channelId: kotlin.String? = null
        /**
         * The name of the multiplex program.
         */
        public var programName: kotlin.String? = null

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy