
commonMain.aws.sdk.kotlin.services.medialive.model.InputClippingSettings.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.medialive.model
/**
* Settings to let you create a clip of the file input, in order to set up the input to ingest only a portion of the file.
*/
public class InputClippingSettings private constructor(builder: Builder) {
/**
* The source of the timecodes in the source being clipped.
*/
public val inputTimecodeSource: aws.sdk.kotlin.services.medialive.model.InputTimecodeSource? = builder.inputTimecodeSource
/**
* Settings to identify the start of the clip.
*/
public val startTimecode: aws.sdk.kotlin.services.medialive.model.StartTimecode? = builder.startTimecode
/**
* Settings to identify the end of the clip.
*/
public val stopTimecode: aws.sdk.kotlin.services.medialive.model.StopTimecode? = builder.stopTimecode
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.medialive.model.InputClippingSettings = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("InputClippingSettings(")
append("inputTimecodeSource=$inputTimecodeSource,")
append("startTimecode=$startTimecode,")
append("stopTimecode=$stopTimecode")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = inputTimecodeSource?.hashCode() ?: 0
result = 31 * result + (startTimecode?.hashCode() ?: 0)
result = 31 * result + (stopTimecode?.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 InputClippingSettings
if (inputTimecodeSource != other.inputTimecodeSource) return false
if (startTimecode != other.startTimecode) return false
if (stopTimecode != other.stopTimecode) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.medialive.model.InputClippingSettings = Builder(this).apply(block).build()
public class Builder {
/**
* The source of the timecodes in the source being clipped.
*/
public var inputTimecodeSource: aws.sdk.kotlin.services.medialive.model.InputTimecodeSource? = null
/**
* Settings to identify the start of the clip.
*/
public var startTimecode: aws.sdk.kotlin.services.medialive.model.StartTimecode? = null
/**
* Settings to identify the end of the clip.
*/
public var stopTimecode: aws.sdk.kotlin.services.medialive.model.StopTimecode? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.medialive.model.InputClippingSettings) : this() {
this.inputTimecodeSource = x.inputTimecodeSource
this.startTimecode = x.startTimecode
this.stopTimecode = x.stopTimecode
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.medialive.model.InputClippingSettings = InputClippingSettings(this)
/**
* construct an [aws.sdk.kotlin.services.medialive.model.StartTimecode] inside the given [block]
*/
public fun startTimecode(block: aws.sdk.kotlin.services.medialive.model.StartTimecode.Builder.() -> kotlin.Unit) {
this.startTimecode = aws.sdk.kotlin.services.medialive.model.StartTimecode.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.medialive.model.StopTimecode] inside the given [block]
*/
public fun stopTimecode(block: aws.sdk.kotlin.services.medialive.model.StopTimecode.Builder.() -> kotlin.Unit) {
this.stopTimecode = aws.sdk.kotlin.services.medialive.model.StopTimecode.invoke(block)
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy