
commonMain.aws.sdk.kotlin.services.gamelift.model.DescribeFleetLocationCapacityResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.gamelift.model
public class DescribeFleetLocationCapacityResponse private constructor(builder: Builder) {
/**
* Resource capacity information for the requested fleet location. Capacity objects are returned only for fleets and locations that currently exist. Changes in desired instance value can take up to 1 minute to be reflected.
*/
public val fleetCapacity: aws.sdk.kotlin.services.gamelift.model.FleetCapacity? = builder.fleetCapacity
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.gamelift.model.DescribeFleetLocationCapacityResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DescribeFleetLocationCapacityResponse(")
append("fleetCapacity=$fleetCapacity")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = fleetCapacity?.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 DescribeFleetLocationCapacityResponse
if (fleetCapacity != other.fleetCapacity) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.gamelift.model.DescribeFleetLocationCapacityResponse = Builder(this).apply(block).build()
public class Builder {
/**
* Resource capacity information for the requested fleet location. Capacity objects are returned only for fleets and locations that currently exist. Changes in desired instance value can take up to 1 minute to be reflected.
*/
public var fleetCapacity: aws.sdk.kotlin.services.gamelift.model.FleetCapacity? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.gamelift.model.DescribeFleetLocationCapacityResponse) : this() {
this.fleetCapacity = x.fleetCapacity
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.gamelift.model.DescribeFleetLocationCapacityResponse = DescribeFleetLocationCapacityResponse(this)
/**
* construct an [aws.sdk.kotlin.services.gamelift.model.FleetCapacity] inside the given [block]
*/
public fun fleetCapacity(block: aws.sdk.kotlin.services.gamelift.model.FleetCapacity.Builder.() -> kotlin.Unit) {
this.fleetCapacity = aws.sdk.kotlin.services.gamelift.model.FleetCapacity.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy