
commonMain.aws.sdk.kotlin.services.medialive.model.StaticImageDeactivateScheduleActionSettings.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.medialive.model
/**
* Settings for the action to deactivate the image in a specific layer.
*/
public class StaticImageDeactivateScheduleActionSettings private constructor(builder: Builder) {
/**
* The time in milliseconds for the image to fade out. Default is 0 (no fade-out).
*/
public val fadeOut: kotlin.Int = builder.fadeOut
/**
* The image overlay layer to deactivate, 0 to 7. Default is 0.
*/
public val layer: kotlin.Int = builder.layer
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.medialive.model.StaticImageDeactivateScheduleActionSettings = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("StaticImageDeactivateScheduleActionSettings(")
append("fadeOut=$fadeOut,")
append("layer=$layer")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = fadeOut
result = 31 * result + (layer)
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 StaticImageDeactivateScheduleActionSettings
if (fadeOut != other.fadeOut) return false
if (layer != other.layer) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.medialive.model.StaticImageDeactivateScheduleActionSettings = Builder(this).apply(block).build()
public class Builder {
/**
* The time in milliseconds for the image to fade out. Default is 0 (no fade-out).
*/
public var fadeOut: kotlin.Int = 0
/**
* The image overlay layer to deactivate, 0 to 7. Default is 0.
*/
public var layer: kotlin.Int = 0
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.medialive.model.StaticImageDeactivateScheduleActionSettings) : this() {
this.fadeOut = x.fadeOut
this.layer = x.layer
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.medialive.model.StaticImageDeactivateScheduleActionSettings = StaticImageDeactivateScheduleActionSettings(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy