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

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

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

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



/**
 * Output settings. There can be multiple outputs within a group.
 */
public class Output private constructor(builder: Builder) {
    /**
     * The names of the AudioDescriptions used as audio sources for this output.
     */
    public val audioDescriptionNames: List? = builder.audioDescriptionNames
    /**
     * The names of the CaptionDescriptions used as caption sources for this output.
     */
    public val captionDescriptionNames: List? = builder.captionDescriptionNames
    /**
     * The name used to identify an output.
     */
    public val outputName: kotlin.String? = builder.outputName
    /**
     * Output type-specific settings.
     */
    public val outputSettings: aws.sdk.kotlin.services.medialive.model.OutputSettings? = builder.outputSettings
    /**
     * The name of the VideoDescription used as the source for this output.
     */
    public val videoDescriptionName: kotlin.String? = builder.videoDescriptionName

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

    override fun toString(): kotlin.String = buildString {
        append("Output(")
        append("audioDescriptionNames=$audioDescriptionNames,")
        append("captionDescriptionNames=$captionDescriptionNames,")
        append("outputName=$outputName,")
        append("outputSettings=$outputSettings,")
        append("videoDescriptionName=$videoDescriptionName")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = audioDescriptionNames?.hashCode() ?: 0
        result = 31 * result + (captionDescriptionNames?.hashCode() ?: 0)
        result = 31 * result + (outputName?.hashCode() ?: 0)
        result = 31 * result + (outputSettings?.hashCode() ?: 0)
        result = 31 * result + (videoDescriptionName?.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 Output

        if (audioDescriptionNames != other.audioDescriptionNames) return false
        if (captionDescriptionNames != other.captionDescriptionNames) return false
        if (outputName != other.outputName) return false
        if (outputSettings != other.outputSettings) return false
        if (videoDescriptionName != other.videoDescriptionName) return false

        return true
    }

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

    public class Builder {
        /**
         * The names of the AudioDescriptions used as audio sources for this output.
         */
        public var audioDescriptionNames: List? = null
        /**
         * The names of the CaptionDescriptions used as caption sources for this output.
         */
        public var captionDescriptionNames: List? = null
        /**
         * The name used to identify an output.
         */
        public var outputName: kotlin.String? = null
        /**
         * Output type-specific settings.
         */
        public var outputSettings: aws.sdk.kotlin.services.medialive.model.OutputSettings? = null
        /**
         * The name of the VideoDescription used as the source for this output.
         */
        public var videoDescriptionName: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.medialive.model.Output) : this() {
            this.audioDescriptionNames = x.audioDescriptionNames
            this.captionDescriptionNames = x.captionDescriptionNames
            this.outputName = x.outputName
            this.outputSettings = x.outputSettings
            this.videoDescriptionName = x.videoDescriptionName
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy