commonMain.aws.sdk.kotlin.services.elastictranscoder.model.TimeSpan.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of elastictranscoder-jvm Show documentation
Show all versions of elastictranscoder-jvm Show documentation
The AWS SDK for Kotlin client for Elastic Transcoder
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.elastictranscoder.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Settings that determine when a clip begins and how long it lasts.
*/
public class TimeSpan private constructor(builder: Builder) {
/**
* The duration of the clip. The format can be either HH:mm:ss.SSS (maximum value: 23:59:59.999; SSS is thousandths of a second) or sssss.SSS (maximum value: 86399.999). If you don't specify a value, Elastic Transcoder creates an output file from StartTime to the end of the file.
*
* If you specify a value longer than the duration of the input file, Elastic Transcoder transcodes the file and returns a warning message.
*/
public val duration: kotlin.String? = builder.duration
/**
* The place in the input file where you want a clip to start. The format can be either HH:mm:ss.SSS (maximum value: 23:59:59.999; SSS is thousandths of a second) or sssss.SSS (maximum value: 86399.999). If you don't specify a value, Elastic Transcoder starts at the beginning of the input file.
*/
public val startTime: kotlin.String? = builder.startTime
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.elastictranscoder.model.TimeSpan = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("TimeSpan(")
append("duration=$duration,")
append("startTime=$startTime")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = duration?.hashCode() ?: 0
result = 31 * result + (startTime?.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 TimeSpan
if (duration != other.duration) return false
if (startTime != other.startTime) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.elastictranscoder.model.TimeSpan = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The duration of the clip. The format can be either HH:mm:ss.SSS (maximum value: 23:59:59.999; SSS is thousandths of a second) or sssss.SSS (maximum value: 86399.999). If you don't specify a value, Elastic Transcoder creates an output file from StartTime to the end of the file.
*
* If you specify a value longer than the duration of the input file, Elastic Transcoder transcodes the file and returns a warning message.
*/
public var duration: kotlin.String? = null
/**
* The place in the input file where you want a clip to start. The format can be either HH:mm:ss.SSS (maximum value: 23:59:59.999; SSS is thousandths of a second) or sssss.SSS (maximum value: 86399.999). If you don't specify a value, Elastic Transcoder starts at the beginning of the input file.
*/
public var startTime: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.elastictranscoder.model.TimeSpan) : this() {
this.duration = x.duration
this.startTime = x.startTime
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.elastictranscoder.model.TimeSpan = TimeSpan(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy