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

commonMain.aws.sdk.kotlin.services.connect.model.Dimensions.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.connect.model



/**
 * Contains information about the dimensions for a set of metrics.
 */
public class Dimensions private constructor(builder: Builder) {
    /**
     * The channel used for grouping and filters.
     */
    public val channel: aws.sdk.kotlin.services.connect.model.Channel? = builder.channel
    /**
     * Information about the queue for which metrics are returned.
     */
    public val queue: aws.sdk.kotlin.services.connect.model.QueueReference? = builder.queue
    /**
     * Information about the routing profile assigned to the user.
     */
    public val routingProfile: aws.sdk.kotlin.services.connect.model.RoutingProfileReference? = builder.routingProfile

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

    override fun toString(): kotlin.String = buildString {
        append("Dimensions(")
        append("channel=$channel,")
        append("queue=$queue,")
        append("routingProfile=$routingProfile")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = channel?.hashCode() ?: 0
        result = 31 * result + (queue?.hashCode() ?: 0)
        result = 31 * result + (routingProfile?.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 Dimensions

        if (channel != other.channel) return false
        if (queue != other.queue) return false
        if (routingProfile != other.routingProfile) return false

        return true
    }

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

    public class Builder {
        /**
         * The channel used for grouping and filters.
         */
        public var channel: aws.sdk.kotlin.services.connect.model.Channel? = null
        /**
         * Information about the queue for which metrics are returned.
         */
        public var queue: aws.sdk.kotlin.services.connect.model.QueueReference? = null
        /**
         * Information about the routing profile assigned to the user.
         */
        public var routingProfile: aws.sdk.kotlin.services.connect.model.RoutingProfileReference? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.connect.model.Dimensions) : this() {
            this.channel = x.channel
            this.queue = x.queue
            this.routingProfile = x.routingProfile
        }

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

        /**
         * construct an [aws.sdk.kotlin.services.connect.model.QueueReference] inside the given [block]
         */
        public fun queue(block: aws.sdk.kotlin.services.connect.model.QueueReference.Builder.() -> kotlin.Unit) {
            this.queue = aws.sdk.kotlin.services.connect.model.QueueReference.invoke(block)
        }

        /**
         * construct an [aws.sdk.kotlin.services.connect.model.RoutingProfileReference] inside the given [block]
         */
        public fun routingProfile(block: aws.sdk.kotlin.services.connect.model.RoutingProfileReference.Builder.() -> kotlin.Unit) {
            this.routingProfile = aws.sdk.kotlin.services.connect.model.RoutingProfileReference.invoke(block)
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy