
commonMain.aws.sdk.kotlin.services.gamelift.model.GameSessionQueueDestination.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.gamelift.model
/**
* A fleet or alias designated in a game session queue. Queues fulfill requests for new game sessions by placing a new game session on any of the queue's destinations.
*/
public class GameSessionQueueDestination private constructor(builder: Builder) {
/**
* The Amazon Resource Name (ARN) that is assigned to fleet or fleet alias. ARNs, which include a fleet ID or alias ID and a Region name, provide a unique identifier across all Regions.
*/
public val destinationArn: kotlin.String? = builder.destinationArn
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.gamelift.model.GameSessionQueueDestination = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GameSessionQueueDestination(")
append("destinationArn=$destinationArn")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = destinationArn?.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 GameSessionQueueDestination
if (destinationArn != other.destinationArn) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.gamelift.model.GameSessionQueueDestination = Builder(this).apply(block).build()
public class Builder {
/**
* The Amazon Resource Name (ARN) that is assigned to fleet or fleet alias. ARNs, which include a fleet ID or alias ID and a Region name, provide a unique identifier across all Regions.
*/
public var destinationArn: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.gamelift.model.GameSessionQueueDestination) : this() {
this.destinationArn = x.destinationArn
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.gamelift.model.GameSessionQueueDestination = GameSessionQueueDestination(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy