commonMain.aws.sdk.kotlin.services.gamelift.model.CreateGameSessionQueueResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gamelift-jvm Show documentation
Show all versions of gamelift-jvm Show documentation
The AWS SDK for Kotlin client for GameLift
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.gamelift.model
import aws.smithy.kotlin.runtime.SdkDsl
public class CreateGameSessionQueueResponse private constructor(builder: Builder) {
/**
* An object that describes the newly created game session queue.
*/
public val gameSessionQueue: aws.sdk.kotlin.services.gamelift.model.GameSessionQueue? = builder.gameSessionQueue
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.gamelift.model.CreateGameSessionQueueResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateGameSessionQueueResponse(")
append("gameSessionQueue=$gameSessionQueue")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = gameSessionQueue?.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 CreateGameSessionQueueResponse
if (gameSessionQueue != other.gameSessionQueue) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.gamelift.model.CreateGameSessionQueueResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* An object that describes the newly created game session queue.
*/
public var gameSessionQueue: aws.sdk.kotlin.services.gamelift.model.GameSessionQueue? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.gamelift.model.CreateGameSessionQueueResponse) : this() {
this.gameSessionQueue = x.gameSessionQueue
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.gamelift.model.CreateGameSessionQueueResponse = CreateGameSessionQueueResponse(this)
/**
* construct an [aws.sdk.kotlin.services.gamelift.model.GameSessionQueue] inside the given [block]
*/
public fun gameSessionQueue(block: aws.sdk.kotlin.services.gamelift.model.GameSessionQueue.Builder.() -> kotlin.Unit) {
this.gameSessionQueue = aws.sdk.kotlin.services.gamelift.model.GameSessionQueue.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy