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

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

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

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



/**
 * Archive Group Settings
 */
public class ArchiveGroupSettings private constructor(builder: Builder) {
    /**
     * Parameters that control interactions with the CDN.
     */
    public val archiveCdnSettings: aws.sdk.kotlin.services.medialive.model.ArchiveCdnSettings? = builder.archiveCdnSettings
    /**
     * A directory and base filename where archive files should be written.
     */
    public val destination: aws.sdk.kotlin.services.medialive.model.OutputLocationRef? = builder.destination
    /**
     * Number of seconds to write to archive file before closing and starting a new one.
     */
    public val rolloverInterval: kotlin.Int = builder.rolloverInterval

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

    override fun toString(): kotlin.String = buildString {
        append("ArchiveGroupSettings(")
        append("archiveCdnSettings=$archiveCdnSettings,")
        append("destination=$destination,")
        append("rolloverInterval=$rolloverInterval")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = archiveCdnSettings?.hashCode() ?: 0
        result = 31 * result + (destination?.hashCode() ?: 0)
        result = 31 * result + (rolloverInterval)
        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 ArchiveGroupSettings

        if (archiveCdnSettings != other.archiveCdnSettings) return false
        if (destination != other.destination) return false
        if (rolloverInterval != other.rolloverInterval) return false

        return true
    }

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

    public class Builder {
        /**
         * Parameters that control interactions with the CDN.
         */
        public var archiveCdnSettings: aws.sdk.kotlin.services.medialive.model.ArchiveCdnSettings? = null
        /**
         * A directory and base filename where archive files should be written.
         */
        public var destination: aws.sdk.kotlin.services.medialive.model.OutputLocationRef? = null
        /**
         * Number of seconds to write to archive file before closing and starting a new one.
         */
        public var rolloverInterval: kotlin.Int = 0

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.medialive.model.ArchiveGroupSettings) : this() {
            this.archiveCdnSettings = x.archiveCdnSettings
            this.destination = x.destination
            this.rolloverInterval = x.rolloverInterval
        }

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy