
commonMain.aws.sdk.kotlin.services.gamelift.model.DeleteGameServerGroupRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.gamelift.model
public class DeleteGameServerGroupRequest private constructor(builder: Builder) {
/**
* The type of delete to perform. Options include the following:
* + `SAFE_DELETE` – (default) Terminates the game server group and Amazon EC2 Auto Scaling group only when it has no game servers that are in `UTILIZED` status.
* + `FORCE_DELETE` – Terminates the game server group, including all active game servers regardless of their utilization status, and the Amazon EC2 Auto Scaling group.
* + `RETAIN` – Does a safe delete of the game server group but retains the Amazon EC2 Auto Scaling group as is.
*/
public val deleteOption: aws.sdk.kotlin.services.gamelift.model.GameServerGroupDeleteOption? = builder.deleteOption
/**
* A unique identifier for the game server group. Use either the name or ARN value.
*/
public val gameServerGroupName: kotlin.String? = builder.gameServerGroupName
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.gamelift.model.DeleteGameServerGroupRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DeleteGameServerGroupRequest(")
append("deleteOption=$deleteOption,")
append("gameServerGroupName=$gameServerGroupName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = deleteOption?.hashCode() ?: 0
result = 31 * result + (gameServerGroupName?.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 DeleteGameServerGroupRequest
if (deleteOption != other.deleteOption) return false
if (gameServerGroupName != other.gameServerGroupName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.gamelift.model.DeleteGameServerGroupRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The type of delete to perform. Options include the following:
* + `SAFE_DELETE` – (default) Terminates the game server group and Amazon EC2 Auto Scaling group only when it has no game servers that are in `UTILIZED` status.
* + `FORCE_DELETE` – Terminates the game server group, including all active game servers regardless of their utilization status, and the Amazon EC2 Auto Scaling group.
* + `RETAIN` – Does a safe delete of the game server group but retains the Amazon EC2 Auto Scaling group as is.
*/
public var deleteOption: aws.sdk.kotlin.services.gamelift.model.GameServerGroupDeleteOption? = null
/**
* A unique identifier for the game server group. Use either the name or ARN value.
*/
public var gameServerGroupName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.gamelift.model.DeleteGameServerGroupRequest) : this() {
this.deleteOption = x.deleteOption
this.gameServerGroupName = x.gameServerGroupName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.gamelift.model.DeleteGameServerGroupRequest = DeleteGameServerGroupRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy