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

commonMain.aws.sdk.kotlin.services.ivsrealtime.model.EncoderConfiguration.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.ivsrealtime.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * Settings for transcoding.
 */
public class EncoderConfiguration private constructor(builder: Builder) {
    /**
     * ARN of the EncoderConfiguration resource.
     */
    public val arn: kotlin.String = requireNotNull(builder.arn) { "A non-null value must be provided for arn" }
    /**
     * Optional name to identify the resource.
     */
    public val name: kotlin.String? = builder.name
    /**
     * Tags attached to the resource. Array of maps, each of the form `string:string (key:value)`. See [Best practices and strategies](https://docs.aws.amazon.com/tag-editor/latest/userguide/best-practices-and-strats.html) in *Tagging AWS Resources and Tag Editor* for details, including restrictions that apply to tags and "Tag naming limits and requirements"; Amazon IVS has no constraints on tags beyond what is documented there.
     */
    public val tags: Map? = builder.tags
    /**
     * Video configuration. Default: video resolution 1280x720, bitrate 2500 kbps, 30 fps
     */
    public val video: aws.sdk.kotlin.services.ivsrealtime.model.Video? = builder.video

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

    override fun toString(): kotlin.String = buildString {
        append("EncoderConfiguration(")
        append("arn=$arn,")
        append("name=$name,")
        append("tags=$tags,")
        append("video=$video")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = arn.hashCode()
        result = 31 * result + (name?.hashCode() ?: 0)
        result = 31 * result + (tags?.hashCode() ?: 0)
        result = 31 * result + (video?.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 EncoderConfiguration

        if (arn != other.arn) return false
        if (name != other.name) return false
        if (tags != other.tags) return false
        if (video != other.video) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * ARN of the EncoderConfiguration resource.
         */
        public var arn: kotlin.String? = null
        /**
         * Optional name to identify the resource.
         */
        public var name: kotlin.String? = null
        /**
         * Tags attached to the resource. Array of maps, each of the form `string:string (key:value)`. See [Best practices and strategies](https://docs.aws.amazon.com/tag-editor/latest/userguide/best-practices-and-strats.html) in *Tagging AWS Resources and Tag Editor* for details, including restrictions that apply to tags and "Tag naming limits and requirements"; Amazon IVS has no constraints on tags beyond what is documented there.
         */
        public var tags: Map? = null
        /**
         * Video configuration. Default: video resolution 1280x720, bitrate 2500 kbps, 30 fps
         */
        public var video: aws.sdk.kotlin.services.ivsrealtime.model.Video? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.ivsrealtime.model.EncoderConfiguration) : this() {
            this.arn = x.arn
            this.name = x.name
            this.tags = x.tags
            this.video = x.video
        }

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

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

        internal fun correctErrors(): Builder {
            if (arn == null) arn = ""
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy