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

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

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

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



/**
 * Channel class that the channel should be updated to.
 */
public class UpdateChannelClassRequest private constructor(builder: Builder) {
    /**
     * The channel class that you wish to update this channel to use.
     */
    public val channelClass: aws.sdk.kotlin.services.medialive.model.ChannelClass? = builder.channelClass
    /**
     * Channel Id of the channel whose class should be updated.
     */
    public val channelId: kotlin.String? = requireNotNull(builder.channelId) { "A non-null value must be provided for channelId" }
    /**
     * A list of output destinations for this channel.
     */
    public val destinations: List? = builder.destinations

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

    override fun toString(): kotlin.String = buildString {
        append("UpdateChannelClassRequest(")
        append("channelClass=$channelClass,")
        append("channelId=$channelId,")
        append("destinations=$destinations")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = channelClass?.hashCode() ?: 0
        result = 31 * result + (channelId?.hashCode() ?: 0)
        result = 31 * result + (destinations?.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 UpdateChannelClassRequest

        if (channelClass != other.channelClass) return false
        if (channelId != other.channelId) return false
        if (destinations != other.destinations) return false

        return true
    }

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

    public class Builder {
        /**
         * The channel class that you wish to update this channel to use.
         */
        public var channelClass: aws.sdk.kotlin.services.medialive.model.ChannelClass? = null
        /**
         * Channel Id of the channel whose class should be updated.
         */
        public var channelId: kotlin.String? = null
        /**
         * A list of output destinations for this channel.
         */
        public var destinations: List? = null

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy