aws.sdk.kotlin.services.connect.model.DescribeQueueResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.connect.model
class DescribeQueueResponse private constructor(builder: BuilderImpl) {
/**
* The name of the queue.
*/
val queue: Queue? = builder.queue
companion object {
@JvmStatic
fun fluentBuilder(): FluentBuilder = BuilderImpl()
internal fun builder(): DslBuilder = BuilderImpl()
operator fun invoke(block: DslBuilder.() -> kotlin.Unit): DescribeQueueResponse = BuilderImpl().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DescribeQueueResponse(")
append("queue=$queue)")
}
override fun hashCode(): kotlin.Int {
var result = queue?.hashCode() ?: 0
return result
}
override fun equals(other: kotlin.Any?): kotlin.Boolean {
if (this === other) return true
if (javaClass != other?.javaClass) return false
other as DescribeQueueResponse
if (queue != other.queue) return false
return true
}
fun copy(block: DslBuilder.() -> kotlin.Unit = {}): DescribeQueueResponse = BuilderImpl(this).apply(block).build()
interface FluentBuilder {
fun build(): DescribeQueueResponse
/**
* The name of the queue.
*/
fun queue(queue: Queue): FluentBuilder
}
interface DslBuilder {
/**
* The name of the queue.
*/
var queue: Queue?
fun build(): DescribeQueueResponse
/**
* construct an [aws.sdk.kotlin.services.connect.model.Queue] inside the given [block]
*/
fun queue(block: Queue.DslBuilder.() -> kotlin.Unit) {
this.queue = Queue.invoke(block)
}
}
private class BuilderImpl() : FluentBuilder, DslBuilder {
override var queue: Queue? = null
constructor(x: DescribeQueueResponse) : this() {
this.queue = x.queue
}
override fun build(): DescribeQueueResponse = DescribeQueueResponse(this)
override fun queue(queue: Queue): FluentBuilder = apply { this.queue = queue }
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy