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

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

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

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



/**
 * Contains information about the historical metrics retrieved.
 */
public class HistoricalMetricResult private constructor(builder: Builder) {
    /**
     * The set of metrics.
     */
    public val collections: List? = builder.collections
    /**
     * The dimension for the metrics.
     */
    public val dimensions: aws.sdk.kotlin.services.connect.model.Dimensions? = builder.dimensions

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

    override fun toString(): kotlin.String = buildString {
        append("HistoricalMetricResult(")
        append("collections=$collections,")
        append("dimensions=$dimensions")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = collections?.hashCode() ?: 0
        result = 31 * result + (dimensions?.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 HistoricalMetricResult

        if (collections != other.collections) return false
        if (dimensions != other.dimensions) return false

        return true
    }

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

    public class Builder {
        /**
         * The set of metrics.
         */
        public var collections: List? = null
        /**
         * The dimension for the metrics.
         */
        public var dimensions: aws.sdk.kotlin.services.connect.model.Dimensions? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.connect.model.HistoricalMetricResult) : this() {
            this.collections = x.collections
            this.dimensions = x.dimensions
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy