
commonMain.aws.sdk.kotlin.services.mediaconvert.model.QueueTransition.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
/**
* Description of the source and destination queues between which the job has moved, along with the timestamp of the move
*/
public class QueueTransition private constructor(builder: Builder) {
/**
* The queue that the job was on after the transition.
*/
public val destinationQueue: kotlin.String? = builder.destinationQueue
/**
* The queue that the job was on before the transition.
*/
public val sourceQueue: kotlin.String? = builder.sourceQueue
/**
* The time, in Unix epoch format, that the job moved from the source queue to the destination queue.
*/
public val timestamp: aws.smithy.kotlin.runtime.time.Instant? = builder.timestamp
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.mediaconvert.model.QueueTransition = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("QueueTransition(")
append("destinationQueue=$destinationQueue,")
append("sourceQueue=$sourceQueue,")
append("timestamp=$timestamp")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = destinationQueue?.hashCode() ?: 0
result = 31 * result + (sourceQueue?.hashCode() ?: 0)
result = 31 * result + (timestamp?.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 QueueTransition
if (destinationQueue != other.destinationQueue) return false
if (sourceQueue != other.sourceQueue) return false
if (timestamp != other.timestamp) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.mediaconvert.model.QueueTransition = Builder(this).apply(block).build()
public class Builder {
/**
* The queue that the job was on after the transition.
*/
public var destinationQueue: kotlin.String? = null
/**
* The queue that the job was on before the transition.
*/
public var sourceQueue: kotlin.String? = null
/**
* The time, in Unix epoch format, that the job moved from the source queue to the destination queue.
*/
public var timestamp: aws.smithy.kotlin.runtime.time.Instant? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.mediaconvert.model.QueueTransition) : this() {
this.destinationQueue = x.destinationQueue
this.sourceQueue = x.sourceQueue
this.timestamp = x.timestamp
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.mediaconvert.model.QueueTransition = QueueTransition(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy