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

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

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

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



/**
 * Frame Capture Group Settings
 */
public class FrameCaptureGroupSettings private constructor(builder: Builder) {
    /**
     * The destination for the frame capture files. Either the URI for an Amazon S3 bucket and object, plus a file name prefix (for example, s3ssl://sportsDelivery/highlights/20180820/curling-) or the URI for a MediaStore container, plus a file name prefix (for example, mediastoressl://sportsDelivery/20180820/curling-). The final file names consist of the prefix from the destination field (for example, "curling-") + name modifier + the counter (5 digits, starting from 00001) + extension (which is always .jpg). For example, curling-low.00001.jpg
     */
    public val destination: aws.sdk.kotlin.services.medialive.model.OutputLocationRef? = builder.destination
    /**
     * Parameters that control interactions with the CDN.
     */
    public val frameCaptureCdnSettings: aws.sdk.kotlin.services.medialive.model.FrameCaptureCdnSettings? = builder.frameCaptureCdnSettings

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

    override fun toString(): kotlin.String = buildString {
        append("FrameCaptureGroupSettings(")
        append("destination=$destination,")
        append("frameCaptureCdnSettings=$frameCaptureCdnSettings")
        append(")")
    }

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

        if (destination != other.destination) return false
        if (frameCaptureCdnSettings != other.frameCaptureCdnSettings) return false

        return true
    }

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

    public class Builder {
        /**
         * The destination for the frame capture files. Either the URI for an Amazon S3 bucket and object, plus a file name prefix (for example, s3ssl://sportsDelivery/highlights/20180820/curling-) or the URI for a MediaStore container, plus a file name prefix (for example, mediastoressl://sportsDelivery/20180820/curling-). The final file names consist of the prefix from the destination field (for example, "curling-") + name modifier + the counter (5 digits, starting from 00001) + extension (which is always .jpg). For example, curling-low.00001.jpg
         */
        public var destination: aws.sdk.kotlin.services.medialive.model.OutputLocationRef? = null
        /**
         * Parameters that control interactions with the CDN.
         */
        public var frameCaptureCdnSettings: aws.sdk.kotlin.services.medialive.model.FrameCaptureCdnSettings? = null

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

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

        /**
         * 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)
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy