
commonMain.aws.sdk.kotlin.services.gamelift.model.UpdateRuntimeConfigurationRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.gamelift.model
public class UpdateRuntimeConfigurationRequest private constructor(builder: Builder) {
/**
* A unique identifier for the fleet to update runtime configuration for. You can use either the fleet ID or ARN value.
*/
public val fleetId: kotlin.String? = builder.fleetId
/**
* Instructions for launching server processes on each instance in the fleet. Server processes run either a custom game build executable or a Realtime Servers script. The runtime configuration lists the types of server processes to run on an instance, how to launch them, and the number of processes to run concurrently.
*/
public val runtimeConfiguration: aws.sdk.kotlin.services.gamelift.model.RuntimeConfiguration? = builder.runtimeConfiguration
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.gamelift.model.UpdateRuntimeConfigurationRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateRuntimeConfigurationRequest(")
append("fleetId=$fleetId,")
append("runtimeConfiguration=$runtimeConfiguration")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = fleetId?.hashCode() ?: 0
result = 31 * result + (runtimeConfiguration?.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 UpdateRuntimeConfigurationRequest
if (fleetId != other.fleetId) return false
if (runtimeConfiguration != other.runtimeConfiguration) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.gamelift.model.UpdateRuntimeConfigurationRequest = Builder(this).apply(block).build()
public class Builder {
/**
* A unique identifier for the fleet to update runtime configuration for. You can use either the fleet ID or ARN value.
*/
public var fleetId: kotlin.String? = null
/**
* Instructions for launching server processes on each instance in the fleet. Server processes run either a custom game build executable or a Realtime Servers script. The runtime configuration lists the types of server processes to run on an instance, how to launch them, and the number of processes to run concurrently.
*/
public var runtimeConfiguration: aws.sdk.kotlin.services.gamelift.model.RuntimeConfiguration? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.gamelift.model.UpdateRuntimeConfigurationRequest) : this() {
this.fleetId = x.fleetId
this.runtimeConfiguration = x.runtimeConfiguration
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.gamelift.model.UpdateRuntimeConfigurationRequest = UpdateRuntimeConfigurationRequest(this)
/**
* construct an [aws.sdk.kotlin.services.gamelift.model.RuntimeConfiguration] inside the given [block]
*/
public fun runtimeConfiguration(block: aws.sdk.kotlin.services.gamelift.model.RuntimeConfiguration.Builder.() -> kotlin.Unit) {
this.runtimeConfiguration = aws.sdk.kotlin.services.gamelift.model.RuntimeConfiguration.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy