
commonMain.aws.sdk.kotlin.services.gamelift.model.CreateGameServerGroupResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.gamelift.model
public class CreateGameServerGroupResponse private constructor(builder: Builder) {
/**
* The newly created game server group object, including the new ARN value for the Amazon GameLift FleetIQ game server group and the object's status. The Amazon EC2 Auto Scaling group ARN is initially null, since the group has not yet been created. This value is added once the game server group status reaches `ACTIVE`.
*/
public val gameServerGroup: aws.sdk.kotlin.services.gamelift.model.GameServerGroup? = builder.gameServerGroup
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.gamelift.model.CreateGameServerGroupResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateGameServerGroupResponse(")
append("gameServerGroup=$gameServerGroup")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = gameServerGroup?.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 CreateGameServerGroupResponse
if (gameServerGroup != other.gameServerGroup) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.gamelift.model.CreateGameServerGroupResponse = Builder(this).apply(block).build()
public class Builder {
/**
* The newly created game server group object, including the new ARN value for the Amazon GameLift FleetIQ game server group and the object's status. The Amazon EC2 Auto Scaling group ARN is initially null, since the group has not yet been created. This value is added once the game server group status reaches `ACTIVE`.
*/
public var gameServerGroup: aws.sdk.kotlin.services.gamelift.model.GameServerGroup? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.gamelift.model.CreateGameServerGroupResponse) : this() {
this.gameServerGroup = x.gameServerGroup
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.gamelift.model.CreateGameServerGroupResponse = CreateGameServerGroupResponse(this)
/**
* construct an [aws.sdk.kotlin.services.gamelift.model.GameServerGroup] inside the given [block]
*/
public fun gameServerGroup(block: aws.sdk.kotlin.services.gamelift.model.GameServerGroup.Builder.() -> kotlin.Unit) {
this.gameServerGroup = aws.sdk.kotlin.services.gamelift.model.GameServerGroup.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy