commonMain.aws.sdk.kotlin.services.appstream.model.ComputeCapacityStatus.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of appstream-jvm Show documentation
Show all versions of appstream-jvm Show documentation
The AWS SDK for Kotlin client for AppStream
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.appstream.model
/**
* Describes the capacity status for a fleet.
*/
class ComputeCapacityStatus private constructor(builder: Builder) {
/**
* The number of currently available instances that can be used to stream sessions.
*/
val available: kotlin.Int? = builder.available
/**
* The desired number of streaming instances.
*/
val desired: kotlin.Int? = builder.desired
/**
* The number of instances in use for streaming.
*/
val inUse: kotlin.Int? = builder.inUse
/**
* The total number of simultaneous streaming instances that are running.
*/
val running: kotlin.Int? = builder.running
companion object {
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
}
inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.appstream.model.ComputeCapacityStatus = Builder(this).apply(block).build()
class Builder {
/**
* The number of currently available instances that can be used to stream sessions.
*/
var available: kotlin.Int? = null
/**
* The desired number of streaming instances.
*/
var desired: kotlin.Int? = null
/**
* The number of instances in use for streaming.
*/
var inUse: kotlin.Int? = null
/**
* The total number of simultaneous streaming instances that are running.
*/
var running: kotlin.Int? = null
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