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

commonMain.aws.sdk.kotlin.services.medialive.model.UpdateMultiplexProgramRequest.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 program in a multiplex.
 */
public class UpdateMultiplexProgramRequest private constructor(builder: Builder) {
    /**
     * The ID of the multiplex of the program 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 program.
     */
    public val multiplexProgramSettings: aws.sdk.kotlin.services.medialive.model.MultiplexProgramSettings? = builder.multiplexProgramSettings
    /**
     * The name of the program to update.
     */
    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.UpdateMultiplexProgramRequest = Builder().apply(block).build()
    }

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

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

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

        return true
    }

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

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

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy