
commonMain.aws.sdk.kotlin.services.gamelift.model.PlacedPlayerSession.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.gamelift.model
/**
* Information about a player session. This object contains only the player ID and player session ID. To retrieve full details on a player session, call [DescribePlayerSessions](https://docs.aws.amazon.com/gamelift/latest/apireference/API_DescribePlayerSessions.html) with the player session ID.
*/
public class PlacedPlayerSession private constructor(builder: Builder) {
/**
* A unique identifier for a player that is associated with this player session.
*/
public val playerId: kotlin.String? = builder.playerId
/**
* A unique identifier for a player session.
*/
public val playerSessionId: kotlin.String? = builder.playerSessionId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.gamelift.model.PlacedPlayerSession = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("PlacedPlayerSession(")
append("playerId=*** Sensitive Data Redacted ***,")
append("playerSessionId=$playerSessionId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = playerId?.hashCode() ?: 0
result = 31 * result + (playerSessionId?.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 PlacedPlayerSession
if (playerId != other.playerId) return false
if (playerSessionId != other.playerSessionId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.gamelift.model.PlacedPlayerSession = Builder(this).apply(block).build()
public class Builder {
/**
* A unique identifier for a player that is associated with this player session.
*/
public var playerId: kotlin.String? = null
/**
* A unique identifier for a player session.
*/
public var playerSessionId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.gamelift.model.PlacedPlayerSession) : this() {
this.playerId = x.playerId
this.playerSessionId = x.playerSessionId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.gamelift.model.PlacedPlayerSession = PlacedPlayerSession(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy