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

commonMain.aws.sdk.kotlin.services.proton.model.GetResourcesSummaryResponse.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.proton.model

import aws.smithy.kotlin.runtime.SdkDsl

public class GetResourcesSummaryResponse private constructor(builder: Builder) {
    /**
     * Summary counts of each Proton resource type.
     */
    public val counts: aws.sdk.kotlin.services.proton.model.CountsSummary? = builder.counts

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

    override fun toString(): kotlin.String = buildString {
        append("GetResourcesSummaryResponse(")
        append("counts=$counts")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = counts?.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 GetResourcesSummaryResponse

        if (counts != other.counts) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * Summary counts of each Proton resource type.
         */
        public var counts: aws.sdk.kotlin.services.proton.model.CountsSummary? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.proton.model.GetResourcesSummaryResponse) : this() {
            this.counts = x.counts
        }

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

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

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy