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

commonMain.aws.sdk.kotlin.services.chimesdkmeetings.model.VideoFeatures.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.chimesdkmeetings.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * The video features set for the meeting. Applies to all attendees.
 *
 * If you specify `MeetingFeatures:Video:MaxResolution:None` when you create a meeting, all API requests that include `SendReceive`, `Send`, or `Receive` for `AttendeeCapabilities:Video` will be rejected with `ValidationError 400`.
 */
public class VideoFeatures private constructor(builder: Builder) {
    /**
     * The maximum video resolution for the meeting. Applies to all attendees.
     *
     * Defaults to `HD`. To use `FHD`, you must also provide a `MeetingFeatures:Attendee:MaxCount` value and override the default size limit of 250 attendees.
     */
    public val maxResolution: aws.sdk.kotlin.services.chimesdkmeetings.model.VideoResolution? = builder.maxResolution

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

    override fun toString(): kotlin.String = buildString {
        append("VideoFeatures(")
        append("maxResolution=$maxResolution")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = maxResolution?.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 VideoFeatures

        if (maxResolution != other.maxResolution) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The maximum video resolution for the meeting. Applies to all attendees.
         *
         * Defaults to `HD`. To use `FHD`, you must also provide a `MeetingFeatures:Attendee:MaxCount` value and override the default size limit of 250 attendees.
         */
        public var maxResolution: aws.sdk.kotlin.services.chimesdkmeetings.model.VideoResolution? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.chimesdkmeetings.model.VideoFeatures) : this() {
            this.maxResolution = x.maxResolution
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy