commonMain.aws.sdk.kotlin.services.connect.model.Queue.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.connect.model
/**
* Contains information about a queue.
*/
public class Queue private constructor(builder: Builder) {
/**
* The description of the queue.
*/
public val description: kotlin.String? = builder.description
/**
* The identifier for the hours of operation.
*/
public val hoursOfOperationId: kotlin.String? = builder.hoursOfOperationId
/**
* The maximum number of contacts that can be in the queue before it is considered full.
*/
public val maxContacts: kotlin.Int? = builder.maxContacts
/**
* The name of the queue.
*/
public val name: kotlin.String? = builder.name
/**
* The outbound caller ID name, number, and outbound whisper flow.
*/
public val outboundCallerConfig: aws.sdk.kotlin.services.connect.model.OutboundCallerConfig? = builder.outboundCallerConfig
/**
* The Amazon Resource Name (ARN) for the queue.
*/
public val queueArn: kotlin.String? = builder.queueArn
/**
* The identifier for the queue.
*/
public val queueId: kotlin.String? = builder.queueId
/**
* The status of the queue.
*/
public val status: aws.sdk.kotlin.services.connect.model.QueueStatus? = builder.status
/**
* The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
*/
public val tags: Map? = builder.tags
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.connect.model.Queue = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("Queue(")
append("description=$description,")
append("hoursOfOperationId=$hoursOfOperationId,")
append("maxContacts=$maxContacts,")
append("name=$name,")
append("outboundCallerConfig=$outboundCallerConfig,")
append("queueArn=$queueArn,")
append("queueId=$queueId,")
append("status=$status,")
append("tags=$tags")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = description?.hashCode() ?: 0
result = 31 * result + (hoursOfOperationId?.hashCode() ?: 0)
result = 31 * result + (maxContacts ?: 0)
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (outboundCallerConfig?.hashCode() ?: 0)
result = 31 * result + (queueArn?.hashCode() ?: 0)
result = 31 * result + (queueId?.hashCode() ?: 0)
result = 31 * result + (status?.hashCode() ?: 0)
result = 31 * result + (tags?.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 Queue
if (description != other.description) return false
if (hoursOfOperationId != other.hoursOfOperationId) return false
if (maxContacts != other.maxContacts) return false
if (name != other.name) return false
if (outboundCallerConfig != other.outboundCallerConfig) return false
if (queueArn != other.queueArn) return false
if (queueId != other.queueId) return false
if (status != other.status) return false
if (tags != other.tags) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.connect.model.Queue = Builder(this).apply(block).build()
public class Builder {
/**
* The description of the queue.
*/
public var description: kotlin.String? = null
/**
* The identifier for the hours of operation.
*/
public var hoursOfOperationId: kotlin.String? = null
/**
* The maximum number of contacts that can be in the queue before it is considered full.
*/
public var maxContacts: kotlin.Int? = null
/**
* The name of the queue.
*/
public var name: kotlin.String? = null
/**
* The outbound caller ID name, number, and outbound whisper flow.
*/
public var outboundCallerConfig: aws.sdk.kotlin.services.connect.model.OutboundCallerConfig? = null
/**
* The Amazon Resource Name (ARN) for the queue.
*/
public var queueArn: kotlin.String? = null
/**
* The identifier for the queue.
*/
public var queueId: kotlin.String? = null
/**
* The status of the queue.
*/
public var status: aws.sdk.kotlin.services.connect.model.QueueStatus? = null
/**
* The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
*/
public var tags: Map? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.connect.model.Queue) : this() {
this.description = x.description
this.hoursOfOperationId = x.hoursOfOperationId
this.maxContacts = x.maxContacts
this.name = x.name
this.outboundCallerConfig = x.outboundCallerConfig
this.queueArn = x.queueArn
this.queueId = x.queueId
this.status = x.status
this.tags = x.tags
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.connect.model.Queue = Queue(this)
/**
* construct an [aws.sdk.kotlin.services.connect.model.OutboundCallerConfig] inside the given [block]
*/
public fun outboundCallerConfig(block: aws.sdk.kotlin.services.connect.model.OutboundCallerConfig.Builder.() -> kotlin.Unit) {
this.outboundCallerConfig = aws.sdk.kotlin.services.connect.model.OutboundCallerConfig.invoke(block)
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy