commonMain.aws.sdk.kotlin.services.mediaconvert.model.MotionImageInsertionOffset.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mediaconvert Show documentation
Show all versions of mediaconvert Show documentation
The AWS SDK for Kotlin client for MediaConvert
// 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
result = 31 * result + (imagey)
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 = 0
/**
* Set the distance, in pixels, between the overlay and the top edge of the video frame.
*/
public var imagey: kotlin.Int = 0
@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)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy