commonMain.aws.sdk.kotlin.services.elastictranscoder.model.Timing.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
/**
* Details about the timing of a job.
*/
public class Timing private constructor(builder: Builder) {
/**
* The time the job finished transcoding, in epoch milliseconds.
*/
public val finishTimeMillis: kotlin.Long? = builder.finishTimeMillis
/**
* The time the job began transcoding, in epoch milliseconds.
*/
public val startTimeMillis: kotlin.Long? = builder.startTimeMillis
/**
* The time the job was submitted to Elastic Transcoder, in epoch milliseconds.
*/
public val submitTimeMillis: kotlin.Long? = builder.submitTimeMillis
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.elastictranscoder.model.Timing = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("Timing(")
append("finishTimeMillis=$finishTimeMillis,")
append("startTimeMillis=$startTimeMillis,")
append("submitTimeMillis=$submitTimeMillis")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = finishTimeMillis?.hashCode() ?: 0
result = 31 * result + (startTimeMillis?.hashCode() ?: 0)
result = 31 * result + (submitTimeMillis?.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 Timing
if (finishTimeMillis != other.finishTimeMillis) return false
if (startTimeMillis != other.startTimeMillis) return false
if (submitTimeMillis != other.submitTimeMillis) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.elastictranscoder.model.Timing = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The time the job finished transcoding, in epoch milliseconds.
*/
public var finishTimeMillis: kotlin.Long? = null
/**
* The time the job began transcoding, in epoch milliseconds.
*/
public var startTimeMillis: kotlin.Long? = null
/**
* The time the job was submitted to Elastic Transcoder, in epoch milliseconds.
*/
public var submitTimeMillis: kotlin.Long? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.elastictranscoder.model.Timing) : this() {
this.finishTimeMillis = x.finishTimeMillis
this.startTimeMillis = x.startTimeMillis
this.submitTimeMillis = x.submitTimeMillis
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.elastictranscoder.model.Timing = Timing(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy