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

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

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

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



/**
 * A request to update a multiplex.
 */
public class UpdateMultiplexRequest private constructor(builder: Builder) {
    /**
     * ID of the multiplex to update.
     */
    public val multiplexId: kotlin.String? = requireNotNull(builder.multiplexId) { "A non-null value must be provided for multiplexId" }
    /**
     * The new settings for a multiplex.
     */
    public val multiplexSettings: aws.sdk.kotlin.services.medialive.model.MultiplexSettings? = builder.multiplexSettings
    /**
     * Name of the multiplex.
     */
    public val name: kotlin.String? = builder.name

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

    override fun toString(): kotlin.String = buildString {
        append("UpdateMultiplexRequest(")
        append("multiplexId=$multiplexId,")
        append("multiplexSettings=$multiplexSettings,")
        append("name=$name")
        append(")")
    }

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

        if (multiplexId != other.multiplexId) return false
        if (multiplexSettings != other.multiplexSettings) return false
        if (name != other.name) return false

        return true
    }

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

    public class Builder {
        /**
         * ID of the multiplex to update.
         */
        public var multiplexId: kotlin.String? = null
        /**
         * The new settings for a multiplex.
         */
        public var multiplexSettings: aws.sdk.kotlin.services.medialive.model.MultiplexSettings? = null
        /**
         * Name of the multiplex.
         */
        public var name: kotlin.String? = null

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy