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

commonMain.aws.sdk.kotlin.services.mediaconvert.model.PresetSettings.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.mediaconvert.model



/**
 * Settings for preset
 */
public class PresetSettings private constructor(builder: Builder) {
    /**
     * Contains groups of audio encoding settings organized by audio codec. Include one instance of per output. Can contain multiple groups of encoding settings.
     */
    public val audioDescriptions: List? = builder.audioDescriptions
    /**
     * This object holds groups of settings related to captions for one output. For each output that has captions, include one instance of CaptionDescriptions.
     */
    public val captionDescriptions: List? = builder.captionDescriptions
    /**
     * Container specific settings.
     */
    public val containerSettings: aws.sdk.kotlin.services.mediaconvert.model.ContainerSettings? = builder.containerSettings
    /**
     * VideoDescription contains a group of video encoding settings. The specific video settings depend on the video codec that you choose for the property codec. Include one instance of VideoDescription per output.
     */
    public val videoDescription: aws.sdk.kotlin.services.mediaconvert.model.VideoDescription? = builder.videoDescription

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

    override fun toString(): kotlin.String = buildString {
        append("PresetSettings(")
        append("audioDescriptions=$audioDescriptions,")
        append("captionDescriptions=$captionDescriptions,")
        append("containerSettings=$containerSettings,")
        append("videoDescription=$videoDescription")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = audioDescriptions?.hashCode() ?: 0
        result = 31 * result + (captionDescriptions?.hashCode() ?: 0)
        result = 31 * result + (containerSettings?.hashCode() ?: 0)
        result = 31 * result + (videoDescription?.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 PresetSettings

        if (audioDescriptions != other.audioDescriptions) return false
        if (captionDescriptions != other.captionDescriptions) return false
        if (containerSettings != other.containerSettings) return false
        if (videoDescription != other.videoDescription) return false

        return true
    }

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

    public class Builder {
        /**
         * Contains groups of audio encoding settings organized by audio codec. Include one instance of per output. Can contain multiple groups of encoding settings.
         */
        public var audioDescriptions: List? = null
        /**
         * This object holds groups of settings related to captions for one output. For each output that has captions, include one instance of CaptionDescriptions.
         */
        public var captionDescriptions: List? = null
        /**
         * Container specific settings.
         */
        public var containerSettings: aws.sdk.kotlin.services.mediaconvert.model.ContainerSettings? = null
        /**
         * VideoDescription contains a group of video encoding settings. The specific video settings depend on the video codec that you choose for the property codec. Include one instance of VideoDescription per output.
         */
        public var videoDescription: aws.sdk.kotlin.services.mediaconvert.model.VideoDescription? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.mediaconvert.model.PresetSettings) : this() {
            this.audioDescriptions = x.audioDescriptions
            this.captionDescriptions = x.captionDescriptions
            this.containerSettings = x.containerSettings
            this.videoDescription = x.videoDescription
        }

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

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

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

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy