
commonMain.aws.sdk.kotlin.services.mediaconvert.model.MotionImageInsertionOffset.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.mediaconvert.model
/**
* Specify the offset between the upper-left corner of the video frame and the top left corner of the overlay.
*/
public class MotionImageInsertionOffset private constructor(builder: Builder) {
/**
* Set the distance, in pixels, between the overlay and the left edge of the video frame.
*/
public val imageX: kotlin.Int? = builder.imageX
/**
* Set the distance, in pixels, between the overlay and the top edge of the video frame.
*/
public val imageY: kotlin.Int? = builder.imageY
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.mediaconvert.model.MotionImageInsertionOffset = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("MotionImageInsertionOffset(")
append("imageX=$imageX,")
append("imageY=$imageY")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = imageX ?: 0
result = 31 * result + (imageY ?: 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 MotionImageInsertionOffset
if (imageX != other.imageX) return false
if (imageY != other.imageY) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.mediaconvert.model.MotionImageInsertionOffset = Builder(this).apply(block).build()
public class Builder {
/**
* Set the distance, in pixels, between the overlay and the left edge of the video frame.
*/
public var imageX: kotlin.Int? = null
/**
* Set the distance, in pixels, between the overlay and the top edge of the video frame.
*/
public var imageY: kotlin.Int? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.mediaconvert.model.MotionImageInsertionOffset) : this() {
this.imageX = x.imageX
this.imageY = x.imageY
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.mediaconvert.model.MotionImageInsertionOffset = MotionImageInsertionOffset(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy