commonMain.aws.sdk.kotlin.services.gamelift.model.LocationModel.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
/**
* Properties of a custom location for use in an Amazon GameLift Anywhere fleet. This data type is returned in response to a call to CreateLocation.
*/
public class LocationModel private constructor(builder: Builder) {
/**
* The Amazon Resource Name ([ARN](https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-arn-format.html)) that is assigned to a Amazon GameLift location resource and uniquely identifies it. ARNs are unique across all Regions. Format is `arn:aws:gamelift:::location/location-a1234567-b8c9-0d1e-2fa3-b45c6d7e8912`.
*/
public val locationArn: kotlin.String? = builder.locationArn
/**
* The location's name.
*/
public val locationName: kotlin.String? = builder.locationName
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.gamelift.model.LocationModel = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("LocationModel(")
append("locationArn=$locationArn,")
append("locationName=$locationName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = locationArn?.hashCode() ?: 0
result = 31 * result + (locationName?.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 LocationModel
if (locationArn != other.locationArn) return false
if (locationName != other.locationName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.gamelift.model.LocationModel = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The Amazon Resource Name ([ARN](https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-arn-format.html)) that is assigned to a Amazon GameLift location resource and uniquely identifies it. ARNs are unique across all Regions. Format is `arn:aws:gamelift:::location/location-a1234567-b8c9-0d1e-2fa3-b45c6d7e8912`.
*/
public var locationArn: kotlin.String? = null
/**
* The location's name.
*/
public var locationName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.gamelift.model.LocationModel) : this() {
this.locationArn = x.locationArn
this.locationName = x.locationName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.gamelift.model.LocationModel = LocationModel(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy