
commonMain.aws.sdk.kotlin.services.ivsrealtime.model.Video.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 video.
*/
public class Video private constructor(builder: Builder) {
/**
* Bitrate for generated output, in bps. Default: 2500000.
*/
public val bitrate: kotlin.Int? = builder.bitrate
/**
* Video frame rate, in fps. Default: 30.
*/
public val framerate: kotlin.Float? = builder.framerate
/**
* Video-resolution height. This must be an even number. Note that the maximum value is determined by `width` times `height`, such that the maximum total pixels is 2073600 (1920x1080 or 1080x1920). Default: 720.
*/
public val height: kotlin.Int? = builder.height
/**
* Video-resolution width. This must be an even number. Note that the maximum value is determined by `width` times `height`, such that the maximum total pixels is 2073600 (1920x1080 or 1080x1920). Default: 1280.
*/
public val width: kotlin.Int? = builder.width
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ivsrealtime.model.Video = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("Video(")
append("bitrate=$bitrate,")
append("framerate=$framerate,")
append("height=$height,")
append("width=$width")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = bitrate ?: 0
result = 31 * result + (framerate?.hashCode() ?: 0)
result = 31 * result + (height ?: 0)
result = 31 * result + (width ?: 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 Video
if (bitrate != other.bitrate) return false
if (!(framerate?.equals(other.framerate) ?: (other.framerate == null))) return false
if (height != other.height) return false
if (width != other.width) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ivsrealtime.model.Video = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Bitrate for generated output, in bps. Default: 2500000.
*/
public var bitrate: kotlin.Int? = null
/**
* Video frame rate, in fps. Default: 30.
*/
public var framerate: kotlin.Float? = null
/**
* Video-resolution height. This must be an even number. Note that the maximum value is determined by `width` times `height`, such that the maximum total pixels is 2073600 (1920x1080 or 1080x1920). Default: 720.
*/
public var height: kotlin.Int? = null
/**
* Video-resolution width. This must be an even number. Note that the maximum value is determined by `width` times `height`, such that the maximum total pixels is 2073600 (1920x1080 or 1080x1920). Default: 1280.
*/
public var width: kotlin.Int? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.ivsrealtime.model.Video) : this() {
this.bitrate = x.bitrate
this.framerate = x.framerate
this.height = x.height
this.width = x.width
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ivsrealtime.model.Video = Video(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy