
commonMain.aws.sdk.kotlin.services.gamelift.model.CreateLocationRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.gamelift.model
public class CreateLocationRequest private constructor(builder: Builder) {
/**
* A descriptive name for the custom location.
*/
public val locationName: kotlin.String? = builder.locationName
/**
* A list of labels to assign to the new matchmaking configuration resource. Tags are developer-defined key-value pairs. Tagging Amazon Web Services resources are useful for resource management, access management and cost allocation. For more information, see [ Tagging Amazon Web Services Resources](https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html) in the *Amazon Web Services General Rareference*.
*/
public val tags: List? = builder.tags
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.gamelift.model.CreateLocationRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateLocationRequest(")
append("locationName=$locationName,")
append("tags=$tags")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = locationName?.hashCode() ?: 0
result = 31 * result + (tags?.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 CreateLocationRequest
if (locationName != other.locationName) return false
if (tags != other.tags) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.gamelift.model.CreateLocationRequest = Builder(this).apply(block).build()
public class Builder {
/**
* A descriptive name for the custom location.
*/
public var locationName: kotlin.String? = null
/**
* A list of labels to assign to the new matchmaking configuration resource. Tags are developer-defined key-value pairs. Tagging Amazon Web Services resources are useful for resource management, access management and cost allocation. For more information, see [ Tagging Amazon Web Services Resources](https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html) in the *Amazon Web Services General Rareference*.
*/
public var tags: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.gamelift.model.CreateLocationRequest) : this() {
this.locationName = x.locationName
this.tags = x.tags
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.gamelift.model.CreateLocationRequest = CreateLocationRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy