commonMain.aws.sdk.kotlin.services.chimesdkmediapipelines.model.VideoAttribute.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
/**
* Defines the settings for a video tile.
*/
public class VideoAttribute private constructor(builder: Builder) {
/**
* Defines the border color of all video tiles.
*/
public val borderColor: aws.sdk.kotlin.services.chimesdkmediapipelines.model.BorderColor? = builder.borderColor
/**
* Defines the border thickness for all video tiles.
*/
public val borderThickness: kotlin.Int? = builder.borderThickness
/**
* Sets the corner radius of all video tiles.
*/
public val cornerRadius: kotlin.Int? = builder.cornerRadius
/**
* Defines the highlight color for the active video tile.
*/
public val highlightColor: aws.sdk.kotlin.services.chimesdkmediapipelines.model.HighlightColor? = builder.highlightColor
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.chimesdkmediapipelines.model.VideoAttribute = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("VideoAttribute(")
append("borderColor=$borderColor,")
append("borderThickness=$borderThickness,")
append("cornerRadius=$cornerRadius,")
append("highlightColor=$highlightColor")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = borderColor?.hashCode() ?: 0
result = 31 * result + (borderThickness ?: 0)
result = 31 * result + (cornerRadius ?: 0)
result = 31 * result + (highlightColor?.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 VideoAttribute
if (borderColor != other.borderColor) return false
if (borderThickness != other.borderThickness) return false
if (cornerRadius != other.cornerRadius) return false
if (highlightColor != other.highlightColor) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.chimesdkmediapipelines.model.VideoAttribute = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Defines the border color of all video tiles.
*/
public var borderColor: aws.sdk.kotlin.services.chimesdkmediapipelines.model.BorderColor? = null
/**
* Defines the border thickness for all video tiles.
*/
public var borderThickness: kotlin.Int? = null
/**
* Sets the corner radius of all video tiles.
*/
public var cornerRadius: kotlin.Int? = null
/**
* Defines the highlight color for the active video tile.
*/
public var highlightColor: aws.sdk.kotlin.services.chimesdkmediapipelines.model.HighlightColor? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.chimesdkmediapipelines.model.VideoAttribute) : this() {
this.borderColor = x.borderColor
this.borderThickness = x.borderThickness
this.cornerRadius = x.cornerRadius
this.highlightColor = x.highlightColor
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.chimesdkmediapipelines.model.VideoAttribute = VideoAttribute(this)
internal fun correctErrors(): Builder {
return this
}
}
}