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

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

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

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



/**
 * Ancillary Source Settings
 */
public class AncillarySourceSettings private constructor(builder: Builder) {
    /**
     * Specifies the number (1 to 4) of the captions channel you want to extract from the ancillary captions. If you plan to convert the ancillary captions to another format, complete this field. If you plan to choose Embedded as the captions destination in the output (to pass through all the channels in the ancillary captions), leave this field blank because MediaLive ignores the field.
     */
    public val sourceAncillaryChannelNumber: kotlin.Int = builder.sourceAncillaryChannelNumber

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

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

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

        if (sourceAncillaryChannelNumber != other.sourceAncillaryChannelNumber) return false

        return true
    }

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

    public class Builder {
        /**
         * Specifies the number (1 to 4) of the captions channel you want to extract from the ancillary captions. If you plan to convert the ancillary captions to another format, complete this field. If you plan to choose Embedded as the captions destination in the output (to pass through all the channels in the ancillary captions), leave this field blank because MediaLive ignores the field.
         */
        public var sourceAncillaryChannelNumber: kotlin.Int = 0

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy