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

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

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

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



/**
 * Specific settings for this type of output.
 */
public class OutputSettings private constructor(builder: Builder) {
    /**
     * Settings for HLS output groups
     */
    public val hlsSettings: aws.sdk.kotlin.services.mediaconvert.model.HlsSettings? = builder.hlsSettings

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

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

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

        if (hlsSettings != other.hlsSettings) return false

        return true
    }

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

    public class Builder {
        /**
         * Settings for HLS output groups
         */
        public var hlsSettings: aws.sdk.kotlin.services.mediaconvert.model.HlsSettings? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.mediaconvert.model.OutputSettings) : this() {
            this.hlsSettings = x.hlsSettings
        }

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy