commonMain.aws.sdk.kotlin.services.gamelift.model.LocationConfiguration.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gamelift-jvm Show documentation
Show all versions of gamelift-jvm Show documentation
The AWS SDK for Kotlin client for GameLift
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.gamelift.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* A remote location where a multi-location fleet can deploy game servers for game hosting.
*/
public class LocationConfiguration private constructor(builder: Builder) {
/**
* An Amazon Web Services Region code, such as `us-west-2`. For a list of supported Regions and Local Zones, see [ Amazon GameLift service locations](https://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-regions.html) for managed hosting.
*/
public val location: kotlin.String? = builder.location
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.gamelift.model.LocationConfiguration = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("LocationConfiguration(")
append("location=$location")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = location?.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 LocationConfiguration
if (location != other.location) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.gamelift.model.LocationConfiguration = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* An Amazon Web Services Region code, such as `us-west-2`. For a list of supported Regions and Local Zones, see [ Amazon GameLift service locations](https://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-regions.html) for managed hosting.
*/
public var location: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.gamelift.model.LocationConfiguration) : this() {
this.location = x.location
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.gamelift.model.LocationConfiguration = LocationConfiguration(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy