All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.mediaconvert.model.Timing.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.mediaconvert.model

import aws.smithy.kotlin.runtime.time.Instant

/**
 * Information about when jobs are submitted, started, and finished is specified in Unix epoch format in seconds.
 */
public class Timing private constructor(builder: Builder) {
    /**
     * The time, in Unix epoch format, that the transcoding job finished
     */
    public val finishTime: aws.smithy.kotlin.runtime.time.Instant? = builder.finishTime
    /**
     * The time, in Unix epoch format, that transcoding for the job began.
     */
    public val startTime: aws.smithy.kotlin.runtime.time.Instant? = builder.startTime
    /**
     * The time, in Unix epoch format, that you submitted the job.
     */
    public val submitTime: aws.smithy.kotlin.runtime.time.Instant? = builder.submitTime

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.mediaconvert.model.Timing = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("Timing(")
        append("finishTime=$finishTime,")
        append("startTime=$startTime,")
        append("submitTime=$submitTime")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = finishTime?.hashCode() ?: 0
        result = 31 * result + (startTime?.hashCode() ?: 0)
        result = 31 * result + (submitTime?.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 (finishTime != other.finishTime) return false
        if (startTime != other.startTime) return false
        if (submitTime != other.submitTime) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.mediaconvert.model.Timing = Builder(this).apply(block).build()

    public class Builder {
        /**
         * The time, in Unix epoch format, that the transcoding job finished
         */
        public var finishTime: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The time, in Unix epoch format, that transcoding for the job began.
         */
        public var startTime: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The time, in Unix epoch format, that you submitted the job.
         */
        public var submitTime: aws.smithy.kotlin.runtime.time.Instant? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.mediaconvert.model.Timing) : this() {
            this.finishTime = x.finishTime
            this.startTime = x.startTime
            this.submitTime = x.submitTime
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.mediaconvert.model.Timing = Timing(this)

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy