
commonMain.aws.sdk.kotlin.services.gamelift.model.DescribeComputeRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.gamelift.model
public class DescribeComputeRequest private constructor(builder: Builder) {
/**
* The unique identifier of the compute resource to retrieve properties for. For an Anywhere fleet compute, use the registered compute name. For a managed EC2 fleet instance, use the instance ID.
*/
public val computeName: kotlin.String? = builder.computeName
/**
* A unique identifier for the fleet that the compute is registered to. You can use either the fleet ID or ARN value.
*/
public val fleetId: kotlin.String? = builder.fleetId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.gamelift.model.DescribeComputeRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DescribeComputeRequest(")
append("computeName=$computeName,")
append("fleetId=$fleetId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = computeName?.hashCode() ?: 0
result = 31 * result + (fleetId?.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 DescribeComputeRequest
if (computeName != other.computeName) return false
if (fleetId != other.fleetId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.gamelift.model.DescribeComputeRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The unique identifier of the compute resource to retrieve properties for. For an Anywhere fleet compute, use the registered compute name. For a managed EC2 fleet instance, use the instance ID.
*/
public var computeName: kotlin.String? = null
/**
* A unique identifier for the fleet that the compute is registered to. You can use either the fleet ID or ARN value.
*/
public var fleetId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.gamelift.model.DescribeComputeRequest) : this() {
this.computeName = x.computeName
this.fleetId = x.fleetId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.gamelift.model.DescribeComputeRequest = DescribeComputeRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy