
commonMain.aws.sdk.kotlin.services.medialive.model.StopTimecode.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.medialive.model
/**
* Settings to identify the end of the clip.
*/
public class StopTimecode private constructor(builder: Builder) {
/**
* If you specify a StopTimecode in an input (in order to clip the file), you can specify if you want the clip to exclude (the default) or include the frame specified by the timecode.
*/
public val lastFrameClippingBehavior: aws.sdk.kotlin.services.medialive.model.LastFrameClippingBehavior? = builder.lastFrameClippingBehavior
/**
* The timecode for the frame where you want to stop the clip. Optional; if not specified, the clip continues to the end of the file. Enter the timecode as HH:MM:SS:FF or HH:MM:SS;FF.
*/
public val timecode: kotlin.String? = builder.timecode
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.medialive.model.StopTimecode = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("StopTimecode(")
append("lastFrameClippingBehavior=$lastFrameClippingBehavior,")
append("timecode=$timecode")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = lastFrameClippingBehavior?.hashCode() ?: 0
result = 31 * result + (timecode?.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 StopTimecode
if (lastFrameClippingBehavior != other.lastFrameClippingBehavior) return false
if (timecode != other.timecode) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.medialive.model.StopTimecode = Builder(this).apply(block).build()
public class Builder {
/**
* If you specify a StopTimecode in an input (in order to clip the file), you can specify if you want the clip to exclude (the default) or include the frame specified by the timecode.
*/
public var lastFrameClippingBehavior: aws.sdk.kotlin.services.medialive.model.LastFrameClippingBehavior? = null
/**
* The timecode for the frame where you want to stop the clip. Optional; if not specified, the clip continues to the end of the file. Enter the timecode as HH:MM:SS:FF or HH:MM:SS;FF.
*/
public var timecode: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.medialive.model.StopTimecode) : this() {
this.lastFrameClippingBehavior = x.lastFrameClippingBehavior
this.timecode = x.timecode
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.medialive.model.StopTimecode = StopTimecode(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy