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

commonMain.aws.sdk.kotlin.services.chimesdkmediapipelines.model.VerticalLayoutConfiguration.kt Maven / Gradle / Ivy

There is a newer version: 1.3.76
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.chimesdkmediapipelines.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * Defines the configuration settings for a vertical layout.
 */
public class VerticalLayoutConfiguration private constructor(builder: Builder) {
    /**
     * Sets the aspect ratio of the video tiles, such as 16:9.
     */
    public val tileAspectRatio: kotlin.String? = builder.tileAspectRatio
    /**
     * The maximum number of tiles to display.
     */
    public val tileCount: kotlin.Int? = builder.tileCount
    /**
     * Sets the automatic ordering of the video tiles.
     */
    public val tileOrder: aws.sdk.kotlin.services.chimesdkmediapipelines.model.TileOrder? = builder.tileOrder
    /**
     * Sets the position of vertical tiles.
     */
    public val tilePosition: aws.sdk.kotlin.services.chimesdkmediapipelines.model.VerticalTilePosition? = builder.tilePosition

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

    override fun toString(): kotlin.String = buildString {
        append("VerticalLayoutConfiguration(")
        append("tileAspectRatio=$tileAspectRatio,")
        append("tileCount=$tileCount,")
        append("tileOrder=$tileOrder,")
        append("tilePosition=$tilePosition")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = tileAspectRatio?.hashCode() ?: 0
        result = 31 * result + (tileCount ?: 0)
        result = 31 * result + (tileOrder?.hashCode() ?: 0)
        result = 31 * result + (tilePosition?.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 VerticalLayoutConfiguration

        if (tileAspectRatio != other.tileAspectRatio) return false
        if (tileCount != other.tileCount) return false
        if (tileOrder != other.tileOrder) return false
        if (tilePosition != other.tilePosition) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * Sets the aspect ratio of the video tiles, such as 16:9.
         */
        public var tileAspectRatio: kotlin.String? = null
        /**
         * The maximum number of tiles to display.
         */
        public var tileCount: kotlin.Int? = null
        /**
         * Sets the automatic ordering of the video tiles.
         */
        public var tileOrder: aws.sdk.kotlin.services.chimesdkmediapipelines.model.TileOrder? = null
        /**
         * Sets the position of vertical tiles.
         */
        public var tilePosition: aws.sdk.kotlin.services.chimesdkmediapipelines.model.VerticalTilePosition? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.chimesdkmediapipelines.model.VerticalLayoutConfiguration) : this() {
            this.tileAspectRatio = x.tileAspectRatio
            this.tileCount = x.tileCount
            this.tileOrder = x.tileOrder
            this.tilePosition = x.tilePosition
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy