
commonMain.aws.sdk.kotlin.services.gamelift.model.DescribeGameServerRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.gamelift.model
public class DescribeGameServerRequest private constructor(builder: Builder) {
/**
* A unique identifier for the game server group where the game server is running.
*/
public val gameServerGroupName: kotlin.String? = builder.gameServerGroupName
/**
* A custom string that uniquely identifies the game server information to be retrieved.
*/
public val gameServerId: kotlin.String? = builder.gameServerId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.gamelift.model.DescribeGameServerRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DescribeGameServerRequest(")
append("gameServerGroupName=$gameServerGroupName,")
append("gameServerId=$gameServerId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = gameServerGroupName?.hashCode() ?: 0
result = 31 * result + (gameServerId?.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 DescribeGameServerRequest
if (gameServerGroupName != other.gameServerGroupName) return false
if (gameServerId != other.gameServerId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.gamelift.model.DescribeGameServerRequest = Builder(this).apply(block).build()
public class Builder {
/**
* A unique identifier for the game server group where the game server is running.
*/
public var gameServerGroupName: kotlin.String? = null
/**
* A custom string that uniquely identifies the game server information to be retrieved.
*/
public var gameServerId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.gamelift.model.DescribeGameServerRequest) : this() {
this.gameServerGroupName = x.gameServerGroupName
this.gameServerId = x.gameServerId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.gamelift.model.DescribeGameServerRequest = DescribeGameServerRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy