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

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

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

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



/**
 * Archive Container Settings
 */
public class ArchiveContainerSettings private constructor(builder: Builder) {
    /**
     * M2ts Settings
     */
    public val m2TsSettings: aws.sdk.kotlin.services.medialive.model.M2TsSettings? = builder.m2TsSettings
    /**
     * Raw Settings
     */
    public val rawSettings: aws.sdk.kotlin.services.medialive.model.RawSettings? = builder.rawSettings

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

    override fun toString(): kotlin.String = buildString {
        append("ArchiveContainerSettings(")
        append("m2TsSettings=$m2TsSettings,")
        append("rawSettings=$rawSettings")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = m2TsSettings?.hashCode() ?: 0
        result = 31 * result + (rawSettings?.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 ArchiveContainerSettings

        if (m2TsSettings != other.m2TsSettings) return false
        if (rawSettings != other.rawSettings) return false

        return true
    }

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

    public class Builder {
        /**
         * M2ts Settings
         */
        public var m2TsSettings: aws.sdk.kotlin.services.medialive.model.M2TsSettings? = null
        /**
         * Raw Settings
         */
        public var rawSettings: aws.sdk.kotlin.services.medialive.model.RawSettings? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.medialive.model.ArchiveContainerSettings) : this() {
            this.m2TsSettings = x.m2TsSettings
            this.rawSettings = x.rawSettings
        }

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy