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

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

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

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



/**
 * Placeholder documentation for DescribeMultiplexProgramRequest
 */
public class DescribeMultiplexProgramRequest private constructor(builder: Builder) {
    /**
     * The ID of the multiplex that the program belongs to.
     */
    public val multiplexId: kotlin.String? = requireNotNull(builder.multiplexId) { "A non-null value must be provided for multiplexId" }
    /**
     * The name of the program.
     */
    public val programName: kotlin.String? = requireNotNull(builder.programName) { "A non-null value must be provided for programName" }

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

    override fun toString(): kotlin.String = buildString {
        append("DescribeMultiplexProgramRequest(")
        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 DescribeMultiplexProgramRequest

        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.DescribeMultiplexProgramRequest = Builder(this).apply(block).build()

    public class Builder {
        /**
         * The ID of the multiplex that the program belongs to.
         */
        public var multiplexId: kotlin.String? = null
        /**
         * The name of the program.
         */
        public var programName: kotlin.String? = null

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy