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

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

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

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



/**
 * Video Selector Program Id
 */
public class VideoSelectorProgramId private constructor(builder: Builder) {
    /**
     * Selects a specific program from within a multi-program transport stream. If the program doesn't exist, the first program within the transport stream will be selected by default.
     */
    public val programId: kotlin.Int = builder.programId

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

    override fun toString(): kotlin.String = buildString {
        append("VideoSelectorProgramId(")
        append("programId=$programId")
        append(")")
    }

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

        if (programId != other.programId) return false

        return true
    }

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

    public class Builder {
        /**
         * Selects a specific program from within a multi-program transport stream. If the program doesn't exist, the first program within the transport stream will be selected by default.
         */
        public var programId: kotlin.Int = 0

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.medialive.model.VideoSelectorProgramId) : this() {
            this.programId = x.programId
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy