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