commonMain.aws.sdk.kotlin.services.chimesdkmediapipelines.model.CompositedVideoArtifactsConfiguration.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of chimesdkmediapipelines-jvm Show documentation
Show all versions of chimesdkmediapipelines-jvm Show documentation
The AWS SDK for Kotlin client for Chime SDK Media Pipelines
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.chimesdkmediapipelines.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Specifies the configuration for compositing video artifacts.
*/
public class CompositedVideoArtifactsConfiguration private constructor(builder: Builder) {
/**
* The `GridView` configuration setting.
*/
public val gridViewConfiguration: aws.sdk.kotlin.services.chimesdkmediapipelines.model.GridViewConfiguration? = builder.gridViewConfiguration
/**
* The layout setting, such as `GridView` in the configuration object.
*/
public val layout: aws.sdk.kotlin.services.chimesdkmediapipelines.model.LayoutOption? = builder.layout
/**
* The video resolution setting in the configuration object. Default: HD at 1280 x 720. FHD resolution: 1920 x 1080.
*/
public val resolution: aws.sdk.kotlin.services.chimesdkmediapipelines.model.ResolutionOption? = builder.resolution
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.chimesdkmediapipelines.model.CompositedVideoArtifactsConfiguration = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CompositedVideoArtifactsConfiguration(")
append("gridViewConfiguration=$gridViewConfiguration,")
append("layout=$layout,")
append("resolution=$resolution")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = gridViewConfiguration?.hashCode() ?: 0
result = 31 * result + (layout?.hashCode() ?: 0)
result = 31 * result + (resolution?.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 CompositedVideoArtifactsConfiguration
if (gridViewConfiguration != other.gridViewConfiguration) return false
if (layout != other.layout) return false
if (resolution != other.resolution) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.chimesdkmediapipelines.model.CompositedVideoArtifactsConfiguration = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The `GridView` configuration setting.
*/
public var gridViewConfiguration: aws.sdk.kotlin.services.chimesdkmediapipelines.model.GridViewConfiguration? = null
/**
* The layout setting, such as `GridView` in the configuration object.
*/
public var layout: aws.sdk.kotlin.services.chimesdkmediapipelines.model.LayoutOption? = null
/**
* The video resolution setting in the configuration object. Default: HD at 1280 x 720. FHD resolution: 1920 x 1080.
*/
public var resolution: aws.sdk.kotlin.services.chimesdkmediapipelines.model.ResolutionOption? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.chimesdkmediapipelines.model.CompositedVideoArtifactsConfiguration) : this() {
this.gridViewConfiguration = x.gridViewConfiguration
this.layout = x.layout
this.resolution = x.resolution
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.chimesdkmediapipelines.model.CompositedVideoArtifactsConfiguration = CompositedVideoArtifactsConfiguration(this)
/**
* construct an [aws.sdk.kotlin.services.chimesdkmediapipelines.model.GridViewConfiguration] inside the given [block]
*/
public fun gridViewConfiguration(block: aws.sdk.kotlin.services.chimesdkmediapipelines.model.GridViewConfiguration.Builder.() -> kotlin.Unit) {
this.gridViewConfiguration = aws.sdk.kotlin.services.chimesdkmediapipelines.model.GridViewConfiguration.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}