
commonMain.aws.sdk.kotlin.services.connect.model.QueueInfo.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.connect.model
import aws.smithy.kotlin.runtime.time.Instant
/**
* If this contact was queued, this contains information about the queue.
*/
public class QueueInfo private constructor(builder: Builder) {
/**
* The timestamp when the contact was added to the queue.
*/
public val enqueueTimestamp: aws.smithy.kotlin.runtime.time.Instant? = builder.enqueueTimestamp
/**
* The unique identifier for the queue.
*/
public val id: kotlin.String? = builder.id
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.connect.model.QueueInfo = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("QueueInfo(")
append("enqueueTimestamp=$enqueueTimestamp,")
append("id=$id")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = enqueueTimestamp?.hashCode() ?: 0
result = 31 * result + (id?.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 QueueInfo
if (enqueueTimestamp != other.enqueueTimestamp) return false
if (id != other.id) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.connect.model.QueueInfo = Builder(this).apply(block).build()
public class Builder {
/**
* The timestamp when the contact was added to the queue.
*/
public var enqueueTimestamp: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The unique identifier for the queue.
*/
public var id: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.connect.model.QueueInfo) : this() {
this.enqueueTimestamp = x.enqueueTimestamp
this.id = x.id
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.connect.model.QueueInfo = QueueInfo(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy