
commonMain.aws.sdk.kotlin.services.gamelift.model.AnywhereConfiguration.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.gamelift.model
/**
* Amazon GameLift Anywhere configuration options for your Anywhere fleets.
*/
public class AnywhereConfiguration private constructor(builder: Builder) {
/**
* The cost to run your fleet per hour. Amazon GameLift uses the provided cost of your fleet to balance usage in queues. For more information about queues, see [Setting up queues](https://docs.aws.amazon.com/gamelift/latest/developerguide/queues-intro.html) in the *Amazon GameLift Developer Guide*.
*/
public val cost: kotlin.String? = builder.cost
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.gamelift.model.AnywhereConfiguration = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("AnywhereConfiguration(")
append("cost=$cost")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = cost?.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 AnywhereConfiguration
if (cost != other.cost) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.gamelift.model.AnywhereConfiguration = Builder(this).apply(block).build()
public class Builder {
/**
* The cost to run your fleet per hour. Amazon GameLift uses the provided cost of your fleet to balance usage in queues. For more information about queues, see [Setting up queues](https://docs.aws.amazon.com/gamelift/latest/developerguide/queues-intro.html) in the *Amazon GameLift Developer Guide*.
*/
public var cost: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.gamelift.model.AnywhereConfiguration) : this() {
this.cost = x.cost
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.gamelift.model.AnywhereConfiguration = AnywhereConfiguration(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy