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

commonMain.aws.sdk.kotlin.services.appstream.model.ComputeCapacityStatus.kt Maven / Gradle / Ivy

There is a newer version: 1.3.99
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.appstream.model



/**
 * Describes the capacity status for a fleet.
 */
public class ComputeCapacityStatus private constructor(builder: Builder) {
    /**
     * The number of currently available instances that can be used to stream sessions.
     */
    public val available: kotlin.Int? = builder.available
    /**
     * The desired number of streaming instances.
     */
    public val desired: kotlin.Int? = builder.desired
    /**
     * The number of instances in use for streaming.
     */
    public val inUse: kotlin.Int? = builder.inUse
    /**
     * The total number of simultaneous streaming instances that are running.
     */
    public val running: kotlin.Int? = builder.running

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

    override fun toString(): kotlin.String = buildString {
        append("ComputeCapacityStatus(")
        append("available=$available,")
        append("desired=$desired,")
        append("inUse=$inUse,")
        append("running=$running)")
    }

    override fun hashCode(): kotlin.Int {
        var result = available ?: 0
        result = 31 * result + (desired ?: 0)
        result = 31 * result + (inUse ?: 0)
        result = 31 * result + (running ?: 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 ComputeCapacityStatus

        if (available != other.available) return false
        if (desired != other.desired) return false
        if (inUse != other.inUse) return false
        if (running != other.running) return false

        return true
    }

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

    public class Builder {
        /**
         * The number of currently available instances that can be used to stream sessions.
         */
        public var available: kotlin.Int? = null
        /**
         * The desired number of streaming instances.
         */
        public var desired: kotlin.Int? = null
        /**
         * The number of instances in use for streaming.
         */
        public var inUse: kotlin.Int? = null
        /**
         * The total number of simultaneous streaming instances that are running.
         */
        public var running: kotlin.Int? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.appstream.model.ComputeCapacityStatus) : this() {
            this.available = x.available
            this.desired = x.desired
            this.inUse = x.inUse
            this.running = x.running
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.appstream.model.ComputeCapacityStatus = ComputeCapacityStatus(this)
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy