All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.gamelift.model.ResumeGameServerGroupRequest.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.gamelift.model



public class ResumeGameServerGroupRequest 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 resume for this game server group.
     */
    public val resumeActions: List? = builder.resumeActions

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.gamelift.model.ResumeGameServerGroupRequest = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("ResumeGameServerGroupRequest(")
        append("gameServerGroupName=$gameServerGroupName,")
        append("resumeActions=$resumeActions")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = gameServerGroupName?.hashCode() ?: 0
        result = 31 * result + (resumeActions?.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 ResumeGameServerGroupRequest

        if (gameServerGroupName != other.gameServerGroupName) return false
        if (resumeActions != other.resumeActions) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.gamelift.model.ResumeGameServerGroupRequest = 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 resume for this game server group.
         */
        public var resumeActions: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.gamelift.model.ResumeGameServerGroupRequest) : this() {
            this.gameServerGroupName = x.gameServerGroupName
            this.resumeActions = x.resumeActions
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.gamelift.model.ResumeGameServerGroupRequest = ResumeGameServerGroupRequest(this)

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy