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

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

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

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



/**
 * Settings for a SCTE-35 splice_insert message.
 */
public class Scte35SpliceInsertScheduleActionSettings private constructor(builder: Builder) {
    /**
     * Optional, the duration for the splice_insert, in 90 KHz ticks. To convert seconds to ticks, multiple the seconds by 90,000. If you enter a duration, there is an expectation that the downstream system can read the duration and cue in at that time. If you do not enter a duration, the splice_insert will continue indefinitely and there is an expectation that you will enter a return_to_network to end the splice_insert at the appropriate time.
     */
    public val duration: kotlin.Long = builder.duration
    /**
     * The splice_event_id for the SCTE-35 splice_insert, as defined in SCTE-35.
     */
    public val spliceEventId: kotlin.Long = builder.spliceEventId

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

    override fun toString(): kotlin.String = buildString {
        append("Scte35SpliceInsertScheduleActionSettings(")
        append("duration=$duration,")
        append("spliceEventId=$spliceEventId")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = duration.hashCode()
        result = 31 * result + (spliceEventId.hashCode())
        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 Scte35SpliceInsertScheduleActionSettings

        if (duration != other.duration) return false
        if (spliceEventId != other.spliceEventId) return false

        return true
    }

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

    public class Builder {
        /**
         * Optional, the duration for the splice_insert, in 90 KHz ticks. To convert seconds to ticks, multiple the seconds by 90,000. If you enter a duration, there is an expectation that the downstream system can read the duration and cue in at that time. If you do not enter a duration, the splice_insert will continue indefinitely and there is an expectation that you will enter a return_to_network to end the splice_insert at the appropriate time.
         */
        public var duration: kotlin.Long = 0L
        /**
         * The splice_event_id for the SCTE-35 splice_insert, as defined in SCTE-35.
         */
        public var spliceEventId: kotlin.Long = 0L

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.medialive.model.Scte35SpliceInsertScheduleActionSettings) : this() {
            this.duration = x.duration
            this.spliceEventId = x.spliceEventId
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy