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

commonMain.aws.sdk.kotlin.services.snowball.model.GetSnowballUsageResponse.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.snowball.model

import aws.smithy.kotlin.runtime.SdkDsl

public class GetSnowballUsageResponse private constructor(builder: Builder) {
    /**
     * The service limit for number of Snow devices this account can have at once. The default service limit is 1 (one).
     */
    public val snowballLimit: kotlin.Int? = builder.snowballLimit
    /**
     * The number of Snow devices that this account is currently using.
     */
    public val snowballsInUse: kotlin.Int? = builder.snowballsInUse

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

    override fun toString(): kotlin.String = buildString {
        append("GetSnowballUsageResponse(")
        append("snowballLimit=$snowballLimit,")
        append("snowballsInUse=$snowballsInUse")
        append(")")
    }

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

        if (snowballLimit != other.snowballLimit) return false
        if (snowballsInUse != other.snowballsInUse) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The service limit for number of Snow devices this account can have at once. The default service limit is 1 (one).
         */
        public var snowballLimit: kotlin.Int? = null
        /**
         * The number of Snow devices that this account is currently using.
         */
        public var snowballsInUse: kotlin.Int? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.snowball.model.GetSnowballUsageResponse) : this() {
            this.snowballLimit = x.snowballLimit
            this.snowballsInUse = x.snowballsInUse
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy