
commonMain.aws.sdk.kotlin.services.gamelift.model.AcceptMatchRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.gamelift.model
public class AcceptMatchRequest private constructor(builder: Builder) {
/**
* Player response to the proposed match.
*/
public val acceptanceType: aws.sdk.kotlin.services.gamelift.model.AcceptanceType? = builder.acceptanceType
/**
* A unique identifier for a player delivering the response. This parameter can include one or multiple player IDs.
*/
public val playerIds: List? = builder.playerIds
/**
* A unique identifier for a matchmaking ticket. The ticket must be in status `REQUIRES_ACCEPTANCE`; otherwise this request will fail.
*/
public val ticketId: kotlin.String? = builder.ticketId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.gamelift.model.AcceptMatchRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("AcceptMatchRequest(")
append("acceptanceType=$acceptanceType,")
append("playerIds=*** Sensitive Data Redacted ***,")
append("ticketId=$ticketId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = acceptanceType?.hashCode() ?: 0
result = 31 * result + (playerIds?.hashCode() ?: 0)
result = 31 * result + (ticketId?.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 AcceptMatchRequest
if (acceptanceType != other.acceptanceType) return false
if (playerIds != other.playerIds) return false
if (ticketId != other.ticketId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.gamelift.model.AcceptMatchRequest = Builder(this).apply(block).build()
public class Builder {
/**
* Player response to the proposed match.
*/
public var acceptanceType: aws.sdk.kotlin.services.gamelift.model.AcceptanceType? = null
/**
* A unique identifier for a player delivering the response. This parameter can include one or multiple player IDs.
*/
public var playerIds: List? = null
/**
* A unique identifier for a matchmaking ticket. The ticket must be in status `REQUIRES_ACCEPTANCE`; otherwise this request will fail.
*/
public var ticketId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.gamelift.model.AcceptMatchRequest) : this() {
this.acceptanceType = x.acceptanceType
this.playerIds = x.playerIds
this.ticketId = x.ticketId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.gamelift.model.AcceptMatchRequest = AcceptMatchRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy