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

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

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

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



/**
 * Webvtt Destination Settings
 */
public class WebvttDestinationSettings private constructor(builder: Builder) {
    /**
     * Controls whether the color and position of the source captions is passed through to the WebVTT output captions. PASSTHROUGH - Valid only if the source captions are EMBEDDED or TELETEXT. NO_STYLE_DATA - Don't pass through the style. The output captions will not contain any font styling information.
     */
    public val styleControl: aws.sdk.kotlin.services.medialive.model.WebvttDestinationStyleControl? = builder.styleControl

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

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

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

        if (styleControl != other.styleControl) return false

        return true
    }

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

    public class Builder {
        /**
         * Controls whether the color and position of the source captions is passed through to the WebVTT output captions. PASSTHROUGH - Valid only if the source captions are EMBEDDED or TELETEXT. NO_STYLE_DATA - Don't pass through the style. The output captions will not contain any font styling information.
         */
        public var styleControl: aws.sdk.kotlin.services.medialive.model.WebvttDestinationStyleControl? = null

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy