
commonMain.aws.sdk.kotlin.services.mediaconvert.model.CaptionSourceFramerate.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.mediaconvert.model
/**
* Ignore this setting unless your input captions format is SCC. To have the service compensate for differing frame rates between your input captions and input video, specify the frame rate of the captions file. Specify this value as a fraction. For example, you might specify 24 / 1 for 24 fps, 25 / 1 for 25 fps, 24000 / 1001 for 23.976 fps, or 30000 / 1001 for 29.97 fps.
*/
public class CaptionSourceFramerate private constructor(builder: Builder) {
/**
* Specify the denominator of the fraction that represents the frame rate for the setting Caption source frame rate. Use this setting along with the setting Framerate numerator.
*/
public val framerateDenominator: kotlin.Int? = builder.framerateDenominator
/**
* Specify the numerator of the fraction that represents the frame rate for the setting Caption source frame rate. Use this setting along with the setting Framerate denominator.
*/
public val framerateNumerator: kotlin.Int? = builder.framerateNumerator
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.mediaconvert.model.CaptionSourceFramerate = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CaptionSourceFramerate(")
append("framerateDenominator=$framerateDenominator,")
append("framerateNumerator=$framerateNumerator")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = framerateDenominator ?: 0
result = 31 * result + (framerateNumerator ?: 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 CaptionSourceFramerate
if (framerateDenominator != other.framerateDenominator) return false
if (framerateNumerator != other.framerateNumerator) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.mediaconvert.model.CaptionSourceFramerate = Builder(this).apply(block).build()
public class Builder {
/**
* Specify the denominator of the fraction that represents the frame rate for the setting Caption source frame rate. Use this setting along with the setting Framerate numerator.
*/
public var framerateDenominator: kotlin.Int? = null
/**
* Specify the numerator of the fraction that represents the frame rate for the setting Caption source frame rate. Use this setting along with the setting Framerate denominator.
*/
public var framerateNumerator: kotlin.Int? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.mediaconvert.model.CaptionSourceFramerate) : this() {
this.framerateDenominator = x.framerateDenominator
this.framerateNumerator = x.framerateNumerator
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.mediaconvert.model.CaptionSourceFramerate = CaptionSourceFramerate(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy